We are the master of our territory.
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.
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);
#include <esvcpp/math.hpp> #include <esvcpp/core.hpp> int main() { esv::fx32 x = 2.3f; esv::fx32 result = esv::exp(x); esv::print(result); }