Example:
{{{
var('q r')
fp = q / r
fn = -q / r + r / -q
print(fp)
print(fn)

show(fp)
show(fn)

html("$fp = %s$"%(latex(fp)))
html("$fn = %s$"%(latex(fn)))
}}}

Output:
{{{
q/r
-q/r - r/q

\newcommand{\Bold}[1]{\mathbf{#1}}\frac{q}{r}
\newcommand{\Bold}[1]{\mathbf{#1}}\frac{q}{r} + \frac{r}{q}

fp = \frac{q}{r}
fn = \frac{q}{r} + \frac{r}{q}
}}}

OS: Linux 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010
i686 GNU/Linux
sage 4.4.3 build from sourcesource
also tested on www.sagenb.org

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to