Skip to content

Commit

Permalink
Handle single query on ellint_3
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Dec 20, 2024
1 parent 52b029f commit abc73f6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/test_ellint_3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,10 @@ void test_spots(T, const char* type_name)
// extra coverage:
{{ SC_(0.25), SC_(1.5707963267948966192313216916397514420985846996875529104874722961), SC_(0.5), SC_(1.9566162791192362072797270226545548480338156697696426140010541819)}},
{{ SC_(-1.68105157155604675313133890866087630129903967242323562005e-4932) /*-2^-16382*/, SC_(0.5), SC_(0.5), SC_(0.5050887275786480788831082896236055222277753396479749578838439064)}},
#if LDBL_MAX_EXP > 16382
{{ SC_(-2.974328738393079412714398316570017826908611717741275593681e4931) /*-2^16382*/, SC_(0.0009765625) /*2^-10*/, SC_(3.36210314311209350626267781732175260259807934484647124010e-4932)/*2^-16382*/, SC_(2.88021821995207004657845224981480071550500608128401469566e-2466)}},
#else
// Duplicates test case above, since we can't have the actual case here.
{{ SC_(-1.68105157155604675313133890866087630129903967242323562005e-4932) /*-2^-16382*/, SC_(0.5), SC_(0.5), SC_(0.5050887275786480788831082896236055222277753396479749578838439064)}},
#endif
} };
(std::numeric_limits<T>::is_specialized && (std::numeric_limits<T>::max_exponent > 16382))
? std::array<typename table_type<T>::type, 4> {{ SC_(-2.974328738393079412714398316570017826908611717741275593681e4931) /*-2^16382*/, SC_(0.0009765625) /*2^-10*/, SC_(3.36210314311209350626267781732175260259807934484647124010e-4932)/*2^-16382*/, SC_(2.88021821995207004657845224981480071550500608128401469566e-2466)}}
: std::array<typename table_type<T>::type, 4> {{ SC_(-1.68105157155604675313133890866087630129903967242323562005e-4932) /*-2^-16382*/, SC_(0.5), SC_(0.5), SC_(0.5050887275786480788831082896236055222277753396479749578838439064)}}
} };

do_test_ellint_pi3<T>(data1, type_name, "Elliptic Integral PI: Mathworld Data");

Expand Down

0 comments on commit abc73f6

Please sign in to comment.