summaryrefslogtreecommitdiff
path: root/tests/typ/math/basic.typ
blob: 77d2e535fa6ec92c9e036f3595b6b1c15f8143c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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} $

---
// Test that blackboard style looks nice.
$ f: \mathbb{N} \rightarrow \mathbb{R} $

---
#set math(family: "IBM Plex Sans")

// Error: 1-4 font is not suitable for math
$a$

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

---
// Error: 2:1 expected dollar sign
$a