How does matlab compute hypergeom?

8 ビュー (過去 30 日間)
Matt
Matt 2017 年 10 月 9 日
コメント済み: Walter Roberson 2017 年 10 月 9 日
I want to know what method Matlab uses to compute hypergeom (generalised hypergeometric function) if I input say floats rather than symbolic variables. For instance does it simply use the power series or is there some sort of continued fraction approximation?

採用された回答

Walter Roberson
Walter Roberson 2017 年 10 月 9 日
編集済み: Walter Roberson 2017 年 10 月 9 日
You can read the current method:
strjoin(regexp(char(evalin(symengine,'expose(hypergeom)')), '\\n', 'split'), '\n')
  2 件のコメント
Matt
Matt 2017 年 10 月 9 日
Thanks, that's helpful. However, I am not quite sure what the code (that I get when I type in the above) is doing? Am I right in thinking that your previous answer still hold - i.e. matlab uses maple for as many digits as necessary?
Walter Roberson
Walter Roberson 2017 年 10 月 9 日
MATLAB these days calls the MuPAD symbolic engine instead of Maple. The code you would have seen is MuPAD code. MuPAD was originally written in Germany. specfunc::Wurzelbehandlung appears to translate as "root treatment".
Most of the code should be easy to mentally translate. [] is indexing, () is bracketing or function calls, := is assignment, = is comparison. nops() is more or less length() . {} is set construction. {op(l1)} more or less converts the list of items in l1 into a set, so it is like unique(l1).

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by