How does matlab compute hypergeom?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponse acceptée
Walter Roberson
le 9 Oct 2017
Modifié(e) : Walter Roberson
le 9 Oct 2017
Historical method: https://www.mathworks.com/matlabcentral/answers/350039-is-there-any-way-to-speed-up-the-calculation-of-the-confluent-hypergeometric-function
You can read the current method:
strjoin(regexp(char(evalin(symengine,'expose(hypergeom)')), '\\n', 'split'), '\n')
2 commentaires
Walter Roberson
le 9 Oct 2017
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).
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!