From c87f802cf60b7ae5dfdca9ccfa011c5105d9947b Mon Sep 17 00:00:00 2001 From: Jett Chen Date: Wed, 7 Jun 2023 20:44:07 +0800 Subject: add calc.exp, calc.ln (#1299) Co-authored-by: Laurenz --- tests/typ/compute/calc.typ | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/typ/compute') 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 -- cgit v1.2.3