File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -1254,17 +1254,9 @@ Simultaneously compute the sine and cosine of `x`, where `x` is in degrees.
1254
1254
!!! compat "Julia 1.3"
1255
1255
This function requires at least Julia 1.3.
1256
1256
"""
1257
- function sincosd (x:: Real )
1258
- if isinf (x)
1259
- return throw (DomainError (x, " sincosd(x) is only defined for finite `x`." ))
1260
- elseif isnan (x)
1261
- return (oftype (x,NaN ), oftype (x,NaN ))
1262
- end
1263
-
1264
- # It turns out that calling those functions separately yielded better
1265
- # performance than considering each case and calling `sincos_kernel`.
1266
- return (sind (x), cosd (x))
1267
- end
1257
+ sincosd (x) = (sind (x), cosd (x))
1258
+ # It turns out that calling these functions separately yields better
1259
+ # performance than considering each case and calling `sincos_kernel`.
1268
1260
1269
1261
sincosd (:: Missing ) = (missing , missing )
1270
1262
You can’t perform that action at this time.
0 commit comments