Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### To_lisp

Function: to_lisp () Enters the Lisp system under Maxima. `(to-maxima)` returns to Maxima.

Example:

Define a function and enter the Lisp system under Maxima. The defintion is inspected on the property list, then the function definition is extracted, factored and stored in the variable \$result. The variable can be used in Maxima after returning to Maxima.

```          (%i1) f(x):=x^2+x;
2
(%o1)                           f(x) := x  + x
(%i2) to_lisp();
Type (to-maxima) to restart, (\$quit) to quit Maxima.```

MAXIMA> (symbol-plist \$f) (MPROPS (NIL MEXPR ((LAMBDA) ((MLIST) \$X) ((MPLUS) ((MEXPT) \$X 2) \$X)))) MAXIMA> (setq \$result (\$factor (caddr (mget \$f mexpr)))) ((MTIMES SIMP FACTORED) \$X ((MPLUS SIMP IRREDUCIBLE) 1 \$X)) MAXIMA> (to-maxima) Returning to Maxima

`          (%o2)                                true`
`          (%i3) result;`
`          (%o3)                              x (x + 1)`

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

### Related Examples

? to_lisp;

Calculate

##### to_lisp

? to_lisp;

Calculate 