A problem when convert to Tex



You found a bug. If convenient, please file a bug report.
I don't have a fix, but here is a work around.

(%i1) tex(5.6e99^x);
$$5.5999999999999996 \times 10^{99}^{x}$$
(%o1)                              FALSE
(%i2) to_lisp();
Type (to-maxima) to restart

To avoid this bug, tex floats as x.xx...x e xx.

MAXIMA> (defun texnumformat (x) x)
TEXNUMFORMAT
MAXIMA> (to-maxima)
Returning to Maxima
(%o2)                              TRUE
(%i3) tex(5.6e99^x);
$$5.6E+99^{x}$$
(%o3)                              FALSE
(%i4)

Barton



-----maxima-admin@math.utexas.edu wrote: -----

To: maxima@math.utexas.edu
From: zycentre 
Sent by: maxima-admin@math.utexas.edu
Date: 01/27/2005 01:30AM
Subject: A problem when convert to Tex

Dear someone,
I am a newbie in maxima.

When I get a results like "7.7850374149E+12^(p/2)", it
can't be converted to Tex correctly by using "tex()"
command. Because maxima only converts the expression
to "7.7850374149\times 10^12^(p/2)", but not
"{7.7850374149\times 10^12}^(p/2)". However,
"7.7850374149\times 10^12^(p/2)" doesn't obey the
Latex's syntax.

Is there any resolvent? As the
"7.7850374149E+12^(p/2)" is an intermediate result
produced by maxima, I can't modify it by hand.

Thanks.

Yuan-chuan

_________________________________________________________
Do You Yahoo!?
150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
http://music.yisou.com/
ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
http://image.yisou.com
1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/


_______________________________________________
Maxima mailing list
 Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima