sincos
Base.Math.sincos
— Functionsincos(x)
Simultaneously compute the sine and cosine of x
, where x
is in radians, returning a tuple (sine, cosine)
.
sincos(A::AbstractMatrix)
Compute the matrix sine and cosine of a square matrix A
.
Examples
julia> S, C = sincos(fill(1.0, (2,2)));
julia> S
2×2 Matrix{Float64}:
0.454649 0.454649
0.454649 0.454649
julia> C
2×2 Matrix{Float64}:
0.291927 -0.708073
-0.708073 0.291927