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%2C%28z%2C0%2C.99%29

The plot it gives is the same as the plot your code gives, however that is 
for q=.5, with z going from 0 to .99. I'm looking for it the other way 
around, with z = .5, and q going from 0 to .99. Am I misunderstanding 
something? 

On Sunday, August 16, 2015 at 2:09:40 AM UTC-5, Dominique Laurain wrote:
>
>
> 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 :
>
> 4) Run in new cell : qgamma?  
>   and you will understand while reading code line 
>
> qgamma(z+1,q)
>
>  that you wrongly swapped arguments  (q and the real or complex x)
>
> that's why reading help and trying "simple" code is better than rushing to 
> code 
>
> 5) Check your plot, by plotting some values
>
> improve this code:
>
> print qgamma(mpf(0.2),mpf(0.5))
> print qgamma(mpf(0.4),mpf(0.5))
>
> 6) If you want to plot for argument z=x with complex values (instead of real 
> values on the pure real line)...read before SAGE help about complex_plot
>
> Dominique.
>
>  
>  
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to