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:

Parse_string Calculator

Parse_string

Function: parse_string (<str>) Parse the string <str> as a Maxima expression (do not evaluate it). The string <str> may or may not have a terminator (dollar sign $ or semicolon ;). Only the first expression is parsed, if there is more than one.

numberp(parse_string("170141183460469231731687303715884105727"));

Complain if <str> is not a string.

Examples:

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

See also eval_string.

(%o1)                                true
(%i2) 

Parse_string Example

Related Examples

string

string("Da einer der ...

Calculate

string

string(4.54);

Calculate

string

string(+2722952839/13...

Calculate

string

string(+43867/5109094...

Calculate

string

answer:x+2;

not listp(answer);

not sposition("=",str...

Calculate

string

a: x;

string(a);

Calculate

string-subst

f:3;

d: a* b* z* w* e* i* ...

e:subst(f,a,d);

Calculate

string

string(+167/722192889...

Calculate

string

string(+537049/704217...

Calculate

string

string(+43867/5109094...

Calculate