You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
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()
Kalevi Suominen
unread,
May 17, 2015, 1:15:20 AM5/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
> But the values generated by sympy's hyp2f1() function are different than the ones given in the example.
Can you explain in more detail in which way the values are different?