hypergeom function always retruns symbolic results
Show older comments
I recently found a problem when I use MATLAB(2013a). I have used the function "hypergeom" for years and it works well until today I found that it always returns symbolic results, even if all the parameters are numbers. See the image below.
I don't know why it suddenly turns to this. I guess maybe it caused by Python, since I am learning Python recently and I use scipy.special.hyp2f1 in Python.
Anyone could help me to make the hypergeom functions back to normal? I mean when the inputs are numbers, then it returns floating-point. Thanks!

Answers (1)
Walter Roberson
on 26 May 2015
0 votes
apply double() to the symbolic number.
hypergeom() is a Symbolic Toolbox function and always has been. The Symbolic Toolbox is defined to return symbolic numbers. There are contexts in which the symbolic numbers would be converted on your behalf when you used them, so it might not have mattered before to you.
6 Comments
CC
on 27 May 2015
Walter Roberson
on 27 May 2015
What does
which -all hypergeom
return? Perhaps you had a numeric hypergeometic function from another source, and perhaps it is now being shadowed by something else (such as python)
CC
on 27 May 2015
CC
on 27 May 2015
Walter Roberson
on 27 May 2015
It sounds as if you have installed the Maple Connector. You could uninstall that but you will not go back to
Categories
Find more on Call Python from MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!