Hello everyone. I'm trying to write a function for the q-polygamma
function. I'm getting the formula from this:
http://ami.ektf.hu/uploads/papers/finalpdf/AMI_37_from95to100.pdf
It's at the bottom of page 97(page 3 of pdf).
Here is the code I'm running:
var('q')
var('n')
var('z')
Phi = lambda x,q: -ln(1-q) + ln(q)*sum((q^(n*x)/(1-q^n)),n,1,oo)
plot(Phi(z,2/3),(z,.1,2))
But, when I run it, it gives me the error "ValueError: Variable 'z' not
found"
I'm still not used to functional programming, so I'm sure I'm doing
something wrong. I just don't know what exactly that is. Why is 'z' not
found?
To be clear about what I'm trying to do, I'm trying to mimic the
Mathematica function QPolyGamma to an extent.
https://reference.wolfram.com/language/ref/QPolyGamma.html
I want to plot the function from z = .1 to z = 2, with q as a constant =
2/3.
--
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.