3 ms·
This stuff is great for commenting code. I like to draw pictures in my comments. Now we need a LaTeX to ASCII to go with it: /*
by waynecochran 12y ago
This stuff is great for commenting code. I like to draw pictures
in my comments. Now we need a LaTeX to ASCII to go with it:
/*
* A = M G M^T
* _ _ _ _
* f(u,v) = [u^3 u^2 u 1] | A00 A01 A02 A03 | | v^3 |
* | A10 A11 A12 A13 | | v^2 |
* | A20 A21 A22 A23 | | v |
* | A30 A31 A32 A33 | | 1 |
* - - - -
*
* ___3 ___3
* f(u,v) = \ \ A[i][j] u^(3-i) v^(3-j)
* /__j=0 /__i=0
*
*/
- wtallis 12y agoIt seems like nroff+eqn ought to be able to do the job, but the GNU implementation I have handy doesn't seem up to the task. Sympy, on the other hand, does the job beautifully, especially if you're using unicode: http://docs.sympy.org/dev/tutorial/printing.html http://docs.sympy.org/dev/tutorial/printing.html Neither is LaTeX syntax, though.
- ygra 12y agoLike in JavE: http://www.jave.de/docs/formula2/formula2.html http://www.jave.de/docs/formula2/formula2.html?
- waynecochran 12y agoCool. I may try that out. I would like to use LaTeX notation though : $\sum_{i=0}^{n-1} \sin 2\pi i/3$