pong wrote:
> 
> 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 it
> calls on.
> 
> I'm running SAGE 3.1.4 on a VMware player on a Windows Machine.
> I hope someone can reproduce what I have experienced and figure out
> what's going on.


The problem is not in your code.  I think the problem is in your browser 
caching the image.  When Sage creates the image, it gives it the same 
name.  Your browser thinks that it is the same image as before, so it 
doesn't bother to update the image.  If you refresh the page after you 
first see the wrong image, you'll see the right image appear.

You'll see the same problem if you have two cells:

f(x) = x^2

and

plot(f, (x, 1, 2))


1. Evaluate the two cells, so you get a plot
2. Restart the worksheet
3. Change the function
4. Evaluate the two cells again.  Notice you get the same plot.
5. Hit Refresh in the browser.  Now the plot updates.

I've created http://trac.sagemath.org/sage_trac/ticket/4523 to track 
with this issue.

Thanks,

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