Skip to content

Commit dce2480

Browse files
Merge pull request #208 from dgleich/tanpi-from-base
Add import from base for new tanpi on Julia 1.10+
2 parents fd2ec2d + 91896af commit dce2480

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/DoubleFloats.jl

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export DoubleFloat,
2828
spread, sld, tld,
2929
signs,
3030
randpm,
31-
tanpi,
3231
agm, agm1, ellipk,
3332
besselj0, besselj1, besselj, bessely0, bessely1, bessely,
3433
gamma, loggamma, lgamma, erf, erfc,
@@ -75,6 +74,12 @@ import Base.Math: modf, fma, muladd,
7574
asinh, acosh, atanh, acsch, asech, acoth,
7675
sinpi, cospi, sincos, sincospi, cis, cispi
7776

77+
@static if VERSION >= v"1.10.0"
78+
import Base.Math: tanpi
79+
else
80+
export tanpi
81+
end
82+
7883
import Quadmath: Float128
7984

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

0 commit comments

Comments
 (0)