namespace eve
{
constexpr auto tchebytchev[conditional_expr
auto c]()
noexcept;
constexpr auto tchebytchev[logical_value
auto m]()
noexcept;
}
General Cayley-dickson concept.
Definition concepts.hpp:41
General real concept.
Definition concepts.hpp:48
constexpr auto i
Computes the complex number in the chosen type.
Definition i.hpp:68
constexpr auto tchebytchev
Computes the value of the Tchebytchev polynomial of order n at x:
Definition tchebytchev.hpp:128
Cayley-Dickson algebra main abstraction It is built so that all operation over C, Q and other such al...
Definition cayley_dickson.hpp:32
#include <eve/wide.hpp>
#include <iostream>
#include <kyosu/kyosu.hpp>
int main()
{
eve::wide xd{0.5, -1.5, 0.1, -1.0, 19.0, 25.0, 21.5, 10000.0};
eve::wide n{0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0};
double x(0.5);
std::cout << "<- xd = " << xd << '\n';
std::cout << "<- n = " << n << '\n';
std::cout << "<- x = " << x << '\n';
std::cout <<
"-> tchebytchev[eve::ignore_last(2)](n, xd) = " <<
kyosu::tchebytchev[eve::ignore_last(2)](n, xd)
<< '\n';
std::cout <<
"-> tchebytchev[n > 3](n, xd) = " <<
kyosu::tchebytchev[n > 3](n, xd) <<
'\n';
std::cout <<
"-> tchebytchev[kind_2](n, xd) = " <<
kyosu::tchebytchev[eve::kind_2](n, xd) <<
"\n\n";
}