Ask Your Question
2

Using variables from a %maxima notebook cell?

asked 2013-06-08 21:51:09 +0100

Alasdair gravatar image

updated 2015-01-13 22:46:36 +0100

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
1

answered 2013-06-13 15:38:11 +0100

kcrisman gravatar image

See the very similar question about R here.

Cell 1:

%maxima
a:25

Cell 2:

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

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

Stats

Asked: 2013-06-08 21:51:09 +0100

Seen: 628 times

Last updated: Jun 13 '13