Skip to content

Commit

Permalink
Update version check for sincospi to 1.6.0-DEV.292
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Noack <andreas@noack.dk>
  • Loading branch information
mchitre and andreasnoack authored Jan 18, 2021
1 parent 813eaa3 commit ff96532
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dual.jl
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ end
# sincospi #
#----------#

if VERSION >= v"1.6-"
if VERSION >= v"1.6.0-DEV.292"
@inline function Base.sincospi(d::Dual{T}) where T
sd, cd = sincospi(value(d))
return (Dual{T}(sd, cd * π * partials(d)), Dual{T}(cd, -sd * π * partials(d)))
Expand Down
2 changes: 1 addition & 1 deletion test/DualTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ for N in (0,3), M in (0,4), V in (Int, Float32)

@test all(map(dual_isapprox, ForwardDiff.sincos(FDNUM), (sin(FDNUM), cos(FDNUM))))

if VERSION >= v"1.6-"
if VERSION >= v"1.6.0-DEV.292"
@test all(map(dual_isapprox, sincospi(FDNUM), (sinpi(FDNUM), cospi(FDNUM))))
end

Expand Down

0 comments on commit ff96532

Please sign in to comment.