I am new to sage, trying to plot a hypergeometric function,
2F_1(a+ib, a-ib, c, z) where I know the value of a and c
but vary b from 0 to 10, and z from 0 to 1. I tried mpmath
like below after getting an example from someone, but do
not know how to use SAGE and mpmath beyond this.

import mpmath
f = lambda z: mpmath.hyp2f1(2+z.real*I, 2-z.real*I, 0.5, z.imag)
mpmath.cplot(f,[-2,2], [-2,2], file="hyperg.png")

I do not even understand the plot I see from that, and if
I increase the variables to f = lambda: z,w then the mpmath.cplot
fails to plot at all.

Thanks

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to