Skip to content

Commit db52bb4

Browse files
committed
Rename to SpecialFunctions
1 parent 9696b6a commit db52bb4

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
@@ -239,7 +239,7 @@ const (∛)=cbrt
239239

240240
# special math functions
241241
include("special/special.jl")
242-
importall .SpecFun
242+
importall .SpecialFunctions
243243

244244
# reduction along dims
245245
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
@@ -153,13 +153,6 @@ Base.flipsign
153153
Base.sqrt
154154
Base.isqrt
155155
Base.Math.cbrt
156-
Base.SpecFun.erf
157-
Base.SpecFun.erfc
158-
Base.SpecFun.erfcx
159-
Base.SpecFun.erfi
160-
Base.SpecFun.dawson
161-
Base.SpecFun.erfinv
162-
Base.SpecFun.erfcinv
163156
Base.real(::Complex)
164157
Base.imag
165158
Base.reim
@@ -179,44 +172,51 @@ Base.prevpow
179172
Base.nextprod
180173
Base.invmod
181174
Base.powermod
182-
Base.SpecFun.gamma
183-
Base.SpecFun.lgamma
184-
Base.SpecFun.lfact
185-
Base.SpecFun.digamma
186-
Base.SpecFun.invdigamma
187-
Base.SpecFun.trigamma
188-
Base.SpecFun.polygamma
189-
Base.SpecFun.airyai
190-
Base.SpecFun.airyaiprime
191-
Base.SpecFun.airyaix
192-
Base.SpecFun.airyaiprimex
193-
Base.SpecFun.airybi
194-
Base.SpecFun.airybiprime
195-
Base.SpecFun.airybix
196-
Base.SpecFun.airybiprimex
197-
Base.SpecFun.besselj0
198-
Base.SpecFun.besselj1
199-
Base.SpecFun.besselj
200-
Base.SpecFun.besseljx
201-
Base.SpecFun.bessely0
202-
Base.SpecFun.bessely1
203-
Base.SpecFun.bessely
204-
Base.SpecFun.besselyx
205-
Base.SpecFun.hankelh1
206-
Base.SpecFun.hankelh1x
207-
Base.SpecFun.hankelh2
208-
Base.SpecFun.hankelh2x
209-
Base.SpecFun.besselh
210-
Base.SpecFun.besselhx
211-
Base.SpecFun.besseli
212-
Base.SpecFun.besselix
213-
Base.SpecFun.besselk
214-
Base.SpecFun.besselkx
215-
Base.SpecFun.beta
216-
Base.SpecFun.lbeta
217-
Base.SpecFun.eta
218-
Base.SpecFun.zeta(::Complex)
219-
Base.SpecFun.zeta(::Any, ::Any)
175+
Base.SpecialFunctions.erf
176+
Base.SpecialFunctions.erfc
177+
Base.SpecialFunctions.erfcx
178+
Base.SpecialFunctions.erfi
179+
Base.SpecialFunctions.dawson
180+
Base.SpecialFunctions.erfinv
181+
Base.SpecialFunctions.erfcinv
182+
Base.SpecialFunctions.gamma
183+
Base.SpecialFunctions.lgamma
184+
Base.SpecialFunctions.lfact
185+
Base.SpecialFunctions.digamma
186+
Base.SpecialFunctions.invdigamma
187+
Base.SpecialFunctions.trigamma
188+
Base.SpecialFunctions.polygamma
189+
Base.SpecialFunctions.airyai
190+
Base.SpecialFunctions.airyaiprime
191+
Base.SpecialFunctions.airyaix
192+
Base.SpecialFunctions.airyaiprimex
193+
Base.SpecialFunctions.airybi
194+
Base.SpecialFunctions.airybiprime
195+
Base.SpecialFunctions.airybix
196+
Base.SpecialFunctions.airybiprimex
197+
Base.SpecialFunctions.besselj0
198+
Base.SpecialFunctions.besselj1
199+
Base.SpecialFunctions.besselj
200+
Base.SpecialFunctions.besseljx
201+
Base.SpecialFunctions.bessely0
202+
Base.SpecialFunctions.bessely1
203+
Base.SpecialFunctions.bessely
204+
Base.SpecialFunctions.besselyx
205+
Base.SpecialFunctions.hankelh1
206+
Base.SpecialFunctions.hankelh1x
207+
Base.SpecialFunctions.hankelh2
208+
Base.SpecialFunctions.hankelh2x
209+
Base.SpecialFunctions.besselh
210+
Base.SpecialFunctions.besselhx
211+
Base.SpecialFunctions.besseli
212+
Base.SpecialFunctions.besselix
213+
Base.SpecialFunctions.besselk
214+
Base.SpecialFunctions.besselkx
215+
Base.SpecialFunctions.beta
216+
Base.SpecialFunctions.lbeta
217+
Base.SpecialFunctions.eta
218+
Base.SpecialFunctions.zeta(::Complex)
219+
Base.SpecialFunctions.zeta(::Any, ::Any)
220220
Base.ndigits
221221
Base.widemul
222222
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)