Add more math operators (#1090)

This commit is contained in:
Murphy Sünnenwold 2023-07-08 19:57:53 +02:00 committed by GitHub
parent 1bb024ca3f
commit 7404f85a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,11 +12,11 @@ use super::*;
/// ``` /// ```
/// ///
/// ## Predefined Operators { #predefined } /// ## Predefined Operators { #predefined }
/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, /// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, `cos`,
/// `cos`, `cosh`, `cot`, `ctg`, `coth`, `csc`, `deg`, `det`, `dim`, /// `cosh`, `cot`, `coth`, `csc`, `ctg`, `deg`, `det`, `dim`, `exp`, `gcd`,
/// `exp`, `gcd`, `hom`, `mod`, `inf`, `ker`, `lg`, `lim`, `ln`, `log`, /// `hom`, `id`, `im`, `inf`, `ker`, `lg`, `lim`, `liminf`, `limsup`, `ln`,
/// `max`, `min`, `Pr`, `sec`, `sin`, `sinc`, `sinh`, `sup`, `tan`, `tg`, /// `log`, `max`, `min`, `mod`, `Pr`, `sec`, `sin`, `sinc`, `sinh`, `sup`,
/// `tanh`, `liminf`, and `limsup`. /// `tan`, `tanh`, `tg` and `tr`.
/// ///
/// Display: Text Operator /// Display: Text Operator
/// Category: math /// Category: math
@ -81,24 +81,28 @@ ops! {
cos, cos,
cosh, cosh,
cot, cot,
ctg,
coth, coth,
csc, csc,
ctg,
deg, deg,
det (limits), det (limits),
dim, dim,
exp, exp,
gcd (limits), gcd (limits),
hom, hom,
mod, id,
im,
inf (limits), inf (limits),
ker, ker,
lg, lg,
lim (limits), lim (limits),
liminf: "liminf" (limits),
limsup: "limsup" (limits),
ln, ln,
log, log,
max (limits), max (limits),
min (limits), min (limits),
mod,
Pr (limits), Pr (limits),
sec, sec,
sin, sin,
@ -106,8 +110,7 @@ ops! {
sinh, sinh,
sup (limits), sup (limits),
tan, tan,
tg,
tanh, tanh,
liminf: "liminf" (limits), tg,
limsup: "limsup" (limits), tr,
} }