[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-17 Thread saad khalid
I see, thank you again! I tried editting bits of your code to see why mine wasn't working. It seems as though the main difference between our code is that you "import *" whereas I was doing "import qgamma." When I run my code with "import *", it works for some reason. Would you happen to know wh

[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-17 Thread Dominique Laurain
OK .. what you want is : from mpmath import * plot(lambda q: qgamma(mpf(0.5),mpf(q)), (0, .99)) print sqrt(pi) Bonus (my notation Fq is gammaq function and F is gamma function) : from https://en.wikipedia.org/wiki/Q-gamma_function : lim Fq(x) q->1 = F(x) from https://en.wikipedia.org/wiki/G

[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-16 Thread saad khalid
Just for clarification, how did you know from looking at the line "qgamma(z+ 1,q)" that q was supposed to be the first argument given? Because they put their variable q in second. Just to double check with wolframalpha, I ran it here: http://www.wolframalpha.com/input/?i=plot+QGamma%28z%2C.5%29%

[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-16 Thread saad khalid
Thank you so much for your help! I'm sorry for the lack of clarity, I will work on that. I really appreciate the help everyone gave, thanks again! -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving

[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-16 Thread Dominique Laurain
Explaining better what you want, and you get better help... ..now I understand what you are trying to plot (in 2D, for one specific value of q) 1) Restart worksheet 2) Copy in cell from mpmath import * plot(lambda x: qgamma(mpf(x),mpf(0.5)), (0, .99)) 3) Run it => you get your plot Extra :

[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-15 Thread saad khalid
from mpmath import qgamma plot(lambda x: qgamma(.5,x), (x, 0, .99)) That's my code, I ran it again in an entirely new project, and i'm getting a NoConvergence error. I'm not sure why the error changed between projects, but there it is. -- You received this message because you are subscribed t

[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-15 Thread saad khalid
I did this code: from mpmath import * plot(qgamma((.5,x), (x, 0, .99))) I'm just trying to get a 2D plot for x =.5, with q going from 0 to .99. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving

[sage-support] Re: Plotting a q analogue function as a challenge?

2015-08-15 Thread Dominique Laurain
Trying in the cloud : 1) Code given http://trac.sagemath.org/ticket/19032 var('q,x') from mpmath import qgamma plot3d(lambda q,x: qgamma(q,x), (q, 0.5, 3), (x, 2, 10)) => working fine, using plot3d 2) Your code given previously var('q,x') from mpmath import qgamma plot3d(lambda x: qgamma(.