Add tg and ctg operators

This commit is contained in:
Laurenz 2023-02-12 20:28:17 +01:00
parent 7b2cdb9d95
commit 78072c99eb

View File

@ -7,10 +7,10 @@ use super::*;
/// ///
/// ## Predefined Operators /// ## Predefined Operators
/// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`, /// Typst predefines the operators `arccos`, `arcsin`, `arctan`, `arg`,
/// `cos`, `cosh`, `cot`, `coth`, `csc`, `deg`, `det`, `dim`, `exp`, /// `cos`, `cosh`, `cot`, `ctg`, `coth`, `csc`, `deg`, `det`, `dim`,
/// `gcd`, `hom`, `mod`, `inf`, `ker`, `lg`, `lim`, `ln`, `log`, `max`, /// `exp`, `gcd`, `hom`, `mod`, `inf`, `ker`, `lg`, `lim`, `ln`, `log`,
/// `min`, `Pr`, `sec`, `sin`, `sinh`, `sup`, `tan`, `tanh`, `liminf`, /// `max`, `min`, `Pr`, `sec`, `sin`, `sinh`, `sup`, `tan`, `tg`, `tanh`,
/// and `limsup`. /// `liminf`, and `limsup`.
/// ///
/// ## Parameters /// ## Parameters
/// - text: `EcoString` (positional, required) /// - text: `EcoString` (positional, required)
@ -86,6 +86,7 @@ ops! {
cos, cos,
cosh, cosh,
cot, cot,
ctg,
coth, coth,
csc, csc,
deg, deg,
@ -109,6 +110,7 @@ ops! {
sinh, sinh,
sup (limits), sup (limits),
tan, tan,
tg,
tanh, tanh,
liminf: "liminf" (limits), liminf: "liminf" (limits),
limsup: "limsup" (limits), limsup: "limsup" (limits),