Hello Folks,

This works ==========

var('x')
f1(x) = 2
f2(x) = 4-x
f3(x) = exp(x)/10
f4(x) = sin(2*x)
f = Piecewise([[(0,1),f1],[(1,2),f2],[(2,3),f3],[(3,10),f4]])
F = f.integral()
F.plot()

This does not (f1 changed, nothing else) ================

var('x')
f1(x) = 1
f2(x) = 4-x
f3(x) = exp(x)/10
f4(x) = sin(2*x)
f = Piecewise([[(0,1),f1],[(1,2),f2],[(2,3),f3],[(3,10),f4]])
F = f.integral()
F.plot()

the error is :
Traceback (click to the left for traceback)
...
ValueError: free variable: x |--> x

Any idea why this happened ?

Thanks (very much) for any advice or comment.

Philippe Saadé

-- 
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