Ask Your Question

Using variables from a %maxima notebook cell?

asked 2013-06-08 14:51:09 -0500

Alasdair gravatar image

updated 2015-01-13 15:46:36 -0500

FrédéricC gravatar image

I'm doing some work with differential equations, for which Maxima provides the best interface. So I work in notebook cells headed with %maxima. However, I need to use Sage on some of the results. But any new cell (without %maxima) doesn't recognize the variables created in the maxima cell. How do I export "maxima cell" results back into Sage?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2013-06-13 08:38:11 -0500

kcrisman gravatar image

See the very similar question about R here.

Cell 1:


Cell 2:

A = maxima('a')._sage_()

yielding 27. Is this what you are looking for? (Note that if the answer includes any dummy variables like z266 then you may need to make Sage var('z266')-type declarations.)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-06-08 14:51:09 -0500

Seen: 350 times

Last updated: Jun 13 '13