Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test for bug in clpmn

  • Loading branch information...
commit a409eb958b68bc93a9fe9936fa3d25e664391d6f 1 parent b73f9f9
@gertingold authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 scipy/special/tests/test_basic.py
View
11 scipy/special/tests/test_basic.py
@@ -2186,6 +2186,17 @@ def test_log1pmore(self):
assert_array_almost_equal(l1pm,l1pmrl,8)
class TestLegendreFunctions(TestCase):
+ def test_clpmn(self):
+ clp = special.specfun.clpmn(1, 1, 0.5, 0.3)
+ assert_array_almost_equal(clp,(array([[ 1.0000,
+ 0.5+0.3j ],
+ [ 0.0000,
+ -0.9305815721+0.1611895232j ]]),
+ array([[ 0.0000,
+ 1.0000 ],
+ [ 0.0000,
+ 0.4674335183+0.4033449589j ]])),7)
+
def test_lpmn(self):
lp = special.lpmn(0,2,.5)
assert_array_almost_equal(lp,(array([ [ 1.00000 ,
Please sign in to comment.
Something went wrong with that request. Please try again.