Computes the Carlson's elliptic integral \( \mathbf{R}_\mathbf{C}(x, y) =
\frac12 \int_{0}^{\infty} \scriptstyle(t+x)^{-1/2}(t+y)]^{-1}\;\mathrm{d}t\).
#include <eve/module/elliptic.hpp>
#include <iostream>
using wide_t = eve::wide<double, eve::fixed<4>>;
using r_t = double;
wide_t ref1 = {3.0, 2.0, 1.0, 0.5};
wide_t imf1 = {2.0, -1.0, -5.0, 0.0};
wide_t ref2 = {0.0, 1.0, 2.0, 3.0};
wide_t imf2 = {1.0f, -4.0, -2.0, 0.0};
int main()
{
std::cout << "<- pf = " << pf << "\n";
std::cout << "<- qf = " << qf << "\n";
}
as_cayley_dickson_n_t< 2, T > complex_t
Type alias for complex numbers.
Definition complex.hpp:27