MasonProtter / Symbolics.jl

A symbolic math library written in Julia modelled off scmutils
MIT License
107 stars 15 forks source link

Implemented LaTeX rendering of equations #15

Closed jagot closed 5 years ago

jagot commented 5 years ago

Some features illustrated below:

Optional abbreviation of (-1)^p to (-)^p (off by default, since it can be confusing):

image

Automatic cycling of delimiters at different levels of nesting (on by default):

image

When the function g is displayed above, the minus sign remains in the denominator, since I think it is up to the simplification to move it to the numerator.

There are more functions that could be given proper LaTeX representations, e.g. besselj is printed like this at the moment:

image

To be able to display fractions properly, I also implemented numerator and denominator for SymExpr arguments.