summaryrefslogtreecommitdiff
path: root/library/src
diff options
context:
space:
mode:
authorclassabbyamp <5366828+classabbyamp@users.noreply.github.com>2023-04-11 08:13:34 -0400
committerGitHub <noreply@github.com>2023-04-11 14:13:34 +0200
commit022b945fb3182d3b5df5563a61ec0a24f41c70a1 (patch)
tree4aa61e352c738650d7cec65dc246656eca49b522 /library/src
parentc7db709da53e0559adabc99d483a374224ef5ce8 (diff)
add `sinc` operator (#720)
this is for the sinc function (https://en.wikipedia.org/wiki/Sinc_function)
Diffstat (limited to 'library/src')
-rw-r--r--library/src/math/op.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/src/math/op.rs b/library/src/math/op.rs
index 2d8266cc..d48ee8c6 100644
--- a/library/src/math/op.rs
+++ b/library/src/math/op.rs
@@ -15,8 +15,8 @@ use super::*;
/// 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`, `sinh`, `sup`, `tan`, `tg`, `tanh`,
-/// `liminf`, and `limsup`.
+/// `max`, `min`, `Pr`, `sec`, `sin`, `sinc`, `sinh`, `sup`, `tan`, `tg`,
+/// `tanh`, `liminf`, and `limsup`.
///
/// Display: Text Operator
/// Category: math
@@ -99,6 +99,7 @@ ops! {
Pr (limits),
sec,
sin,
+ sinc,
sinh,
sup (limits),
tan,