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 }
/// 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: "liminf" (limits),
limsup: "limsup" (limits),
ln,
log,
max (limits),
min (limits),
mod,
Pr (limits),
sec,
sin,
@ -106,8 +110,7 @@ ops! {
sinh,
sup (limits),
tan,
tg,
tanh,
liminf: "liminf" (limits),
limsup: "limsup" (limits),
tg,
tr,
}