The expr command transforms a string representing a valid Xcas statement into the actual statement.
| expr("a:=1") |
|
| a |
|
In particular, expr can transform a string representing a number into the number (see Section 3.1.1).
| expr("123") |
|
| expr("0123") |
|
since 0123 represents a base 8 integer (see Section 5.4.1) and 1· 82+2· 8+3=83.
| expr("0x12f") |
|
since 0x12f represents a base 16 number and 1· 162+2· 16+15=303.
| expr("123.4567") |
|
| expr("123e-5") |
|