Maxima Function
read (expr_1, ..., expr_n)
Prints expr_1, ..., expr_n, then reads one expression from the console
and returns the evaluated expression.
The expression is terminated with a semicolon ;
or dollar sign $
.
(%i1) foo: 42$ (%i2) foo: read ("foo is", foo, " -- enter new value.")$ foo is 42 -- enter new value. (a+b)^3; (%i3) foo; 3 (%o3) (b + a)