Skip to content

Commit 5cc89ad

Browse files
committed
Move SphericalHarmonicY JUnit tests to PolynomialFunctionsTest
1 parent 5ebf293 commit 5cc89ad

2 files changed

Lines changed: 12 additions & 16 deletions

File tree

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -471,20 +471,6 @@ public void testSphericalBesselY() {
471471
"-0.16499545760108916");
472472
}
473473

474-
@Test
475-
public void testSphericalHarmonicY() {
476-
check("SphericalHarmonicY(0,0,t,p)", //
477-
"1/(2*Sqrt(Pi))");
478-
check("SphericalHarmonicY(a,0,0,p)", //
479-
"Sqrt(1+2*a)/(2*Sqrt(Pi))");
480-
check("SphericalHarmonicY(1,2,t,p)", //
481-
"0");
482-
check("SphericalHarmonicY(1,1,t,p)", //
483-
"-1/2*E^(I*p)*Sqrt(3/2*1/Pi)*Sin(t)");
484-
check("SphericalHarmonicY(n,-n-1,t,p)", //
485-
"0");
486-
}
487-
488474
@Test
489475
public void testWeberE() {
490476
// check("WeberE(101,IntervalData({0,LessEqual,LessEqual,2},{3,LessEqual,LessEqual,3}))", //

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ public void testSphericalHarmonicY() {
428428
"-0.25492395213084562609690191673291502381506002910716");
429429

430430
// TODO
431-
// check("SphericalHarmonicY(1317624576693539401,{x,-3,-1/2},10007,0.5)", //
432-
// "");
431+
// check("SphericalHarmonicY(1317624576693539401,{x,-3,-1/2},10007,0.5)", //
432+
// "");
433433
check("SphericalHarmonicY(3/4, 0.5, Pi/5, Pi/3)", //
434434
"0.254247+I*0.14679");
435435
checkNumeric("SphericalHarmonicY(3/4, 0.5, Pi/5, Pi/3)", //
@@ -448,6 +448,16 @@ public void testSphericalHarmonicY() {
448448
"0.00759663110648051733+I*0.09626928971703694314");
449449
check("N(SphericalHarmonicY(23, 5 - I, Pi/3, I + Pi) )", //
450450
"0.00760864+I*0.149675");
451+
check("SphericalHarmonicY(0,0,t,p)", //
452+
"1/(2*Sqrt(Pi))");
453+
check("SphericalHarmonicY(a,0,0,p)", //
454+
"Sqrt(1+2*a)/(2*Sqrt(Pi))");
455+
check("SphericalHarmonicY(1,2,t,p)", //
456+
"0");
457+
check("SphericalHarmonicY(1,1,t,p)", //
458+
"-1/2*E^(I*p)*Sqrt(3/2*1/Pi)*Sin(t)");
459+
check("SphericalHarmonicY(n,-n-1,t,p)", //
460+
"SphericalHarmonicY(n,-1-n,t,p)");
451461
}
452462

453463
@Test

0 commit comments

Comments
 (0)