Marshall Hampton wrote:
> I still get Pari errors when I do what you are describing - did you
> actually get that to work?

No, I got a pari error too.




> On May 21, 11:27 am, Jason Grout <[EMAIL PROTECTED]> wrote:
>> Marshall Hampton wrote:
>>> I thought it would be cool to see a vector field plot with the real
>>> and imaginary parts, but for some reason it doesn't work.  Anyone know
>>> why not?
>>> i=CDF.0
>>> tau=i
>>> Om=pari([1,tau])
>>> var('x,y')
>>> def g(a,b):
>>>     q = CDF(Om.ellwp(a+b*i))
>>>     return (float(q.real()),float(q.imag()))
>>> plot_vector_field(g(x,y), (.1,.9), (.1,.9))
>> plot_vector_field takes two functions currently.  I don't see any reason
>> it shouldn't be extended to take one function that returned two outputs,
>> though.
>>
>> For now, at the cost of doing twice the computations, you could do
>> something like:
>>
>> plot_vector_field((g_real(x,y), g_imag(x,y)), ...)
>>
>> where g_real and g_imag return the real and imaginary parts of g(x,y)
>>
>> Jason
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
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