diff options
| author | Murphy Sünnenwold <git@murphy-in.space> | 2023-07-08 19:57:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-08 19:57:53 +0200 |
| commit | 7404f85a02450c291ee408700e7874cb85a06e42 (patch) | |
| tree | 9cdaac9b65cc23094c223eec55a18f74f3e0a908 /crates | |
| parent | 1bb024ca3f75cf9cbad1ef3ff321d3c298dce609 (diff) | |
Add more math operators (#1090)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst-library/src/math/op.rs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/crates/typst-library/src/math/op.rs b/crates/typst-library/src/math/op.rs index d2c62452..4016d24f 100644 --- a/crates/typst-library/src/math/op.rs +++ b/crates/typst-library/src/math/op.rs @@ -12,11 +12,11 @@ use super::*; /// ``` /// /// ## Predefined Operators { #predefined } -/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, -/// `cos`, `cosh`, `cot`, `ctg`, `coth`, `csc`, `deg`, `det`, `dim`, -/// `exp`, `gcd`, `hom`, `mod`, `inf`, `ker`, `lg`, `lim`, `ln`, `log`, -/// `max`, `min`, `Pr`, `sec`, `sin`, `sinc`, `sinh`, `sup`, `tan`, `tg`, -/// `tanh`, `liminf`, and `limsup`. +/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, `cos`, +/// `cosh`, `cot`, `coth`, `csc`, `ctg`, `deg`, `det`, `dim`, `exp`, `gcd`, +/// `hom`, `id`, `im`, `inf`, `ker`, `lg`, `lim`, `liminf`, `limsup`, `ln`, +/// `log`, `max`, `min`, `mod`, `Pr`, `sec`, `sin`, `sinc`, `sinh`, `sup`, +/// `tan`, `tanh`, `tg` and `tr`. /// /// Display: Text Operator /// Category: math @@ -81,24 +81,28 @@ ops! { cos, cosh, cot, - ctg, coth, csc, + ctg, deg, det (limits), dim, exp, gcd (limits), hom, - mod, + id, + im, inf (limits), ker, lg, lim (limits), + liminf: "lim inf" (limits), + limsup: "lim sup" (limits), ln, log, max (limits), min (limits), + mod, Pr (limits), sec, sin, @@ -106,8 +110,7 @@ ops! { sinh, sup (limits), tan, - tg, tanh, - liminf: "lim inf" (limits), - limsup: "lim sup" (limits), + tg, + tr, } |
