First time here? Check out the FAQ!

Ask Your Question
0

How to make typeset output in sage display properly?

asked 13 years ago

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?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
1

answered 13 years ago

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.

Preview: (hide)
link

Comments

I am using ubuntu 11.04 and firefox 5

ebs gravatar imageebs ( 13 years ago )

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 ( 13 years ago )
0

answered 13 years ago

Shashank gravatar image

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

Preview: (hide)
link

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 ( 13 years ago )

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

Shashank gravatar imageShashank ( 13 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

Stats

Asked: 13 years ago

Seen: 1,863 times

Last updated: Jul 02 '11