Re: [sage-support] Plotting a q analogue function as a challenge?
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 sage-devel, maybe a year ago? Or some graph theory question that is easy to do in Sage? -- Jori Mäntysalo
Re: [sage-support] Plotting a q analogue function as a challenge?
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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 give as an exhange? Wasn't there some discussion about speed of gamma function on sage-devel, maybe a year ago? Or some graph theory question that is easy to do in Sage? -- Jori Mäntysalo What exactly did you mean by exchange? Also, I'm running into an error with qgamma. I'm trying to run it with x = .5, and q ranging from 0 to .99. However, I am getting a too many values to unpack error. My code is this: plot(lambda x: qgamma(.5,x), (x, 0, .99)) Does that mean that I don't have enough server space? -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 saad khalid saad1...@gmail.com wrote: 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 give as an exhange? Wasn't there some discussion about speed of gamma function on sage-devel, maybe a year ago? Or some graph theory question that is easy to do in Sage? -- Jori Mäntysalo What exactly did you mean by exchange? Also, I'm running into an error with qgamma. I'm trying to run it with x = .5, and q ranging from 0 to .99. However, I am getting a too many values to unpack error. My code is this: plot(lambda x: qgamma(.5,x), (x, 0, .99)) Does that mean that I don't have enough server space? -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout. -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 NoConvergence. If someone could try to run my code and see what the issue is, I would really appreciate it. Plotting 0 to .99 on Mathematica seems to work fine, I can't lose to my professor when I'm so close! -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Plotting a q analogue function as a challenge?
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 information about it: http://mathworld.wolfram.com/q-GammaFunction.html My problem is, I don't actually know that much about the q-gamma function, or really much about the gamma function. But, I don't want to let him down, though he seemed very doubtful that Sage would be able to do it. I was looking for the q-gamma function on Sage/maxima but I couldn't find anything that fit what I was looking for. I'm hoping that maybe I just don't know the name or the format for how it's done outside of Mathematica? To be honest, I'm fairly new to Sage as well. I'm sorry if I'm asking in the wrong place, it's because I simply don't know where to ask. If there's a better place for me to ask this, I would be happy to ask there! Thanks for your help. I'm really hoping that I can get our college to support Sage :) -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 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 information about it: http://mathworld.wolfram.com/q-GammaFunction.html My problem is, I don't actually know that much about the q-gamma function, or really much about the gamma function. But, I don't want to let him down, though he seemed very doubtful that Sage would be able to do it. I was looking for the q-gamma function on Sage/maxima but I couldn't find anything that fit what I was looking for. I'm hoping that maybe I just don't know the name or the format for how it's done outside of Mathematica? To be honest, I'm fairly new to Sage as well. I'm sorry if I'm asking in the wrong place, it's because I simply don't know where to ask. If there's a better place for me to ask this, I would be happy to ask there! Thanks for your help. I'm really hoping that I can get our college to support Sage :) -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout. -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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: var('q,x') sage: from mpmath import qgamma sage: plot3d(lambda q,x: qgamma(q,x), (q, 0.5, 3), (x, 2, 10)) Vincent -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 you meant that it's q-gamma at x=4? Also, I was wondering, what does the lambda x: part of your code do? Or rather, how do I go about calling x later? Also, what is the best way for me to find functions like this, whose implementation I don't know in Sage? When I tried searching q-gamma Sage Math on google, nothing came up, so I tried q-gamma Maxima, but still nothing. I hadn't even thought of looking at Sympy. Is there a good way for me to know where to look? -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Plotting a q analogue function as a challenge?
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 gamma_(q=4). Thank you! Though, looking at the documentation, I think you meant that it's q-gamma at x=4? Also, I was wondering, what does the lambda x: part of your code do? Or rather, how do I go about calling x later? Also, what is the best way for me to find functions like this, whose implementation I don't know in Sage? When I tried searching q-gamma Sage Math on google, nothing came up, so I tried q-gamma Maxima, but still nothing. I hadn't even thought of looking at Sympy. Is there a good way for me to know where to look? I googled sympy q-gamma and got this: http://docs.sympy.org/dev/modules/mpmath/functions/qfunctions.html -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout. -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.