Top
Back: D.8.2.8 texobj
Forward: D.8.2.10 texproc
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.8.2 latex_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.8.2.9 texpoly

Procedure from library latex.lib (see latex_lib).

Usage:

texpoly(fname,p); fname string, p poly

Return:

if fname="": string, the poly p in LaTeX-typesetting;
otherwise: append this string to the file <fname>, and return nothing.

Note:

preceding ">>" are deleted in fname, and suffix ".tex" (if not given) is added to fname.

Example:

 
LIB "latex.lib";
ring r0=0,(x,y,z),dp;
poly f = -1x^2 + 2;
texpoly("",f);
→ $-x^{2}+2$
ring rr= real,(x,y,z),dp;
texpoly("",2x2y23z);
→ $2.000x^{2}y^{23}z$
ring r7= 7,(x,y,z),dp;
poly f = 2x2y23z;
texpoly("",f);
→ $2x^{2}y^{23}z$
ring rab =(0,a,b),(x,y,z),dp;
poly f = (-2a2 +b3 -2)/a * x2y4z5 + (a2+1)*x + a+1;
f;
→ (-2a2+b3-2)/(a)*x2y4z5+(a2+1)*x+(a+1)
texpoly("",f);
→ $-\frac{2a^{2}-b^{3}+2}{a}x^{2}y^{4}z^{5}+(a^{2}+1)x+(a+1)$

Top Back: D.8.2.8 texobj Forward: D.8.2.10 texproc FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.8.2 latex_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.