Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/libs/giac/giac.pyx: Update _latex_ doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 11, 2020
1 parent aff8292 commit 1fbe528
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/sage/libs/giac/giac.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1415,8 +1415,18 @@ cdef class Pygen:
EXAMPLES::
sage: from sage.libs.giac.giac import libgiac
sage: latex(libgiac('(x^4 - y)/(y^2-3*x)'))
\frac{(x^{4}-y)}{(y^{2}-3\cdot x)}
sage: M = matrix(QQ, [[1, 2], [3, 4]])
sage: latex(M)
\left(\begin{array}{rr}
1 & 2 \\
3 & 4
\end{array}\right)
sage: gM = libgiac(M)
sage: latex(gM)
\left(\begin{array}{cc}1&2\\3&4\end{array}\right)
sage: gf = libgiac('(x^4 - y)/(y^2-3*x)')
sage: latex(gf) # output changed slightly from 1.5.0-63 to 1.5.0-87
\frac{...x^{4}...-...y...}{...y^{2}-3...x...}
"""
sig_on()
result=decstring23(GIAC_gen2tex(self.gptr[0], context_ptr).c_str()) #python3
Expand Down

0 comments on commit 1fbe528

Please sign in to comment.