Derivative of error function

385 views
Skip to first unread message

Paul Rombouts

unread,
Aug 15, 2010, 11:37:10 AM8/15/10
to sage-support
Hi,

I can integrate the function exp(-x^2) to get the error function like
this:

sage: F=integral(exp(-x^2),x); F
1/2*sqrt(pi)*erf(x)

But when I try to differentiate the answer, sage does not seem to know
the derivative of erf:

sage: F.diff(x)
1/2*sqrt(pi)*D[0](erf)(x)

I am assuming that the support for the erf function is still a work in
progress, but is there a workaround I can use in the mean time, like
defining the derivative of erf myself?

Burcin Erocal

unread,
Aug 16, 2010, 7:09:54 AM8/16/10
to sage-s...@googlegroups.com

This is #8568 on trac:

http://trac.sagemath.org/sage_trac/ticket/8568

You can try the patches attached to that ticket.


Burcin

Reply all
Reply to author
Forward
0 new messages