On Mar 30, 7:49 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> linuxgus wrote:
...
> > """
> > a=p[0];b=p[1];phi=p[2];delta=p[3];X=p[4];Y=p[5]
> > return numpy.array(x-a*numpy.cos(phi+delta)+X , y-b*numpy.sin(phi
> > +delta)+Y)
>
> Here's a guess (I haven't checked it):
>
> make the above function return:
>
> return numpy.array(x-a*numpy.cos(phi+delta)+X ,
> y-b*numpy.sin(phi+delta)+Y, type=float)
>
> Jason
--Hi, Jason. Thank you for responding.
I tried your suggestion at work, where I am running Sage 3.3 (I will
probably upgrade to 3.4 today). I get
TypeError: data type not understood
I used 'float' (in single quotes) and got the same error. It is
certainly different than the error I got on Sage 3.4 at home. What is
odd, if I run the same code (without the 'type=float') on sage 3.3 at
work, I still get the same "TypeError: data type not understood", so
Sage 3.3 and 3.4 behave differently in this respect (shouldn't both
versions give me the same error?).
Gus
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---