eval SciMax Toolbox evenp

SciMax Toolbox >> eval_string

eval_string

Maxima Function

Calling Sequence

eval_string (str)

Description

Parse the Maxima string str as a Maxima expression and evaluate it. str is a Maxima string. It may or may not have a terminator (dollar sign $ or semicolon ;). Only the first expression is parsed and evaluated, if there is more than one.

Complain if str is not a Maxima string.

Examples:

(%i1) eval_string ("foo: 42; bar: foo^2 + baz");
(%o1)                       42
(%i2) eval_string ("(foo: 42, bar: foo^2 + baz)");
(%o2)                   baz + 1764

See also .

eval SciMax Toolbox evenp