blob: 7b274d64d2b2870e462e18ce88f1e3e62cf68ed1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <tr1/cmath>
#include <testsuite_hooks.h>
void
test01()
{
double Pi1 = std::tr1::comp_ellint_3(0.75, 0.0);
VERIFY(std::abs(Pi1 - 1.91099) < 0.00001);
double Pi2 = std::tr1::comp_ellint_3(0.75, 0.5);
VERIFY(std::abs(Pi2 - 2.80011) < 0.00001);
}
int
main()
{
test01();
return 0;
}
|