Skip to content

Commit

Permalink
add missing vectorized versions of radians2degrees and degrees2radians
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Nov 10, 2013
1 parent 287ace1 commit 3933141
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ radians2degrees(z::Real) = oftype(z, 57.29577951308232*z)
degrees2radians(z::Real) = oftype(z, 0.017453292519943295*z)
radians2degrees(z::Integer) = radians2degrees(float(z))
degrees2radians(z::Integer) = degrees2radians(float(z))
@vectorize_1arg Real radians2degrees
@vectorize_1arg Real degrees2radians

for (finv, f) in ((:sec, :cos), (:csc, :sin), (:cot, :tan),
(:sech, :cosh), (:csch, :sinh), (:coth, :tanh),
Expand Down

0 comments on commit 3933141

Please sign in to comment.