Skip to content

Commit

Permalink
degree trig functions on square matrices
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed May 24, 2018
1 parent 14dbdf5 commit 02ae7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/special/trig.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ for (fd, f, fn) in ((:sind, :sin, "sine"), (:cosd, :cos, "cosine"), (:tand, :tan
@eval begin
@doc """
$($name)(x)
Compute $($fn) of `x`, where `x` is in degrees. """ ($fd)(z) = ($f)(deg2rad(z))
Compute $($fn) of `x`, where `x` is in degrees. """ ($fd)(z) = ($f)(deg2rad.(z))
end
end

Expand All @@ -1089,6 +1089,6 @@ for (fd, f, fn) in ((:asind, :asin, "sine"), (:acosd, :acos, "cosine"), (:atand,
@doc """
$($name)(x)
Compute the inverse $($fn) of `x`, where the output is in degrees. """ ($fd)(y) = rad2deg(($f)(y))
Compute the inverse $($fn) of `x`, where the output is in degrees. """ ($fd)(y) = rad2deg.(($f)(y))
end
end

0 comments on commit 02ae7b2

Please sign in to comment.