Menu

#2215 tex output not ok

None
closed
nobody
5
2012-12-10
2011-06-26
Amalea
No

tex(2*2^(1/3))

gives

2\,2^{{{1}\over{3}}}

but this is not korrekt,

2\cdot 2^{{{1}\over{3}}}
is the korrekt mathematical form.

Discussion

  • Barton Willis

    Barton Willis - 2011-06-29

    Maxima simplifies 2 * 2^(1/3), so

    (%i1) tex(2*2^(1/3));
    $$2^{{{4}\over{3}}}$$

    I don't know what you did, but if you set simp to false, don't expect
    Maxima to work correctly:

    (%i2) block([simp : false], tex(2*2^(1/3)));
    $$2\,2^{{{1}\over{3}}}$$
    (%o2) false

    A workaround for this case
    (%i3) texput ("*", " \\cdot ", infix)$
    (%i4) block([simp : false], tex(2*2^(1/3)));
    $$2 \cdot 2^{{{1}\over{3}}}$$
    (%o4) false
    (%i5) (texput ("*", " \\, ", infix), tex(a*b));
    $$a \, b$$
    (%o5) false

     
  • Robert Dodier

    Robert Dodier - 2012-12-10
    • status: open --> closed
    • milestone: --> None
     
  • Robert Dodier

    Robert Dodier - 2012-12-10

    A work-around was presented in the comments, and I don't think we should change the default behavior, so I am closing this report.

     

Log in to post a comment.