Mathematical Equations
NovaType offers professional-quality mathematical rendering with an intuitive syntax.
Basic Syntax
Inline Equations
The formula $ E = m c^2 $ is famous.
Centered Equations
$ E = m c^2 $
An equation on its own line is automatically centered.
Numbered Equations
#set math.equation(numbering: "(1)")
$ E = m c^2 $ <eq:einstein>
See equation @eq:einstein for the energy-mass relationship.
Basic Operations
| Syntax | Rendering | Description |
|---|---|---|
x + y | x + y | Addition |
x - y | x − y | Subtraction |
x * y | x × y | Multiplication |
x / y | x / y | Division |
x^2 | x² | Exponent |
x_i | xi | Subscript |
x^2_i | x²i | Both |
Fractions
// Simple fraction
$ a/b $
// Fraction with frac()
$ frac(a + b, c + d) $
// Complex fraction
$ frac(1, 1 + frac(1, 1 + frac(1, x))) $
Roots
// Square root
$ sqrt(x) $
// Nth root
$ root(3, x) $ // Cube root
$ root(n, x) $ // Nth root
Sums and Products
// Sum
$ sum_(i=1)^n i^2 $
// Product
$ product_(i=1)^n i $
// Double sum
$ sum_(i=1)^n sum_(j=1)^m a_(i j) $
Integrals
// Simple integral
$ integral f(x) dif x $
// Definite integral
$ integral_a^b f(x) dif x $
// Double integral
$ integral.double_D f(x,y) dif x dif y $
// Contour integral
$ integral.cont f(z) dif z $
Limits
// Limit
$ lim_(x -> infinity) f(x) $
// Left/right limit
$ lim_(x -> 0^+) 1/x = +infinity $
Matrices
// Simple matrix
$ mat(
a, b;
c, d
) $
// 3x3 matrix
$ mat(
1, 0, 0;
0, 1, 0;
0, 0, 1
) $
// Matrix with delimiters
$ mat(delim: "[",
a, b;
c, d
) $
Vectors
// Column vector
$ vec(x, y, z) $
// Vector with arrow
$ arrow(v) $
// Bold vector
$ bold(v) $
Systems of Equations
$ cases(
x + y = 10,
2x - y = 5
) $
Greek Symbols
| Lowercase | Uppercase | Name |
|---|---|---|
alpha α | Alpha Α | Alpha |
beta β | Beta Β | Beta |
gamma γ | Gamma Γ | Gamma |
delta δ | Delta Δ | Delta |
epsilon ε | Epsilon Ε | Epsilon |
theta θ | Theta Θ | Theta |
lambda λ | Lambda Λ | Lambda |
pi π | Pi Π | Pi |
sigma σ | Sigma Σ | Sigma |
omega ω | Omega Ω | Omega |
Operators and Symbols
| Syntax | Symbol | Description |
|---|---|---|
times | × | Multiplication |
div | ÷ | Division |
pm | ± | Plus or minus |
!= | ≠ | Not equal |
<= | ≤ | Less than or equal |
>= | ≥ | Greater than or equal |
approx | ≈ | Approximately |
equiv | ≡ | Equivalent |
in | ∈ | Element of |
subset | ⊂ | Subset |
union | ∪ | Union |
sect | ∩ | Intersection |
infinity | ∞ | Infinity |
partial | ∂ | Partial derivative |
nabla | ∇ | Nabla |
Complete Examples
// Euler's formula
$ e^(i pi) + 1 = 0 $
// Gaussian integral
$ integral_(-infinity)^(+infinity) e^(-x^2) dif x = sqrt(pi) $
// Generalized Pythagorean theorem
$ c^2 = a^2 + b^2 - 2 a b cos(gamma) $
// Schrodinger equation
$ i hbar frac(partial, partial t) Psi = hat(H) Psi $
// Taylor series
$ f(x) = sum_(n=0)^infinity frac(f^((n))(a), n!) (x - a)^n $
Tip
Use parentheses to group complex elements : x^(a+b) instead of x^a+b.