Print formulas the pretty way inside your terminal.
The program is available in the AUR as prettymath-git
$ yay -S prettymath-git- install the dependencies
- run
prettymath.py
- python
- python-sympy
-hprints help-uand--use_unicodechange output to unicode...all following strings are treated as expressions
$ ./prettymath.py "a*b+x"
a*b + x
$ ./prettymath.py "a*b+x" "Integral(x**2,x)"
a*b + x
/
|
| 2
| x dx
|
/
./prettymath.py "Limit(1/x, x, 0)"
1
lim -
x->0+x
./prettymath.py -u "Limit(1/x, x, 0)"
1
lim ─
x─→0⁺x
./prettymath.py "Sum(k**-2, (k, 1, n))"
n
____
\ `
\ 1
\ --
/ 2
/ k
/___,
k = 1
./prettymath.py -u "Sum(k**-2, (k, 1, n))"
n
____
╲
╲ 1
╲ ──
╱ 2
╱ k
╱
‾‾‾‾
k = 1