[sage-support] Re: odeint solver script works in IPython but gets 'array cannot be safely cast to required type' error in Sage

2009-02-17 Thread Steve Yarbro
r plot legends > and better axes in Sage (by A. Bergeron and M. Hansen I believe); > right now sometimes its necessary to add text more directly with the > "text" command (produces a graphics object you can add to other > graphics). > > Hope that helps, > M. Hampton > &

[sage-support] Re: odeint solver script works in IPython but gets 'array cannot be safely cast to required type' error in Sage

2009-02-16 Thread Steve Yarbro
Hi Mike: Wow, thanks for the very timely response, that was warp speed. I've tried your suggestion and I've stopped having the error message, but for some reason, I don't get a plot. I'm a newbie with Python coming from the MATLAB world. I'll keep working with it, but here is what I have: t =

[sage-support] Re: Having difficulty using polyfit function

2009-01-15 Thread Steve Yarbro
helps alot. Regards, Steve On Thu, Jan 15, 2009 at 7:44 PM, Jason Grout wrote: > > Steve Yarbro wrote: > > > > > > On Sun, Jan 11, 2009 at 4:13 PM, mabshoff <> wrote: > > > > > > Hi Michael: > > > > > > Thanks for the help. The

[sage-support] Re: Having difficulty using polyfit function

2009-01-15 Thread Steve Yarbro
hilly wrote: > > On Jan 15, 5:41 am, "Steve Yarbro" wrote: > > Hi Michael: > > > > I published an example athttp://sagenb.org:8000/home/pub/156. Thanks. > > Hello, aside from the actual problem, this fit looks quite wrong. I > played around a bit and fit

[sage-support] Re: Having difficulty using polyfit function

2009-01-14 Thread Steve Yarbro
Hi Michael: I published an example at http://sagenb.org:8000/home/pub/156. Thanks. Steve On Wed, Jan 14, 2009 at 4:53 AM, mabshoff < michael.absh...@mathematik.uni-dortmund.de> wrote: > > > > On Jan 11, 6:49 pm, "Steve Yarbro" wrote: > > On Sun, Jan 11,

[sage-support] Re: Having difficulty using polyfit function

2009-01-11 Thread Steve Yarbro
ample URL is http://sagenb.org:8000/home/pub/148/. When I use the zip(), the list_plot works. Thanks Steve > > > On Jan 11, 3:04 pm, "Steve Yarbro" wrote > michael.absh...@mathematik.uni-dortmund.de: > > Hi: > > Hi Steve, > > > My thanks to Harald

[sage-support] Re: Having difficulty using polyfit function

2009-01-11 Thread Steve Yarbro
Hi: My thanks to Harald S., this was an excellent example. This example worked great and solved another issue I was having using list_plot with the results. How do you figure out what object type is required for input to other functions? For example, using zip() to produce a list to use with li

[sage-support] Re: Having difficulty using polyfit function

2009-01-11 Thread Steve Yarbro
Mike: Outstanding! Thank you, I appreciate the help. Regards, slybro On Sat, Jan 10, 2009 at 10:08 PM, Mike Hansen wrote: > > Hello, > > On Sat, Jan 10, 2009 at 8:29 PM, slybro wrote: > > > > I am having trouble using the polyfit function. Here are the > > commands: > > > > import numpy as