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.
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
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.
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
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.