I am trying to calculate some mathematical expressions with the incomplete Legendre elliptic integral of the first kind:
Where K is the incomplete Legendre elliptic integral of the first kind. defined as ellipkinc
in scipy.special
.
Here is an example in Python:
from numpy import arccos, sqrt
from scipy.special import ellipkinc as K
z = (1+5j)/2.0
x = K(arccos(z), 1/sqrt(2))
But I get the following error:
TypeError Traceback (most recent call last)
<ipython-input-12-d05df015ffeb> in <module>
----> 1 K(arccos(z), 1/sqrt(2))
TypeError: ufunc 'ellipkinc' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Why this function does not accept a complex argument? if not, is there any alternative function in some package that accepts complex argument?
I appreciate any help.
How to make trim() function work in node.js code, even if not used in mongoose's model schema?
Multer fields is not working with Express Routing Middleware
xml where i am getting all the suburls to then scrap some things, i am getting all the suburls good but when i try this foreach i am getting the next error
I'm having trouble getting data from the databaseThis is all done on localhost using WAMP
i created my new store with Woo commerce and when i was checking the pages of websites and checking the payments method (using cash on delivery) i did some orders
Want to improve this question? Update the question so it focuses on one problem only by editing this post