summaryrefslogtreecommitdiff
path: root/tests/typ/math/basic.typ
blob: 33246261d0e0e801dbea5fa1d46541528feefe02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Test math formulas.

---
The sum of $a$ and $b$ is $a + b$.

---
We will show that:
$[ a^2 + b^2 = c^2 ]$

---
Prove by induction:
$[ \sum_{k=0}^n k = \frac{n(n+1)}{2} ]$

---
// Error: 1-10 expected '}' found EOF
$\sqrt{x$

---
// Error: 2:1 expected closing bracket and dollar sign
$[a