Capy-Bearer Documentation

exp

host call

Capy

function exp(value : f32) f32
function exp(value : f64) f64

Description

exp(1.0) is e. Large inputs overflow to infinity, very negative inputs underflow to 0.0. log() is the inverse.

Parameters

value : the exponent

Return Values

Euler's number raised to value, in the same type.

Example

Capy

print(exp(0.0), " ", exp(1.0), "\n")

Output

1 2.7182818284590451