How to display a fraction as a mixed number in maxima?
问题 I'm giving a course where students are used to the mixed number notation. However, all the calculations that maxima does, use the more traditional notation of fractions. Is it possible to present 3/2 as 1 1/2 . I need this for the latex output only. (%i4) tex(3/2); $${{3}\over{2}}$$ (%o4) false So instead of this I would like to get: (%i4) tex(3/2); $$1 {{1}\over{2}}$$ (%o4) false Is this possible? 回答1: You can assign TeX properties via texput . Rational numbers are represented as ((RAT) mmm