This works: f=arccos((1-x^2)/(1+x^2)) g=f.diff(x) g.simplify_full() 2*x/((x^2 + 1)*abs(x))
In general: type g. TAB and you will find all kind of handy functions. Roland On 28 feb, 10:58, Loïc <xl...@free.fr> wrote: > Hello > > Another problem: > I want the derivative for the function arccos((1-x^2)/(1+x^2)) > > I wrote: > > f=arccos((1-x^2)/(1+x^2)) > f.diff(x) > -(-2*x/(x^2 + 1) - 2*x*(1 - x^2)/(x^2 + 1)^2)/sqrt(1 - (1 - x^2)^2/ > (x^2 + 1)^2) > > The best answer would be: > 2/(1+x^2)*sign(x) > > How can I simplify this expression to get this answer? > > Best > > Loïc --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---