Skip to content

Commit 4548c22

Browse files
committed
remove use of square()
1 parent 88370c6 commit 4548c22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/differentiate.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ symbolic_derivative_1arg_list = [
161161
( :asech, :( -1 / x / sqrt(1 - x^2) ))
162162
( :acsch, :( -1 / abs(x) / sqrt(1 + x^2) ))
163163
( :acoth, :( 1 / (1 - x^2) ))
164-
( :erf, :( 2 * exp(-square(x)) / sqrt(pi) ))
165-
( :erfc, :( -2 * exp(-square(x)) / sqrt(pi) ))
166-
( :erfi, :( 2 * exp(square(x)) / sqrt(pi) ))
164+
( :erf, :( 2 * exp(-x*x) / sqrt(pi) ))
165+
( :erfc, :( -2 * exp(-x*x) / sqrt(pi) ))
166+
( :erfi, :( 2 * exp(x*x) / sqrt(pi) ))
167167
( :gamma, :( digamma(x) * gamma(x) ))
168168
( :lgamma, :( digamma(x) ))
169169
( :digamma, :( polygamma(1, x) ))

0 commit comments

Comments
 (0)