PrevUpHomeNext

esv::exp


We are the master of our territory.

esv::exp

esv::exp

It always calculates floating value. If arg_type is esv::real_number, it returns related esv::real_number; If arg_type is esv::real_uct, it returns related esv::real_uct.

Calling Sig:

constexpr auto result = esv::exp(value);

return floating point result.

constexpr auto result = esv::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 esv::is_nan(result) .

esv::f32 result = esv::exp(50.0f);
bool is_nan = esv::is_nan(result);

esv::exp c++ example

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

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

See Also

esv::print

esv::f32

esv::fx32


PrevUpHomeNext

esv::print