From 992d5437cc0626d81ec77f7bbc50b1cdfd85198b Mon Sep 17 00:00:00 2001 From: Thomas Aldrian Date: Tue, 12 Sep 2023 16:48:42 +0000 Subject: [PATCH] feat: add custom maths operator section --- undergradmath.typ | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/undergradmath.typ b/undergradmath.typ index 057f2f4..d246182 100644 --- a/undergradmath.typ +++ b/undergradmath.typ @@ -252,6 +252,17 @@ Just type them! [$lg$], [`lg`], [$gcd$], [`gcd`], [$lim$], [`lim`], )) +#let cosec = math.op("cosec") + +If an operator you wish to use does not exist, you can create one using `math.op`. For example, to create the $cosec$ operator: + +``` +#let cosec = math.op("cosec") +$ cosec x = 1/(sin x) $ +``` + +$ cosec x = 1/(sin x) $ + = Other symbols #align(center, table( columns: 6, @@ -535,21 +546,14 @@ For permutations use $n^(underline(r))$ from `n^(underline(r))` (some authors us E(X) = mu_X = sum(x_i - P(x_i)) ``` ], + [$ 1 / sqrt(2 sigma^2 pi) e^(- (x - mu)^2 / (2 sigma^2)) $], + [ + ``` + 1 / sqrt(2 sigma^2 pi) e^(- (x - mu)^2 / (2 sigma^2)) + ``` + ] )) -The probability density of the normal distribution - -$ 1 / sqrt(2 sigma^2 pi) e^(- (x - mu)^2 / (2 sigma^2)) $ - -comes from this. - -#align(center, [ - ``` - 1 / sqrt(2 sigma^2 pi) - e^(- (x - mu)^2 / (2 sigma^2)) - ``` -]) - = For more See also the Typst Documentation at #link("https://typst.app/docs").