Skip to content

Commit 50d00e5

Browse files
committed
Rename to SpecialFunctions
1 parent 2836965 commit 50d00e5

File tree

5 files changed

+62
-62
lines changed

5 files changed

+62
-62
lines changed

base/mpfr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import Base.Rounding: rounding_raw, setrounding_raw
2424

2525
import Base.GMP: ClongMax, CulongMax, CdoubleMax, Limb
2626

27-
import Base.SpecFun.lgamma_r
27+
import Base.SpecialFunctions.lgamma_r
2828

2929
function __init__()
3030
try

base/special/special.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is a part of Julia. License is MIT: http://julialang.org/license
22

3-
module SpecFun
3+
module SpecialFunctions
44

55
export erf, erfc, erfcx, erfi, dawson,
66
lgamma, gamma, lfact,

base/sysimg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ const (∛)=cbrt
244244

245245
# special math functions
246246
include("special/special.jl")
247-
importall .SpecFun
247+
importall .SpecialFunctions
248248

249249
# reduction along dims
250250
include("reducedim.jl") # macros in this file relies on string.jl

doc/src/stdlib/math.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,6 @@ Base.flipsign
151151
Base.sqrt
152152
Base.isqrt
153153
Base.Math.cbrt
154-
Base.SpecFun.erf
155-
Base.SpecFun.erfc
156-
Base.SpecFun.erfcx
157-
Base.SpecFun.erfi
158-
Base.SpecFun.dawson
159-
Base.SpecFun.erfinv
160-
Base.SpecFun.erfcinv
161154
Base.real(::Complex)
162155
Base.imag
163156
Base.reim
@@ -177,44 +170,51 @@ Base.prevpow
177170
Base.nextprod
178171
Base.invmod
179172
Base.powermod
180-
Base.SpecFun.gamma
181-
Base.SpecFun.lgamma
182-
Base.SpecFun.lfact
183-
Base.SpecFun.digamma
184-
Base.SpecFun.invdigamma
185-
Base.SpecFun.trigamma
186-
Base.SpecFun.polygamma
187-
Base.SpecFun.airyai
188-
Base.SpecFun.airyaiprime
189-
Base.SpecFun.airyaix
190-
Base.SpecFun.airyaiprimex
191-
Base.SpecFun.airybi
192-
Base.SpecFun.airybiprime
193-
Base.SpecFun.airybix
194-
Base.SpecFun.airybiprimex
195-
Base.SpecFun.besselj0
196-
Base.SpecFun.besselj1
197-
Base.SpecFun.besselj
198-
Base.SpecFun.besseljx
199-
Base.SpecFun.bessely0
200-
Base.SpecFun.bessely1
201-
Base.SpecFun.bessely
202-
Base.SpecFun.besselyx
203-
Base.SpecFun.hankelh1
204-
Base.SpecFun.hankelh1x
205-
Base.SpecFun.hankelh2
206-
Base.SpecFun.hankelh2x
207-
Base.SpecFun.besselh
208-
Base.SpecFun.besselhx
209-
Base.SpecFun.besseli
210-
Base.SpecFun.besselix
211-
Base.SpecFun.besselk
212-
Base.SpecFun.besselkx
213-
Base.SpecFun.beta
214-
Base.SpecFun.lbeta
215-
Base.SpecFun.eta
216-
Base.SpecFun.zeta(::Complex)
217-
Base.SpecFun.zeta(::Any, ::Any)
173+
Base.SpecialFunctions.erf
174+
Base.SpecialFunctions.erfc
175+
Base.SpecialFunctions.erfcx
176+
Base.SpecialFunctions.erfi
177+
Base.SpecialFunctions.dawson
178+
Base.SpecialFunctions.erfinv
179+
Base.SpecialFunctions.erfcinv
180+
Base.SpecialFunctions.gamma
181+
Base.SpecialFunctions.lgamma
182+
Base.SpecialFunctions.lfact
183+
Base.SpecialFunctions.digamma
184+
Base.SpecialFunctions.invdigamma
185+
Base.SpecialFunctions.trigamma
186+
Base.SpecialFunctions.polygamma
187+
Base.SpecialFunctions.airyai
188+
Base.SpecialFunctions.airyaiprime
189+
Base.SpecialFunctions.airyaix
190+
Base.SpecialFunctions.airyaiprimex
191+
Base.SpecialFunctions.airybi
192+
Base.SpecialFunctions.airybiprime
193+
Base.SpecialFunctions.airybix
194+
Base.SpecialFunctions.airybiprimex
195+
Base.SpecialFunctions.besselj0
196+
Base.SpecialFunctions.besselj1
197+
Base.SpecialFunctions.besselj
198+
Base.SpecialFunctions.besseljx
199+
Base.SpecialFunctions.bessely0
200+
Base.SpecialFunctions.bessely1
201+
Base.SpecialFunctions.bessely
202+
Base.SpecialFunctions.besselyx
203+
Base.SpecialFunctions.hankelh1
204+
Base.SpecialFunctions.hankelh1x
205+
Base.SpecialFunctions.hankelh2
206+
Base.SpecialFunctions.hankelh2x
207+
Base.SpecialFunctions.besselh
208+
Base.SpecialFunctions.besselhx
209+
Base.SpecialFunctions.besseli
210+
Base.SpecialFunctions.besselix
211+
Base.SpecialFunctions.besselk
212+
Base.SpecialFunctions.besselkx
213+
Base.SpecialFunctions.beta
214+
Base.SpecialFunctions.lbeta
215+
Base.SpecialFunctions.eta
216+
Base.SpecialFunctions.zeta(::Complex)
217+
Base.SpecialFunctions.zeta(::Any, ::Any)
218218
Base.ndigits
219219
Base.widemul
220220
Base.Math.@evalpoly

