solution of a elliptical integral

조회 수: 1 (최근 30일)
NILESH PANDEY
NILESH PANDEY 2016년 11월 26일
댓글: Karan Gill 2016년 11월 29일
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?

채택된 답변

Walter Roberson
Walter Roberson 2016년 11월 26일
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
NILESH PANDEY
NILESH PANDEY 2016년 11월 26일
Thanks for help Can you explain how this is working i think using double(ans) convert symbolic into precision value and using imag(zzz)==0 imaginary part becomes 0. so all the answers of k follow these commands do the same as above and finally gives the values of k after adding all of values?
Karan Gill
Karan Gill 2016년 11월 29일
No, to understand imag(zzz)==0 you need to understand "logical indexing": http://blogs.mathworks.com/steve/2008/01/28/logical-indexing/

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by