PrevUpHomeNext

esv::sin


Do not catch snakes.

esv::sin

esv::sin is a function object of class esv::sin_class.

Calling Sig

Result type is always floating (auto-deduced), arg type is auto-deduced

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

Result type is explicit set, arg type is auto-deduced

constexpr auto result = esv::sin.fn<result_type>(value);

Result type is explicit set, arg type is explicit set

constexpr auto result = esv::sin.fn<result_type, arg_type>(value);

Note

[Note] Note
  • The returned float type is one of esv::f32, esv::f64, esv::f128, esv::fmax, esv::fx32, esv::fx64, esv::fx128, esv::fxmax.
  • constexpr support.

Header

#include <esvcpp/math.hpp>

Example

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

int main()
{
	constexpr auto x = esv::sin(std::numbers::pi/4);
	esv::print(x);
}

See Also

esv::cos

esv::print


PrevUpHomeNext

esv::print