nushell/crates/nu-command/src/math
Lukáš Veškrna 6be5631477
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`.
2023-04-01 12:53:58 +02:00
..
abs.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
arccos.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
arccosh.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
arcsin.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
arcsinh.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
arctan.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
arctanh.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
avg.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
ceil.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
cos.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
cosh.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
euler.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
exp.rs Add math exp command (issue #8661) (#8700) 2023-04-01 12:53:58 +02:00
floor.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
ln.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
log.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
math_.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
max.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
median.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
min.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
mod.rs Add math exp command (issue #8661) (#8700) 2023-04-01 12:53:58 +02:00
mode.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
pi.rs Use imported names in Command::run signatures (#7967) 2023-02-05 22:17:46 +01:00
product.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
reducers.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
round.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
sin.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
sinh.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
sqrt.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
stddev.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
sum.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00
tan.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
tanh.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
tau.rs Update few examples of math commands (#7987) 2023-02-06 13:43:00 +01:00
utils.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
variance.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00