[sage-support] Re: When to use fast_float

2008-11-14 Thread pong
I was aware of the fact that f = fast_float(f) might be dangerous so I tried ff = fast_float(f). Now I tried your modification, unfortunately the problem persists. I got the problem after the action "restart worksheet" and run the script on the same cell by just changing the functions on which i

[sage-support] Re: When to use fast_float

2008-11-14 Thread Marshall Hampton
I'm not sure what exactly is happening, but it might be some side effect of redefining f and g inside the function. The following version works for me: def shaded_area_plot(f,g,c,d,a,b): """ Plots functions f and g from c to d and shades the region between them from a to b. """ f

[sage-support] Re: When to use fast_float

2008-11-13 Thread pong
Also, let me apologize in advance if that's because some bugs in my script. But I hope someone can tell me why that's happening. On Nov 13, 11:10 pm, pong <[EMAIL PROTECTED]> wrote: > While working with fast_float, I find something extremely puzzling! > It's hard to explain but let me try: > > 0)

[sage-support] Re: When to use fast_float

2008-11-13 Thread pong
While working with fast_float, I find something extremely puzzling! It's hard to explain but let me try: 0) I define shade_are_plot 1) I run shade_area_plot( f1,g1, a1, b1, c1, d1) 2) I restart the worksheet 3) I run the definition cell again 4) I run shade_area_plot(f2, g2, a2, b2, c2, d2) SAG

[sage-support] Re: When to use fast_float

2008-11-13 Thread Robert Bradshaw
On Nov 13, 2008, at 1:22 PM, pong wrote: > > Thanks. > > Where can I find out more about fast_float? > Even after importing fast_float, "fast_float?" does not show any > useful information. Try typing sage.ext.fast_eval? > Is it related to fast_arith? No, completely orthogonal despite the name

[sage-support] Re: When to use fast_float

2008-11-13 Thread pong
Thanks. Where can I find out more about fast_float? Even after importing fast_float, "fast_float?" does not show any useful information. Is it related to fast_arith? On Nov 12, 7:56 pm, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Nov 12, 2008, at 5:52 PM, kcrisman wrote: > > >> put those

[sage-support] Re: When to use fast_float

2008-11-12 Thread Robert Bradshaw
On Nov 12, 2008, at 5:52 PM, kcrisman wrote: >> put those three lines in where indicated and it will be orders of >> magnitude faster for most cases, plus will handle constants, lambda >> functions, etc., automatically. >> >> fast_float is one of Sage's coolest "secrets". Thanks :) > That bring