summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-12 20:28:17 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-12 20:28:17 +0100
commit78072c99eb82c06a49707f86fe7ff831ee891164 (patch)
tree074fa1c9a6ab1b53e28d16ec48146d862616c21f /library
parent7b2cdb9d95331bba87f9ae54c71b7103a10faf1c (diff)
Add `tg` and `ctg` operators
Diffstat (limited to 'library')
-rw-r--r--library/src/math/op.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/library/src/math/op.rs b/library/src/math/op.rs
index 4451477e..d9965db1 100644
--- a/library/src/math/op.rs
+++ b/library/src/math/op.rs
@@ -7,10 +7,10 @@ use super::*;
///
/// ## Predefined Operators
/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`,
-/// `cos`, `cosh`, `cot`, `coth`, `csc`, `deg`, `det`, `dim`, `exp`,
-/// `gcd`, `hom`, `mod`, `inf`, `ker`, `lg`, `lim`, `ln`, `log`, `max`,
-/// `min`, `Pr`, `sec`, `sin`, `sinh`, `sup`, `tan`, `tanh`, `liminf`,
-/// and `limsup`.
+/// `cos`, `cosh`, `cot`, `ctg`, `coth`, `csc`, `deg`, `det`, `dim`,
+/// `exp`, `gcd`, `hom`, `mod`, `inf`, `ker`, `lg`, `lim`, `ln`, `log`,
+/// `max`, `min`, `Pr`, `sec`, `sin`, `sinh`, `sup`, `tan`, `tg`, `tanh`,
+/// `liminf`, and `limsup`.
///
/// ## Parameters
/// - text: `EcoString` (positional, required)
@@ -86,6 +86,7 @@ ops! {
cos,
cosh,
cot,
+ ctg,
coth,
csc,
deg,
@@ -109,6 +110,7 @@ ops! {
sinh,
sup (limits),
tan,
+ tg,
tanh,
liminf: "lim inf" (limits),
limsup: "lim sup" (limits),