Our animals love each other.
esv::cos is a function object of class esv::cos_class.
constexpr auto result = esv::cos(value);
constexpr auto result = esv::cos.fn<result_type>(value);
constexpr auto result = esv::cos.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::cos(std::numbers::pi/4); constexpr esv::fx32 y = x; constexpr auto z = esv::cos(y); // return esv::fx32 esv::print(x, y, z); }