test/math.jl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ end
426426
end
427427

428428
@testset "airy" begin
429-
@test_throws Base.SpecFun.AmosException airyai(200im)
430-
@test_throws Base.SpecFun.AmosException airybi(200)
429+
@test_throws Base.SpecialFunctions.AmosException airyai(200im)
430+
@test_throws Base.SpecialFunctions.AmosException airybi(200)
431431

432432
for T in [Float32, Float64, Complex64,Complex128]
433433
@test airyai(T(1.8)) 0.0470362168668458052247
@@ -484,7 +484,7 @@ end
484484
@test besselh(3,2,3) conj(true_h133)
485485
@test besselh(-3,2,3) -conj(true_h133)
486486
@testset "Error throwing" begin
487-
@test_throws Base.SpecFun.AmosException besselh(1,0)
487+
@test_throws Base.SpecialFunctions.AmosException besselh(1,0)
488488
@test_throws MethodError besselh(1,big(1.0))
489489
@test_throws MethodError besselh(1,complex(big(1.0)))
490490
@test_throws MethodError besselhx(1,big(1.0))
@@ -499,7 +499,7 @@ end
499499
@test besseli(-3,-3) -true_i33
500500
@test besseli(Float32(-3),Complex64(-3,0)) -true_i33
501501
@testset "Error throwing" begin
502-
@test_throws Base.SpecFun.AmosException besseli(1,1000)
502+
@test_throws Base.SpecialFunctions.AmosException besseli(1,1000)
503503
@test_throws DomainError besseli(0.4,-1.0)
504504
@test_throws MethodError besseli(1,big(1.0))
505505
@test_throws MethodError besseli(1,complex(big(1.0)))
@@ -544,7 +544,7 @@ end
544544
@test besselj(1.0,3im) besselj(1,3im)
545545
@testset "Error throwing" begin
546546
@test_throws DomainError besselj(0.1, -0.4)
547-
@test_throws Base.SpecFun.AmosException besselj(20,1000im)
547+
@test_throws Base.SpecialFunctions.AmosException besselj(20,1000im)
548548
@test_throws MethodError besselj(big(1.0),3im)
549549
end
550550
end
@@ -559,7 +559,7 @@ end
559559
# issue #6564
560560
@test besselk(1.0,0.0) == Inf
561561
@testset "Error throwing" begin
562-
@test_throws Base.SpecFun.AmosException besselk(200,0.01)
562+
@test_throws Base.SpecialFunctions.AmosException besselk(200,0.01)
563563
@test_throws DomainError besselk(3,-3)
564564
@test_throws MethodError besselk(1,big(1.0))
565565
@test_throws MethodError besselk(1,complex(big(1.0)))
@@ -577,7 +577,7 @@ end
577577
@test y33 -0.53854161610503161800
578578
@test bessely(3,complex(-3)) 0.53854161610503161800 - 0.61812544451050328724im
579579
@testset "Error throwing" begin
580-
@test_throws Base.SpecFun.AmosException bessely(200.5,0.1)
580+
@test_throws Base.SpecialFunctions.AmosException bessely(200.5,0.1)
581581
@test_throws DomainError bessely(3,-3)
582582
@test_throws DomainError bessely(0.4,-1.0)
583583
@test_throws DomainError bessely(0.4,Float32(-1.0))
@@ -617,11 +617,11 @@ end
617617
end
618618
@test besselkx(1, 0) == Inf
619619
@testset "Error throwing" begin
620-
@test_throws Base.SpecFun.AmosException hankelh1x(1, 0)
621-
@test_throws Base.SpecFun.AmosException hankelh2x(1, 0)
622-
@test_throws Base.SpecFun.AmosException besselix(-1, 0)
623-
@test_throws Base.SpecFun.AmosException besseljx(-1, 0)
624-
@test_throws Base.SpecFun.AmosException besselyx(1, 0)
620+
@test_throws Base.SpecialFunctions.AmosException hankelh1x(1, 0)
621+
@test_throws Base.SpecialFunctions.AmosException hankelh2x(1, 0)
622+
@test_throws Base.SpecialFunctions.AmosException besselix(-1, 0)
623+
@test_throws Base.SpecialFunctions.AmosException besseljx(-1, 0)
624+
@test_throws Base.SpecialFunctions.AmosException besselyx(1, 0)
625625
@test_throws DomainError besselix(0.4,-1.0)
626626
@test_throws DomainError besseljx(0.4, -1.0)
627627
@test_throws DomainError besselkx(0.4,-1.0)
@@ -996,8 +996,8 @@ end
996996
end
997997
end
998998

999-
@test Base.SpecFun.f32(complex(1.0,1.0)) == complex(Float32(1.),Float32(1.))
1000-
@test Base.SpecFun.f16(complex(1.0,1.0)) == complex(Float16(1.),Float16(1.))
999+
@test Base.SpecialFunctions.f32(complex(1.0,1.0)) == complex(Float32(1.),Float32(1.))
1000+
@test Base.SpecialFunctions.f16(complex(1.0,1.0)) == complex(Float16(1.),Float16(1.))
10011001

10021002
# no domain error is thrown for negative values
10031003
@test invoke(cbrt, Tuple{AbstractFloat}, -1.0) == -1.0

0 commit comments

Comments
 (0)