Is there a command/commands in Python equivalent to Matlab's ellipke(M)
function?
K = ellipke(M)
returns the complete elliptic integral of the first kind for the each element in M.
Sympy的mpmath.ellipk(m,** kwargs)可以为您评估第一种完整的椭圆积分。
You could vectorize mpmath.ellipk(m, **kwargs)
to work with arrays :
ellipke = numpy.vectorize(mpmath.ellipk)
But If you don't want to deal with sympy
, you can define your own method using scipy.integrate.quad
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.