Skip to content

Commit 0214ef6

Browse files
degree trig functions on square matrices
[ci skip]
1 parent 14dbdf5 commit 0214ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/special/trig.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ for (fd, f, fn) in ((:sind, :sin, "sine"), (:cosd, :cos, "cosine"), (:tand, :tan
10781078
@eval begin
10791079
@doc """
10801080
$($name)(x)
1081-
Compute $($fn) of `x`, where `x` is in degrees. """ ($fd)(z) = ($f)(deg2rad(z))
1081+
Compute $($fn) of `x`, where `x` is in degrees. """ ($fd)(z) = ($f)(deg2rad.(z))
10821082
end
10831083
end
10841084

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

0 commit comments

Comments
 (0)