Skip to content

Commit ae95d7f

Browse files
authored
Merge pull request #96 from johnmyleswhite/ml/nooftype
remove oftype from derivative definitions
2 parents ca1924c + bba25c4 commit ae95d7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/differentiate.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ symbolic_derivative_1arg_list = [
160160
( :asech, :( -1 / x / sqrt(1 - x^2) ))
161161
( :acsch, :( -1 / abs(x) / sqrt(1 + x^2) ))
162162
( :acoth, :( 1 / (1 - x^2) ))
163-
( :deg2rad, :( oftype(x, pi) / 180 ))
164-
( :rad2deg, :( 180 / oftype(x, pi) ))
163+
( :deg2rad, :( pi / 180 ))
164+
( :rad2deg, :( 180 / pi ))
165165
( :erf, :( 2 * exp(-x*x) / sqrt(pi) ))
166166
( :erfinv, :( 0.5 * sqrt(pi) * exp(erfinv(x) * erfinv(x)) ))
167167
( :erfc, :( -2 * exp(-x*x) / sqrt(pi) ))

0 commit comments

Comments
 (0)