Skip to content

Commit ac90415

Browse files
committed
Update test with corrected numeric values for latest apfloat commit
- Add new test for `ChebyshevT` with specific numeric input in `PolynomialFunctionsTest` - see mtommila/apfloat#65 mtommila/apfloat@a680d28
1 parent 181ab16 commit ac90415

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/LowercaseTestCase.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,9 @@ public void testApply() {
472472
public void testArcCos() {
473473

474474
// see https://github.com/mtommila/apfloat/issues/18
475+
// https://github.com/mtommila/apfloat/issues/65
475476
checkNumeric("N(ArcCos(-2),30)", //
476-
"3.1415926535897932384626433832+I*(-1.3169578969248167086250463473)");
477+
"3.14159265358979323846264338327+I*(-1.3169578969248167086250463473)");
477478
checkNumeric("N(ArcCos(2),30)", //
478479
"I*1.3169578969248167086250463473");
479480

@@ -11712,14 +11713,14 @@ public void testInverseHaversine() {
1171211713
checkNumeric("N(ArcSin(-2),30)", //
1171311714
"-1.57079632679489661923132169163+I*1.3169578969248167086250463473");
1171411715
checkNumeric("N(ArcSin(2),30)", //
11715-
"1.5707963267948966192313216916+I*(-1.3169578969248167086250463473)");
11716+
"1.57079632679489661923132169163+I*(-1.3169578969248167086250463473)");
1171611717

1171711718
checkNumeric("ArcSin(-2.0)", //
1171811719
"-1.5707963267948966+I*1.3169578969248164");
1171911720
checkNumeric("ArcSin(2.0)", //
1172011721
"1.5707963267948966+I*(-1.3169578969248166)");
1172111722
checkNumeric("ArcSin(1.3038404810405297)", //
11722-
"1.570796326794896+I*(-0.7610396837318266)");
11723+
"1.5707963267948966+I*(-0.76103968373182661)");
1172311724
checkNumeric("InverseHaversine(1.7)", //
1172411725
"3.141592653589793+I*(-1.5220793674636532)");
1172511726
}

symja_android_library/matheclipse-core/src/test/java/org/matheclipse/core/system/PolynomialFunctionsTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ public class PolynomialFunctionsTest extends ExprEvaluatorTestCase {
1111

1212
@Test
1313
public void testChebyshevT() {
14+
// https://github.com/mtommila/apfloat/issues/65
15+
check("N(ChebyshevT(Pi/2,-9223372036854775808/11),30)", //
16+
"4672660418534308965963828022.7+I*(-20661346583240968698114847518.9)");
1417
check("ChebyshevT(-1/2, z)", //
1518
"Cos(ArcCos(z)/2)");
1619
check("ChebyshevT(1/2, z)", //

0 commit comments

Comments
 (0)