diff options
| author | Jett Chen <jettchen12345@gmail.com> | 2023-06-07 20:44:07 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-07 14:44:07 +0200 |
| commit | c87f802cf60b7ae5dfdca9ccfa011c5105d9947b (patch) | |
| tree | c9ea6af8be3aa7edd14b641251eafe874bdeaba5 /tests | |
| parent | 0dc1776202149bb59c21d1db8efe2a10c409b6e6 (diff) | |
add calc.exp, calc.ln (#1299)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compute/calc.typ | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index 3a1e85f3..cd97dfab 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -94,9 +94,11 @@ #test(calc.min("hi"), "hi") --- -// Test the `calc` function. +// Test the `pow`, `log`, `exp`, and `ln` functions. #test(calc.pow(10, 0), 1) #test(calc.pow(2, 4), 16) +#test(calc.exp(2), calc.pow(calc.e, 2)) +#test(calc.ln(10), calc.log(10, base: calc.e)) --- // Error: 10-16 zero to the power of zero is undefined |
