Ask Your Question

Revision history [back]

Messy typesetting problem

If I enter the followng in a sage notebook, the typeset output is correct but for h(r) is unreadable, is there someway to coerce sage to output a reasonable representation?

The desired expression is $$h(r) = {1\over{r^2 \sqrt{ \frac{1}{b^2} - (1 - \frac{d}{r}) \frac{1}{r^2}}}}$$

f(r) looks good, g(r) is poor and confusing, h(r) is unreadable.

var ('r, b, d')

f(r) = r^2 * sqrt(1/b^2)

print(f)

f.show()

g(r) = r^2 * sqrt(1/b^2 - 1)

print(g)

g.show()

h(r) = 1 / (r^2 * sqrt (1/b^2 - (1 - d/r)*1/r^2))

print (h)

h.show()

click to hide/show revision 2
No.2 Revision

Messy typesetting problem

If I enter the followng in a sage notebook, the typeset output is correct but for h(r) is unreadable, is there someway to coerce sage to output a reasonable representation?

The desired expression is $$h(r) = {1\over{r^2 \sqrt{ \frac{1}{b^2} - (1 - \frac{d}{r}) \frac{1}{r^2}}}}$$

f(r) looks good, g(r) is poor and confusing, h(r) is unreadable.

var ('r, b, d')

d') f(r) = r^2 * sqrt(1/b^2)

sqrt(1/b^2) print(f)

print(f)

f.show()

f.show() g(r) = r^2 * sqrt(1/b^2 - 1)

print(g)

g.show()

1) print(g) g.show() h(r) = 1 / (r^2 * sqrt (1/b^2 - (1 - d/r)*1/r^2))

d/r)*1/r^2)) print (h)

h.show()

(h) h.show()