### The Maxima on-line user's manual

Algebra Calculator

#### Eval_string

Function: eval_string (<str>) Parse the string <str> as a Maxima expression and evaluate it. The string <str> 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 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 `parse_string`.

```(%o1)                                true
(%i2) ```

### Related Examples

##### string-substring

a: xyz;

string(a);

substring(string(a),1...

Calculate

##### string

string(-307/484989120...

Calculate

? string;

Calculate

##### string

string(+2722952839/13...

Calculate

##### eval_string-flatten-full_listify-lambda-listify-lreduce-maplist-mod-permut-powerset-setify-sort-string

Seznam(List,N):= s...

mod(Seznam([1,2,3,2,6...

Calculate

##### string

a(n):=1/9*(10^n-1);

a50:a(50);

for d in divisors(a50...

Calculate

##### string

string(4)+string(1/(3...

Calculate

f:3;

d:a+b/c;

e:subst(f,a,d);

Calculate

##### eval_string-lambda-lreduce-map-permut-sort-string

Seznam: sort(map(lamb...

Seznam / 99999899999;

Calculate

##### string

string((-(spotRate+fo...

Calculate