Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Eval_string 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.

block([sn],sn(x,p) := block([s,a,b,c],s: printf(false, eval_string(concat(ascii(34),ascii(126),ascii(101),ascii(34))), x),a: split(s,eval_string(concat(ascii(34),ascii(69),ascii(34)))),b: a[1],c: sremove(eval_string(concat(ascii(34),ascii(43),ascii(34))),a[2]),fpprintprec:p, return(concat(eval_string(b),eval_string(concat(ascii(34),ascii(69),ascii(34))),c)) ),is("10.76"= sn(10.7620000000,5)));

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) 

Eval_string Example

Related Examples

string

answer:x+2;

not listp(answer);

not sposition("=",str...

Calculate

string

int:4;

string:32;

int+int+string+string...

Calculate

string

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

Calculate

string

:lisp (setf my-string...

:lisp my-string;

Calculate

string

string(( -(spotRate+f...

Calculate

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

Seznam: sort(map(lamb...

Seznam / 99999899999;

Calculate

string-subst

f:3;

d:a+b/c;

e:subst(f,a,d);

Calculate