[Date Index] [Thread Index] [Author Index]
code to do 2-D math formatting
Dear MathGroup, I'm planning to rewrite one of my Mathematica programs in C or C++. One thing I really need is a piece of free(?) code which can do 2-D formatting like Mma's OutputForm does; i.e. an expression like -x^2/2 will get formatted to a string containing the right spaces and \n's and whatnots to appear as: 2 -x --- 2 when printed. Does anyone know of such a code? (This seems like it ought to be one of the harder exercises in an old-fashioned programming textbook.) Phillip Kent Imperial College London.