PrevUpHomeNext

utx::exp


utx::exp

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.

Calling Sig:

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);

utx::exp c++ example

#include <utxcpp/math.hpp>
#include <utxcpp/core.hpp>

int main()
{
	utx::fx32 x = 2.3f;
	utx::fx32 result = utx::exp(x);
	utx::print(result);
}

See Also

utx::print

utx::f32

utx::fx32


PrevUpHomeNext

utx::print

esv::print