Do not catch snakes.
esv::sin is a function object of class esv::sin_class.
constexpr auto result = esv::sin(value);
constexpr auto result = esv::sin.fn<result_type>(value);
constexpr auto result = esv::sin.fn<result_type, arg_type>(value);
Note | |
---|---|
|
#include <esvcpp/math.hpp>
#include <esvcpp/math.hpp> #include <esvcpp/core.hpp> int main() { constexpr auto x = esv::sin(std::numbers::pi/4); esv::print(x); }