definition of ellipticF in mfun, error updating code using mfun('EllipticF'...) to ellipticF

4 views (last 30 days)
I'm trying to run some code I wrote back in 2012 that used to use the expression:
phi(jy,jx) = real(mfun('EllipticF',z/a,k));
but when I run it now there is a warning message that says:
Warning: Functions 'mfun' and 'mfunlist' will be removed in a future release. Instead, use the
appropriate special function. For example, use 'bernoulli(n)' instead of mfun('bernoulli',n).
This is fine, I tried rewriting the code using
phi(jy,jx) = real(ellipticF(z/a,k^2));
where the k^2 is due to the change in definition between the old and new functions. This gives results that are qualitatively very different than what I get using the mfun function so I assume I made some error in changing the definition between the two functions. However, I can't documentation showing the definition of mfun('EllipticF'...) so its hard to compare. I'm not sure where I'm going wrong so it would be good if someone could share what the definition of the mfun('EllipticF'...) integral is. Or if you see where I've made my mistake, I'd appreciate it. I assume that maybe both arguments of the function have changed, but just can't find the documentation.

Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!