Add math exp command (issue #8661) (#8700)

# Description
I copied the `math ln` command and replaced the relevant parts to
implement `math exp`.

# User-Facing Changes

The `math exp` command was added. Now one can do `[1, 2, 3] | math exp`
to get e to the power of these numbers.

# Tests + Formatting
I only wrote example tests, same as for `math ln`, which also does not
have special tests. I have ran into an issue with the tests but it seems
completely unrelated (see #8687)

# After Submitting

This PR was done in order to make the documentation complete, so I'm not
adding any documentation except `math ln`.
This commit is contained in:
Lukáš Veškrna
2023-04-01 12:53:58 +02:00
committed by GitHub
parent 678e942bd8
commit 6be5631477
3 changed files with 101 additions and 0 deletions

View File

@ -387,6 +387,7 @@ pub fn create_default_context() -> EngineState {
MathPi,
MathTau,
MathEuler,
MathExp,
MathLn,
MathLog,
};