From 022b945fb3182d3b5df5563a61ec0a24f41c70a1 Mon Sep 17 00:00:00 2001 From: classabbyamp <5366828+classabbyamp@users.noreply.github.com> Date: Tue, 11 Apr 2023 08:13:34 -0400 Subject: [PATCH] add `sinc` operator (#720) this is for the sinc function (https://en.wikipedia.org/wiki/Sinc_function) --- library/src/math/op.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/src/math/op.rs b/library/src/math/op.rs index 2d8266cc1..d48ee8c63 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,