|
165 | 165 | @noinline sincos_domain_error(x) = throw(DomainError(x, "sincos(x) is only defined for finite x.")) |
166 | 166 |
|
167 | 167 | """ |
168 | | - sincos(x::T) where T -> float(T) |
| 168 | + sincos(x::T) where T -> Tuple{float(T),float(T)} |
169 | 169 |
|
170 | 170 | Simultaneously compute the sine and cosine of `x`, where `x` is in radians, returning |
171 | 171 | a tuple `(sine, cosine)`. |
@@ -850,7 +850,7 @@ function cospi(x::T) where T<:IEEEFloat |
850 | 850 | end |
851 | 851 | end |
852 | 852 | """ |
853 | | - sincospi(x::T) where T -> float(T) |
| 853 | + sincospi(x::T) where T -> Tuple{float(T),float(T)} |
854 | 854 |
|
855 | 855 | Simultaneously compute [`sinpi(x)`](@ref) and [`cospi(x)`](@ref) (the sine and cosine of `π*x`, |
856 | 856 | where `x` is in radians), returning a tuple `(sine, cosine)`. |
@@ -1266,9 +1266,10 @@ end |
1266 | 1266 | tand(x::Real) = sind(x) / cosd(x) |
1267 | 1267 |
|
1268 | 1268 | """ |
1269 | | - sincosd(x::T) where T -> float(T) |
| 1269 | + sincosd(x::T) where T -> Tuple{float(T),float(T)} |
1270 | 1270 |
|
1271 | | -Simultaneously compute the sine and cosine of `x`, where `x` is in degrees. |
| 1271 | +Simultaneously compute the sine and cosine of `x`, where `x` is in degrees, returning |
| 1272 | +a tuple `(sine, cosine)`. |
1272 | 1273 |
|
1273 | 1274 | Throw a [`DomainError`](@ref) if `isinf(x)`, return a `(T(NaN), T(NaN))` tuple if `isnan(x)`. |
1274 | 1275 |
|
|
0 commit comments