This method converts marked polynomial lists and lists of marked polynomial lists to latex. If the given input is a list, the option polynomialsetlist is assumed. Similarly, if the input is a marked polynomial list then polynomialset is assumed.
i1 : QQ[x,y,z]; |
i2 : L = gfan{x^2 + y*z, z^2 + y*z}
2 2 2 2 2 4 2 2 2
o2 = {{(y*z) + z , (x ) - z }, {(x ) + y*z, (z ) + y*z}, {(x ) - x y , (x z)
------------------------------------------------------------------------
2 2 2 2 2 2 2 2 2 2 4
+ x y, (z ) - x , (y*z) + x }, {(x z) + x y, (z ) - x , (x y ) - x ,
------------------------------------------------------------------------
2 2 2 2 2 2
(y*z) + x }, {(x y) + x z, (y*z) + x , (z ) - x }}
o2 : List
|
i3 : gfanToLatex L
o3 = $ \{\{yz+z^{2},
x^{2}-z^{2}\}
,
\{x^{2}+yz,
z^{2}+yz\}
,
\{x^{4}-x^{2}y^{2},
x^{2}z+x^{2}y,
z^{2}-x^{2},
yz+x^{2}\}
,
\{x^{2}z+x^{2}y,
z^{2}-x^{2},
x^{2}y^{2}-x^{4},
yz+x^{2}\}
,
\{x^{2}y+x^{2}z,
yz+x^{2},
z^{2}-x^{2}\}
\}
$
|
i4 : gfanToLatex first L
o4 = $ \{yz+z^{2},
x^{2}-z^{2}\}
$
|
i5 : gfanToLatex({{x,z}, {x+y, x+z}}, "polynomialset" => true)
o5 = $ \{x+y,
z+x\}
$
|
gfan Documentation This program converts ASCII math to TeX math. The data-type is specified by the options.Options:-h: Add a header to the output. Using this option the output will be LaTeXable right away.--polynomialset_: The data to be converted is a list of polynomials.--polynomialsetlist_: The data to be converted is a list of lists of polynomials.
The object gfanToLatex is a method function with options.