Hi,
 I am using the hyp2f1() function in the mpmath library. I tried to plot 
the example (No:3) given in the link: 
http://reference.wolfram.com/language/ref/Hypergeometric2F1.html. But the 
values generated by sympy's hyp2f1() function are different than the ones 
given in the example. I tried using the hyper() function which is 
generalized hypergeometric function with p=2 and q=1 but the result is the 
same. I need to use hypergeometric functions (with p=3 and q=2) in one of 
the codes that I am writing but this basic example is not working for me. 
Can anybody point out the mistake that I made. Thank you.

from sympy.mpmath import hyp2f1
from matplotlib import pyplot as plt

a=mp.linspace(-1,1,100)
y=[]
for i in a:
    y.append(hyp2f1(1.0/3.0,1.0/3.0,2.0/3.0,i))
plt.plot(a,y)
plt.grid()


-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/ac8d9218-eccd-477f-a838-3ad92f326586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to