y=|x|
1st derivative should be +1 x>0 and -1,X<0

f(x) = abs(x)
Dx = x.derivative()
p1 = plot (f(x),(-5,5),color='black')
p2 = plot (Dx, (0,5),color = 'red')
p3 = plot (Dx, (-5,0),color = 'blue')
show (p1+p2+p3)

-d



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