Ask Your Question
0

How to make typeset output in sage display properly?

asked 2011-07-02 21:13:17 +0100

ebs gravatar image

When there are complicated equations , especially with a lot of fractions, the output in sage is bad. Some of it is cut(some lower portion of the output). For example:

image description

How can I fix this?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-07-02 22:18:50 +0100

What operating system and browser are you using, and what version of Sage? With Mac OS X, I see this problem with Firefox, but not with Safari: it looks fine with Safari. So it looks more like a browser issue than a Sage issue.

Two ways around it: first,

solns = solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x) # a list with two elements
a = solns[0]
b = solns[1]

Then you can look at either a or b individually and (I hope) it will look fine. Second, if you look at solns, it looks bad, but view(solns, viewer='pdf') should pop open a PDF file with nice looking output, and you shouldn't see any clipping.

edit flag offensive delete link more

Comments

I am using ubuntu 11.04 and firefox 5

ebs gravatar imageebs ( 2011-07-02 23:08:23 +0100 )edit

I have changed my browser whenever I use sage, I now use chromium or epiphany (which is built with safari engine) and there is no clipping!

ebs gravatar imageebs ( 2011-07-03 08:40:58 +0100 )edit
0

answered 2011-07-02 22:44:46 +0100

Shashank gravatar image

Normally I just put a print(" ") in the end if this happens.

edit flag offensive delete link more

Comments

If I put print (" ") below solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x), there is no output!

ebs gravatar imageebs ( 2011-07-02 23:21:42 +0100 )edit

I meant solns = solve(17*x^3 + 2*x^2 + 54*x + 5 == 0, x) view(solns) print(" ")

Shashank gravatar imageShashank ( 2011-07-03 19:54:39 +0100 )edit

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: 2011-07-02 21:13:17 +0100

Seen: 1,813 times

Last updated: Jul 02 '11