Elliptic integrals with mfun

조회 수: 4 (최근 30일)
Avi
Avi 2014년 4월 16일
댓글: the cyclist 2014년 4월 16일
I get a different value when calculating ellipticE directly and with mfun:
>> mfun('EllipticE',0.5)-ellipticE(0.5)
gives: 0.1168.
What am I missing?
I'm using Matlab 8.2.0.701 (R2013b).
Avi
  댓글 수: 2
Avi
Avi 2014년 4월 16일
After some more digging I found out that these two functions take slightly different inputs. ellipticE() assumes the input is square, so the following will be zero:
mfun('EllipticE',0.5)-ellipticE(0.5^2)
Case closed!
the cyclist
the cyclist 2014년 4월 16일
I suggest you create an answer here instead of a comment, accept that answer, and delete the comment.

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by