exp
- Exponential of a number
x : | Real (pass by const reference) |
A number. |
# checking that ln(e) = 1
x <- exp(1)
ln_of_x <- ln(x)
if (ln_of_ex != 1) {
print("Problem when computing an exponential value.")
} else {
print("Correct computation of an exponential value.")
}