printing of messages on the terminal
print
print(expr)
Prints the evaluation of expr.
Notes:
1) print can simply write $
Examples:
$1+2*3,cos 3*PI/4;
prints (7.000000 -0.707107 )
$"cos",PI/6," = ",(cos PI/6),"\n","sin",PI/6," = ",(sin PI/6);
prints:
cos(0.523599) = (0.866025)
sin(0.523599) = (0.5)
$func: prints the names of all functions
$var: prints the names of all variables
2) A format can be specified (as in C)
Examples:
$("%.0f",PI);
prints 3
$("%.1f",PI);
prints 3.1
$("%.2f",PI);
v 3.14
$("%f",PI) ou $PI;
prints 3.141593
$("%.1f,",PI,PI,PI);
prints 3.1,3.1,3.1
3) the maximum number of characters printed is 5000, it can be changed
by dim print(n).
print var
print var("x")
prints the variable x.
Translation
By default every message "ttt" will be translated according to the
files Voc_eng Voc_xxx where xxx is the current language (no translation
for english).
See also
dim print