Math, parsed from LaTeX syntax.
A type-safe Dart library that turns \frac{d}{dx} strings into evaluated results. Symbolic calculus, linear algebra, boolean logic, and matrices included.
dart pub add texpr From basic arithmetic to symbolic differentiation, texpr handles the heavy lifting of mathematical parsing.
Don't convert LaTeX to Dart by hand. Write standard LaTeX notation and let the texpr evaluate the expression tree for you. Supports unicode symbols like ∑, ∫, and √.
Returns sealed classes. Handle Numeric, Complex, or Matrix results safely.
Compute derivatives and gradients (\nabla) automatically using built-in algebraic rules.
Determinants, inverses, and matrix arithmetic. Just type \begin{pmatrix}...
Understands human math like 2πr² or sin 2x without needing explicit * symbols.
Boolean algebra support (\land \lor \neg) and comparisons. Perfect for evaluating piecewise functions or domain constraints like x > 0.