"Can not convert to an Integer"

48 views
Skip to first unread message

saad khalid

unread,
Aug 14, 2015, 2:56:12 PM8/14/15
to sympy
Hello everyone! My professor challenged me to show him that non-mathematica applications could do the computing that he needs(I'm trying to convert the college from Mathematica to something open source). He wants a plot of q-gamma with x=.5, and q going from 0 to .99. My code is as follows:

from mpmath import *
plot
(qgamma((.5,x), (x, 0, .99)))

When I run that, I am getting the error:
"TypeError: cannot convert 0.500000000000000 to an integer"

Would you know what's wrong here? I'm sorry if this is a basic question, I'm rather new to all of this. Thanks!

Aaron Meurer

unread,
Aug 14, 2015, 4:06:42 PM8/14/15
to sy...@googlegroups.com
Are you using SymPy at all here or just mpmath? If it's just mpmath, you may have better luck on the mpmath mailing list https://groups.google.com/forum/#!forum/mpmath.

Aaron Meurer 



--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/78318497-0871-4245-b3af-98770cec5387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

saad khalid

unread,
Aug 14, 2015, 4:52:20 PM8/14/15
to sympy
Oh, I see, my mistake. Thanks!
Reply all
Reply to author
Forward
0 new messages