MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Question about the derivative of Abs


Sam Takoy wrote:
> Hi,
> 
> I kind of asked this question before, but in a more confusing context, 
> so now I would like to ask it by itself.
> 
> In the course of my computations, I get Abs' and Abs''. It is applied to 
> a positive number, so I think those values should be 1 and 0. However, 
> Mathematica fails to simplify it.
> 
> For example
> 
> In[34]:= Abs'[2.0]
> 
> Out[34]=
> \!\(\*SuperscriptBox["Abs", "\[Prime]",
> MultilineFunction->None]\)[2.]
> 
> 
> These expressions really mess up my answers. How do I get Mathematica to 
> do these simplifications?
> 
> Thanks
> 
> Sam
> 
You could just clean up the answer by applying a suitable transformation:

expr /. {Abs'[y_]->1,Abs''[y_]->0}


David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: printing
  • Next by Date: Re: Export Dynamic Matrix to XLS
  • Previous by thread: Re: Question about the derivative of Abs
  • Next by thread: Re: sampling a spline