Ask Your Question
2

Using variables from a %maxima notebook cell?

asked 11 years ago

Alasdair gravatar image

updated 10 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 11 years ago

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.)

Preview: (hide)
link

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: 11 years ago

Seen: 675 times

Last updated: Jun 13 '13