Skip to content

Commit

Permalink
Add import from base for new tanpi on Julia 1.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
dgleich committed Oct 31, 2024
1 parent fd2ec2d commit 91896af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DoubleFloats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export DoubleFloat,
spread, sld, tld,
signs,
randpm,
tanpi,
agm, agm1, ellipk,
besselj0, besselj1, besselj, bessely0, bessely1, bessely,
gamma, loggamma, lgamma, erf, erfc,
Expand Down Expand Up @@ -75,6 +74,12 @@ import Base.Math: modf, fma, muladd,
asinh, acosh, atanh, acsch, asech, acoth,
sinpi, cospi, sincos, sincospi, cis, cispi

@static if VERSION >= v"1.10.0"
import Base.Math: tanpi
else
export tanpi
end

import Quadmath: Float128

include("Double.jl") # Double64, Double32, Double16
Expand Down

0 comments on commit 91896af

Please sign in to comment.