Mathematical Notation
Topic:
appendix.notation
Documentation of mathematical notation used throughout MathHook, including LaTeX support, standard notation, Wolfram Language syntax, and operator precedence rules.
Mathematical Notation
This appendix documents the mathematical notation used throughout MathHook.
LaTeX Support
MathHook can parse standard LaTeX mathematical notation:
\frac{a}{b}- Fractions\sqrt{x}- Square rootx^{2}- Exponentiation\sin(x),\cos(x),\tan(x)- Trigonometric functions\log(x),\ln(x)- Logarithms\sum,\prod,\int- Summation, product, integral- Greek letters:
\alpha,\beta,\gamma, etc.
Standard Notation
2*xor2x- Multiplication (implicit multiplication supported)x^2- Exponentiationx/y- Divisionsin(x)- Functions|x|- Absolute value
Wolfram Language
MathHook also supports Wolfram Language syntax:
Power[x, 2]- ExponentiationSin[x]- FunctionsD[expr, x]- DerivativesIntegrate[expr, x]- Integration
Operator Precedence
- Function application:
sin(x),log(y) - Exponentiation:
^(right-associative) - Multiplication/Division:
*,/(left-associative) - Addition/Subtraction:
+,-(left-associative)
Examples
API Reference
- Rust: ``
- Python: ``
- JavaScript: ``