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

2015-08-14 Thread Jori Mäntysalo
On Thu, 13 Aug 2015, saad khalid wrote: I'm currently trying to get support from my professors in order for our school to move from Mathematica to Sage Math. One of them challenged me to - - What should we give as an exhange? Wasn't there some discussion about speed of gamma function on

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

2015-08-14 Thread kcrisman
See http://trac.sagemath.org/ticket/19032 for getting some of this info in Sage, if not to make access easier. -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to

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

2015-08-14 Thread saad khalid
On Friday, August 14, 2015 at 1:13:53 AM UTC-5, jori.ma...@uta.fi wrote: On Thu, 13 Aug 2015, saad khalid wrote: I'm currently trying to get support from my professors in order for our school to move from Mathematica to Sage Math. One of them challenged me to - - What should we

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

2015-08-14 Thread Adil Hasan
Hello Saad, I think that's a python error and is telling us that you have given too many arguments to the function. I wonder if your brackets are OK. Just from looking at what you post it looks as if there is a mismatch in the opening and closing of brackets. Hth Adil On Fri, 14 Aug 2015 15:57

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

2015-08-14 Thread saad khalid
The error ended up being that I had tried to plot it in 3d first, which required the call q,x = var('q,x'), which messed up my calls to x later. At least, I think that was the cause. Either way, doing reset() fixed the problem. The error now is that apparently there's no convergence... it says

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

2015-08-14 Thread saad khalid
Huh... for some reason, now I'm getting a totally different error, I didn't even change anything. So strange. It's saying: TypeError: cannot convert 0.500 to an integer -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe

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

2015-08-13 Thread saad khalid
Hello everyone: I'm currently trying to get support from my professors in order for our school to move from Mathematica to Sage Math. One of them challenged me to simply plot the q-gamma function on sage math, which he does on Mathematica simply by calling on the QGamma function. Here is some

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

2015-08-13 Thread David Joyner
This is implemented in sympy, which is included with sage, according to google. I haven't tried it. Sent from TypeMail On Aug 13, 2015, 15:38, at 15:38, saad khalid saad1...@gmail.com wrote: Hello everyone: I'm currently trying to get support from my professors in order for our school to

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

2015-08-13 Thread D. S. McNeil
While qgamma isn't a native function, there's a qgamma implementation in mpmath, one of the libraries included in Sage, so: from mpmath import qgamma plot(lambda x: qgamma(4,x), (x, 2, 10)) should give you a plot of gamma_(q=4). Doug -- You received this message because you are subscribed to

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

2015-08-13 Thread Vincent Delecroix
On 13/08/15 22:56, D. S. McNeil wrote: While qgamma isn't a native function, there's a qgamma implementation in mpmath, one of the libraries included in Sage, so: from mpmath import qgamma plot(lambda x: qgamma(4,x), (x, 2, 10)) should give you a plot of gamma_(q=4). Nice! And in 3d sage:

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

2015-08-13 Thread saad khalid
While qgamma isn't a native function, there's a qgamma implementation in mpmath, one of the libraries included in Sage, so: from mpmath import qgamma plot(lambda x: qgamma(4,x), (x, 2, 10)) should give you a plot of gamma_(q=4). Thank you! Though, looking at the documentation, I think

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

2015-08-13 Thread David Joyner
On Fri, Aug 14, 2015 at 12:16 AM, saad khalid saad1...@gmail.com wrote: While qgamma isn't a native function, there's a qgamma implementation in mpmath, one of the libraries included in Sage, so: from mpmath import qgamma plot(lambda x: qgamma(4,x), (x, 2, 10)) should give you a plot of