Skip to content

Commit 0e5cf35

Browse files
Merge pull request #239 from araujoms/compat
additional cleanup from dropping old versions
2 parents 65a1391 + b82ab99 commit 0e5cf35

File tree

4 files changed

+15
-34
lines changed

4 files changed

+15
-34
lines changed

Project.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ version = "1.5.6"
99
[deps]
1010
GenericLinearAlgebra = "14197337-ba66-59df-a3e3-ca00e7dcff7a"
1111
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
12+
Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
1213
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1314
Quadmath = "be4d8f0f-7fa4-5f49-b795-2f01399ab2dd"
1415
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1516
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
1617
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1718

1819
[compat]
19-
GenericLinearAlgebra = "0.2.5, 0.3, 0.4, 0.5, 0.6"
20-
Quadmath = "0.5.10, 0.6, 0.7, 0.8"
20+
GenericLinearAlgebra = "0.2.5 - 0.3"
21+
Polynomials = "1 - 4"
22+
Quadmath = "0.5.10"
2123
Requires = "1"
22-
SpecialFunctions = "1.0, 1.1, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5"
24+
SpecialFunctions = "1 - 2"
2325
julia = "1.6"
2426

2527
[extras]

src/DoubleFloats.jl

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,9 @@ include("extras/random.jl")
130130
include("extras/misc.jl")
131131
include("extras/macros.jl")
132132

133-
if VERSION >= v"1.1.0"
134-
using SpecialFunctions
135-
include("math/special/specialfunctions.jl")
136-
else
137-
function __init__()
138-
@require SpecialFunctions="276daf66-3868-5448-9aa4-cd146d93841b" begin
139-
include("math/special/specialfunctions.jl")
140-
end
141-
end
142-
end
133+
import SpecialFunctions: erf, erfc, gamma, logabsgamma,
134+
besselj0, besselj1, besselj, bessely0, bessely1, bessely,
135+
ellipk
136+
include("math/special/specialfunctions.jl")
143137

144138
end # module DoubleFloats

src/math/special/specialfunctions.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
import .SpecialFunctions
2-
import .SpecialFunctions: erf, erfc, gamma, logabsgamma,
3-
besselj0, besselj1, besselj, bessely0, bessely1, bessely,
4-
ellipk
5-
61
include("agm.jl")
72
include("bessel.jl")
83
include("elliptic.jl")

src/type/constructors.jl

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,13 @@ Double32(x::Int128) = Double32(BigInt(x))
2727
Double16(x::Int128) = Double16(BigInt(x))
2828

2929
# constants for BigFloat precision are > 2*significandbits(DoubleT)
30-
if VERSION >= v"1.1.0"
31-
Double64(x::Irrational{S}) where {S} = Double64(BigFloat(x; precision=250))
32-
Double32(x::Irrational{S}) where {S} = Double32(BigFloat(x; precision=122))
33-
Double16(x::Irrational{S}) where {S} = Double16(BigFloat(x; precision=60))
30+
Double64(x::Irrational{S}) where {S} = Double64(BigFloat(x; precision=250))
31+
Double32(x::Irrational{S}) where {S} = Double32(BigFloat(x; precision=122))
32+
Double16(x::Irrational{S}) where {S} = Double16(BigFloat(x; precision=60))
3433

35-
Double64(x::Rational{S}) where {S} = Double64(BigFloat(x; precision=250))
36-
Double32(x::Rational{S}) where {S} = Double32(BigFloat(x; precision=122))
37-
Double16(x::Rational{S}) where {S} = Double16(BigFloat(x; precision=60))
38-
else
39-
Double64(x::Irrational{S}) where {S} = Double64(BigFloat(x, 250))
40-
Double32(x::Irrational{S}) where {S} = Double32(BigFloat(x, 122))
41-
Double16(x::Irrational{S}) where {S} = Double16(BigFloat(x, 60))
42-
43-
Double64(x::Rational{S}) where {S} = Double64(BigFloat(x, 250))
44-
Double32(x::Rational{S}) where {S} = Double32(BigFloat(x, 122))
45-
Double16(x::Rational{S}) where {S} = Double16(BigFloat(x, 60))
46-
end
34+
Double64(x::Rational{S}) where {S} = Double64(BigFloat(x; precision=250))
35+
Double32(x::Rational{S}) where {S} = Double32(BigFloat(x; precision=122))
36+
Double16(x::Rational{S}) where {S} = Double16(BigFloat(x; precision=60))
4737

4838
Complex{Double64}(x::T) where {T<:AbstractIrrational} = Complex(Double64(x))
4939
Complex{Double32}(x::T) where {T<:AbstractIrrational} = Complex(Double32(x))

0 commit comments

Comments
 (0)