libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/14_ellint_3/pr66689.cc
raw symbols SCIP| 1 | |
| 2 | #include <tr1/cmath> |
| 3 | #include <testsuite_hooks.h> |
| 4 | |
| 5 | void |
| 6 | test01() |
| 7 | { |
| 8 | const double pi = 3.141592654; |
| 9 | |
| 10 | double Pi1 = std::tr1::ellint_3(0.75, 0.0, pi / 2.0); |
| 11 | VERIFY(std::abs(Pi1 - 1.91099) < 0.00001); |
| 12 | |
| 13 | double Pi2 = std::tr1::ellint_3(0.75, 0.5, pi / 2.0); |
| 14 | VERIFY(std::abs(Pi2 - 2.80011) < 0.00001); |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | main() |
| 19 | { |
| 20 | test01(); |
| 21 | return 0; |
| 22 | } |