Skip to content

Commit

Permalink
feat: add custom maths operator section
Browse files Browse the repository at this point in the history
  • Loading branch information
Weissnix4711 authored and johanvx committed Sep 16, 2023
1 parent 47a06f4 commit 992d543
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions undergradmath.typ
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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").

Expand Down

0 comments on commit 992d543

Please sign in to comment.