solution of a elliptical integral
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
NILESH PANDEY
le 26 Nov 2016
Commenté : Karan Gill
le 29 Nov 2016
i am trying to find the value of k in given code as i increases m i don't get one value of k because ok m increases power of k increases so solution has many value depending upon power of k which value should i take?
this is a code of elliptical integral in power series expansion source https://en.wikipedia.org/wiki/Elliptic_integral
i know one thing that 0<k<1
can any one tell me which value of k should i take and is my code right?
0 commentaires
Réponse acceptée
Walter Roberson
le 26 Nov 2016
Instead of taking abs(ans) use
zzz = double(ans);
abs(zzz(imag(zzz)==0))
You will get two copies of the same number, 0.427794945616717
2 commentaires
Karan Gill
le 29 Nov 2016
No, to understand imag(zzz)==0 you need to understand "logical indexing": http://blogs.mathworks.com/steve/2008/01/28/logical-indexing/
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!