Sam Ritchie
03/14/2022, 4:16 AMKonrad Hinsen
03/14/2022, 6:19 AMJack Rusher
03/14/2022, 6:59 AMOrion Reed
03/14/2022, 12:16 PMSam Ritchie
03/14/2022, 12:27 PM+
, -
, *
, /,
, all the trig operators, transpose
, etc etc, and those functions are overloaded for (among other types) numbers and symbolic math. Symbolic math operations simply build up a clojure expression tree, like (+ (sin x) (expt (cos x) 3))
2. the library also contains a powerful simplifier that can transform tree => simplified tree…
3. There there is a -TeX> function that can turn this expression into a string of TeX. When you use Clerk to show TeX, it uses ->TeX
and then points katex or mathjax at the resulting string.
There are some other fun features of ->TeX
, like, if a symbol is named after a greek letter it gets shown as greek. 'x_1
, underscores, show up an subscripts, and superscripts work too;\the{usual}
, without any ceremony, would be REALLY valuable beyond physics etcOrion Reed
03/14/2022, 12:49 PMSam Ritchie
03/14/2022, 12:52 PMKonrad Hinsen
03/14/2022, 1:44 PM