From 1ad04d711ffb1d03d73a95578aac4733499b3618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Wed, 31 Aug 2016 10:49:56 +0200 Subject: [PATCH] Uncomment derivatives of erfcx and dawson These derivatives are correct. The derivative of Dawson function is reported at http://mathworld.wolfram.com/DawsonsIntegral.html. The derivative of `erfcx` can be worked out using the product rule. --- src/differentiate.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/differentiate.jl b/src/differentiate.jl index 0f51e0c..9cc4a0a 100644 --- a/src/differentiate.jl +++ b/src/differentiate.jl @@ -182,8 +182,8 @@ symbolic_derivative_1arg_list = [ ( :besselj1, :( (besselj0(x) - besselj(2, x)) / 2 )) ( :bessely0, :( -bessely1(x) )) ( :bessely1, :( (bessely0(x) - bessely(2, x)) / 2 )) - ## ( :erfcx, :( (2 * x * erfcx(x) - 2 / sqrt(pi)) )) # uncertain - ## ( :dawson, :( (1 - 2x * dawson(x)) )) # uncertain + ( :erfcx, :( (2 * x * erfcx(x) - 2 / sqrt(pi)) )) + ( :dawson, :( (1 - 2x * dawson(x)) )) ]