summaryrefslogtreecommitdiff
path: root/tests/typ/math/cases.typ
blob: d591ae50ea3c0d62a8c565fa33b43f0de0a182bf (plain) (blame)
1
2
3
4
5
6
7
8
9
// Test case distinction.

---
$ f(x, y) := cases(
  1 quad &"if" (x dot y)/2 <= 0,
  2 &"if" x divides 2,
  3 &"if" x in NN,
  4 &"else",
) $