I'm transferring some code to Cython to speed things up.
In my SAGE/python code, I have a function which takes as one of its
arguments, a function G.
I then declare a series of intermediate functions like this:

    Gprime = derivative(G)
    Hconj(t) = 1/(2*pi*i)*(Gprime(t)/abs(Gprime(t))/(a-G(t))).conjugate
()
    A(t,s) = 1/(2*pi*i)*(Gprime(s)/abs(Gprime(s))/(G(s)-G(t))-(Gprime
(t)/abs(Gprime(t))/(G(s)-G(t))).conjugate())
    K(t,s) = sqrt(abs(Gprime(s))) * A(t,s) * sqrt(abs(Gprime(t)))
    g(t) = sqrt(abs(Gprime(t)))*Hconj(t)

After GPrime, I have no idea how to transfer this code into Cython.
The f(x) syntax doesn't work, and neither does lambda x:  How can I
solve this?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to