@@ -110,19 +110,12 @@ const AbsoluteScaleTemperature = Quantity{T, 𝚯, <:ScalarUnits} where T
110110\n Dimension: [`Unitful.NoDims`](@ref)."
111111((@unit ° " °" Degree pi / 180 false ), const deg = °)
112112# For numerical accuracy, specific to the degree
113- import Base: sind, cosd, tand, secd, cscd, cotd
114- for (_x,_y) in ((:sin ,:sind ), (:cos ,:cosd ), (:tan ,:tand ),
113+ import Base: sind, cosd, sincosd, tand, secd, cscd, cotd
114+ for (_x,_y) in ((:sin ,:sind ), (:cos ,:cosd ), (:sincos , :sincosd ), ( : tan ,:tand ),
115115 (:sec ,:secd ), (:csc ,:cscd ), (:cot ,:cotd ))
116116 @eval ($ _x)(x:: Quantity{T, NoDims, typeof(°)} ) where {T} = ($ _y)(ustrip (x))
117117 @eval ($ _y)(x:: Quantity{T, NoDims, typeof(°)} ) where {T} = ($ _y)(ustrip (x))
118118end
119- if isdefined (Base, :sincosd )
120- import Base: sincosd
121- sincos (x:: Quantity{T, NoDims, typeof(°)} ) where {T} = sincosd (ustrip (x))
122- sincosd (x:: Quantity{T, NoDims, typeof(°)} ) where {T} = sincosd (ustrip (x))
123- else
124- sincos (x:: Quantity{T, NoDims, typeof(°)} ) where {T} = (u = ustrip (x); (sind (u), cosd (u)))
125- end
126119for f in (:cos , :sin , :tan , :sincos , :cis )
127120 f_fast = fast_op[f]
128121 # Use deg2rad because uncnvert only has Float64 precision
0 commit comments