Skip to content

Commit

Permalink
Merge pull request #208 from dgleich/tanpi-from-base
Browse files Browse the repository at this point in the history
Add import from base for new tanpi on Julia 1.10+
  • Loading branch information
JeffreySarnoff authored Nov 3, 2024
2 parents fd2ec2d + 91896af commit dce2480
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 dce2480

Please sign in to comment.