Ask Your Question

How to make typeset output in sage display properly?

asked 2011-07-02 14:13:17 -0500

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

answered 2011-07-02 15:18:50 -0500

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


I am using ubuntu 11.04 and firefox 5

ebs gravatar imageebs ( 2011-07-02 16:08:23 -0500 )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 01:40:58 -0500 )edit

answered 2011-07-02 15:44:46 -0500

Shashank gravatar image

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

edit flag offensive delete link more


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 16:21:42 -0500 )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 12:54:39 -0500 )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


Asked: 2011-07-02 14:13:17 -0500

Seen: 1,021 times

Last updated: Jul 02 '11