mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
26 lines
433 B
XML
26 lines
433 B
XML
// Test fractions.
|
|
|
|
---
|
|
// Test that denominator baseline matches in the common case.
|
|
$ x = 1/2 = a/(a h) = a/a = a/(1/2) $
|
|
|
|
---
|
|
// Test parenthesis removal.
|
|
$ (|x| + |y|)/2 < [1+2]/3 $
|
|
|
|
---
|
|
// Test associativity.
|
|
$ 1/2/3 = (1/2)/3 = 1/(2/3) $
|
|
|
|
---
|
|
// Test large fraction.
|
|
$ x = (-b plus.minus sqrt(b^2 - 4a c))/(2a) $
|
|
|
|
---
|
|
// Test binomial.
|
|
$ binom(circle, square) $
|
|
|
|
---
|
|
// Error: 8-13 missing argument: lower index
|
|
$ binom(x^2) $
|