First time here? Check out the FAQ!

Ask Your Question
0

How use Maxima on iPad app?

asked 9 years ago

rb57cat gravatar image

updated 9 years ago

kcrisman gravatar image

Hi, I am using the Sage app on my iPad and I would like to reuse some maxima scripts.

When I try:

default_mode(maxima) 
fpprec 
ss: 44 
ss-2

I get:

  File "<ipython-input-1-156fa75fa7d5>", line 4 
    ss: Integer(44) 
      ^ 
SyntaxError: invalid syntax

Can anyone help please?

Regards, Rob.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 9 years ago

rb57cat gravatar image

By chance I have just re-read the sage info bundled with the app.

It says there the language can be selected by a long tap on the 'sage' button in the cell, or in the app settings.

This did not register with me when I first read it!

Apologies for wasting people's time,

Regards, Rob.

Preview: (hide)
link
0

answered 9 years ago

kcrisman gravatar image

I don't have access to it, but I suspect you can't use it like that. Can you choose %maxima? Otherwise you may have to tediously do maxima(...) each time.

Preview: (hide)
link

Comments

Apologies if this is not the correct way to respond, I am unfamiliar with this forum style.

Thanks, your suggestion did not work but it did lead me to the discussiion 'other modes for sage cell server' where I found this method: maxima.eval(r""" fpprec ss: 44; ss-33; ss+ss; """) This works except that 'newline' is replaces by '/n' Is there any parameter relating to newline?.

Thanks again, Rob.

rb57cat gravatar imagerb57cat ( 9 years ago )

You can actually edit your question, that's probably the easiest way. As to newlines, that is true it would happen. But you should be able to do multiple lines and they would all evaluate, though perhaps only the last one would print.

kcrisman gravatar imagekcrisman ( 9 years ago )

Thanks, the I/p was multi-line but it got compressed in the post. I should have made it clear I meant that the output had the '\n's instead of new lines. Not really a show stopper! Regards, Rob.

rb57cat gravatar imagerb57cat ( 9 years ago )

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 1,801 times

Last updated: May 30 '15