]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/tr1/5_numerical_facilities/special_functions/11_cyl_neumann/check_value.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / tr1 / 5_numerical_facilities / special_functions / 11_cyl_neumann / check_value.cc
index 3c0cbe7b977093bfb4761fc1e446ad26d5e1f9f0..7ef9703290a65fa96782de2c609c4af7b0618598 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-do run { target c++11 } }
 // { dg-options "-D__STDCPP_WANT_MATH_SPEC_FUNCS__" }
 //
-// Copyright (C) 2016-2018 Free Software Foundation, Inc.
+// Copyright (C) 2016-2024 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -742,6 +742,39 @@ data028[20] =
 };
 const double toler028 = 1.0000000000000006e-11;
 
+// Test data for nu=100.0000000000000000
+// max(|f - f_GSL|): 3.9022387751663778e-14 at index 16
+// max(|f - f_GSL| / |f_GSL|): 2.4760677072012703e-11
+// mean(f - f_GSL): 3.6878362466971231e-16
+// variance(f - f_GSL): 5.0707962306468580e-28
+// stddev(f - f_GSL): 2.2518428521206487e-14
+const testcase_cyl_neumann<double>
+data029[21] =
+{
+  { -2.2438688257729954e-02, 100.0000000000000000, 1000.0000000000000000, 0.0 },
+  { -2.1077595159819992e-02, 100.0000000000000000, 1100.0000000000000000, 0.0 },
+  { -3.5299439206692585e-03, 100.0000000000000000, 1200.0000000000000000, 0.0 },
+  {  1.4250019326536615e-02, 100.0000000000000000, 1300.0000000000000000, 0.0 },
+  {  2.1304679089735663e-02, 100.0000000000000000, 1400.0000000000000000, 0.0 },
+  {  1.5734395077905267e-02, 100.0000000000000000, 1500.0000000000000000, 0.0 },
+  {  2.5544633636137774e-03, 100.0000000000000000, 1600.0000000000000000, 0.0 },
+  { -1.0722045524849367e-02, 100.0000000000000000, 1700.0000000000000000, 0.0 },
+  { -1.8036919243226864e-02, 100.0000000000000000, 1800.0000000000000000, 0.0 },
+  { -1.6958415593079763e-02, 100.0000000000000000, 1900.0000000000000000, 0.0 },
+  { -8.8788704566276667e-03, 100.0000000000000000, 2000.0000000000000000, 0.0 },
+  {  2.2504407108413179e-03, 100.0000000000000000, 2100.0000000000000000, 0.0 },
+  {  1.1833215246712251e-02, 100.0000000000000000, 2200.0000000000000000, 0.0 },
+  {  1.6398784536343945e-02, 100.0000000000000000, 2300.0000000000000000, 0.0 },
+  {  1.4675984403642338e-02, 100.0000000000000000, 2400.0000000000000000, 0.0 },
+  {  7.7523920451654229e-03, 100.0000000000000000, 2500.0000000000000000, 0.0 },
+  { -1.5759822576003489e-03, 100.0000000000000000, 2600.0000000000000000, 0.0 },
+  { -9.9314877404787089e-03, 100.0000000000000000, 2700.0000000000000000, 0.0 },
+  { -1.4534495161704743e-02, 100.0000000000000000, 2800.0000000000000000, 0.0 },
+  { -1.4059273497237509e-02, 100.0000000000000000, 2900.0000000000000000, 0.0 },
+  { -8.9385158149605185e-03, 100.0000000000000000, 3000.0000000000000000, 0.0 },
+};
+const double toler029 = 1.0000000000000006e-10;
+
 template<typename Ret, unsigned int Num>
   void
   test(const testcase_cyl_neumann<Ret> (&data)[Num], Ret toler)
@@ -794,5 +827,6 @@ main()
   test(data026, toler026);
   test(data027, toler027);
   test(data028, toler028);
+  test(data029, toler029);
   return 0;
 }