utx::exp
It always calculates floating value. If arg_type is utx::real_number, it returns related utx::real_number; If arg_type is utx::real_uct, it returns related utx::real_uct.
constexpr auto result = utx::exp(value);
return floating point result.
constexpr auto result = utx::exp.fn<return_type>(value);
Return resulted that is converted to return_type.
Overflow: If the result is overflow of the related type, it returns related NaN value, which can be checked by utx::is_nan(result) .
utx::f32 result = utx::exp(50.0f); bool is_nan = utx::is_nan(result);
#include <utxcpp/math.hpp> #include <utxcpp/core.hpp> int main() { utx::fx32 x = 2.3f; utx::fx32 result = utx::exp(x); utx::print(result); }