On Thu, 17 Sep 2009 13:29:01 -0400
Dan Aldrich <[email protected]> wrote:

> y=|x|
> 1st derivative should be +1 x>0 and -1,X<0
> 
> f(x) = abs(x)
> Dx = x.derivative()

This should be

Dx = f.derivative(x)

In your example Dx is 1, and the graph is correct.

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

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