Skip to main content

Syntax

Everything the input understands, written as you would type it in the LaTeX source. The formula editor produces the same LaTeX. Results in this page are from Physics mode unless noted.

Numbers​

InputMeaningResult
2.5 or 2{,}5decimal point or decimal comma2,52{,}5
1.5 \times 10^3, 1{,}5 \cdot 10^3scientific notation15001500
20\%percent, a unit20 %20\,\%
\pi, ethe constants π\pi and ee
ithe imaginary unit, in Imaginary mode only
caution

1.5e3 is not scientific notation: it is 1,5⋅e⋅31{,}5 \cdot e \cdot 3. Write 1.5 \times 10^3.

Operators​

InputMeaning
+, -sum, difference
\cdot, \times, *, \ast, or nothing (2x)product
/, \div, \frac{a}{b}, \dfrac, \tfracquotient
a^b, a^{b}power
\sqrt{x}, \sqrt[n]{x}square root, n-th root
n!factorial
a \bmod bremainder
( ), [ ], \left( \right)brackets
|x|, \left|x\right|, \lvert x \rvertabsolute value (keeps the unit)
\lfloor x \rfloor, \lceil x \rceilfloor, ceiling

Operators bind as usual: powers before products, products and quotients from left to right before sums.

Functions​

InputNotes
\sin, \cos, \tan, \cot, \sec, \cscradians, or degrees with 30^\circ; exact where the value is rational (sin⁡30∘=0,5\sin 30^\circ = 0{,}5)
\arcsin, \arccos, \arctan, \sin^{-1}result in radians
\sinh, \cosh, \tanh
\exp, e^{x}
\ln, \log (base 10), \lg, \log_barguments must be positive; log⁡28=3\log_2 8 = 3
\max(a; b), \min(a; b)separate the arguments with ;, since , is the decimal comma
\binom{n}{k}, \dbinom, \tbinomexact; non-negative whole numbers
\det\begin{pmatrix} … \end{pmatrix}, vmatrixdeterminant, exact, up to 8×8
\Re, \Im, \arg, \overline{z}Imaginary mode: real part, imaginary part, argument, conjugate

Calculus​

InputNotes
\sum_{k=1}^{10} kexact, up to 1,000,000 terms. The body is one term: \sum k + 1 is (∑k)+1(\sum k) + 1
\int_0^1 x^2\,dxnumerical, at most 30 digits. Differentials dx, d x, \mathrm{d}x
\int_1^{\infty} \frac{1}{x^2}\,dximproper integrals with \infty bounds
\lim_{x \to 0} f, \lim_{x \to 0^+} f, \lim_{x \to \infty} ftwo-sided, one-sided, at infinity; \rightarrow works too
\left.\frac{d}{dx} x^3\right|_{x=2}derivative at a point, symbolic

An integral needs bounds and a derivative needs a point; for antiderivatives and derivatives as functions use Curve sketching.

Equations​

InputResult
2x + 3 = 11x=4x = 4
x^2 = 4x=−2∨x=2x = -2 \lor x = 2
x^3 - 2x - 5 = 0x=2,0945514815…x = 2{,}0945514815\ldots (numerical)

One unknown per equation. Degree up to 2 is solved exactly, higher degrees numerically on [−100,100][-100, 100].

A system of linear equations has several unknowns and is the whole input:

InputResult
2x + y = 5; x - y = 1x=2∧y=1x = 2 \land y = 1
\begin{cases} 2x + y = 5 \\ x - y = 1 \end{cases}the same

& for alignment (2x + y &= 5) is allowed. A comma cannot separate equations, it is the decimal separator.

Labels and variables​

InputMeaning
m_1 = 2kgdefines the session variable m1m_1
F = m_1 \cdot g_nnames the line FF
\omega_0, v_{max}any letter or Greek letter with an index is a variable name

Greek letters: \alpha … \omega, the capitals that differ from Latin ones (\Gamma, \Delta, \Theta, \Lambda, \Xi, \Pi, \Sigma, \Upsilon, \Phi, \Psi, \Omega) and the variants \varepsilon, \vartheta, \varphi.

Units​

InputNotes
2kg, 9.81\frac{m}{s^2}bare letters after a number are units (Physics mode)
2\,\mathrm{kg}, 3\text{ m}explicit, works in every mode
\qty{12}{cm}, \SI{12}{cm}, \num{12}, \unit{cm}, \si{cm}siunitx; the unit is written with symbols, not \kilo\metre
25°C, 30^\circdegree Celsius, degree of angle

The full list is in Units and constants.

Ignored layout​

\displaystyle, \textstyle, \limits, \quad, \qquad and \, are accepted and change nothing.