On 11/07/11 21:03, kcrisman wrote:
> 
> So are you saying that Python and Piecewise functions will no longer
> behave correctly if this behavior goes from warning to error?  It
> would be great if you had a "toy" example with full code; maybe there
> is a workaround that needs to become standard practice here...

For piecewise, the problem and toy example are easy. The first
evaluation gives the warning, the second an error.

$ cat piecewise_test.py
#!/home/mjo/bin/sage

from sage.all import *

x = SR.symbol('x', domain='real')

interval0 = (0, 0.5)
function0 = 4.0*(x - 0.5)**2
f = piecewise([[interval0, function0]])

print "f(1/2):"
print f(1/2)
print ""

print "f(x=1/2):"
print f(x=1/2)
print ""

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to