This is how FriCAS currently differentiates the absolute value function. fricas (1) -> differentiate(abs(x),
Type: Expression(Integer)
The abs function is often defined in terms of the positive square root fricas Abs(x)==sqrt(x^2) Type: Void
so comparison with the following is perhaps a surprize. fricas differentiate(Abs(x), fricas Compiling function Abs with type Variable(x) -> Expression(Integer)
Type: Expression(Integer)
Are these expressions really equivalent? The derivative of abs is often represented by the signum function (or sign) and the derivative of signum is the Dirac delta function which of course is not really a functions at all ... So what is the 2nd derivative of abs? fricas differentiate(abs(x),
Type: Expression(Integer)
fricas differentiate(Abs(x),
Type: Expression(Integer)
|