mirror of
https://github.com/typst/typst
synced 2025-05-20 12:05:27 +08:00
Add more math operators (#1090)
This commit is contained in:
parent
1bb024ca3f
commit
7404f85a02
@ -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: "lim inf" (limits),
|
||||||
|
limsup: "lim sup" (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: "lim inf" (limits),
|
tg,
|
||||||
limsup: "lim sup" (limits),
|
tr,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user