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 Center および File ExchangeSpecial Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by