We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d53507 + df369b2 commit dba2aadCopy full SHA for dba2aad
test/hypergeom.jl
@@ -20,6 +20,8 @@ using SpecialFunctions
20
@test log(1+complex(x)) ≈ x*hypergeom([1.0, 1.0], 2.0, -x)
21
@test (1-x)^-a ≈ hypergeom([a, 1.0], 1.0, x)
22
@test asin(x) ≈ x*hypergeom([0.5, 0.5], 1.5, x^2)
23
+ @test (exp(x)-1)/x ≈ hypergeom(1.0, 2.0, x)
24
+ @test (1+x)*exp(x) ≈ hypergeom(2.0, 1.0, x)
25
26
#gsl function is unstable for b=2
27
#@test x*sf_hyperg_U(1.0, 2.0, x) ≈ 1.0
@@ -35,6 +37,9 @@ using SpecialFunctions
35
37
res = hypergeom_e([a, b], 1+a-b, -1.0)
36
38
@test isapprox(res.val, (gamma(1+a-b)*gamma(1+a/2)/(gamma(1+a)*gamma(1+a/2-b))), atol=res.err)
39
40
+ #Kummer's transformation
41
+ @test hypergeom(a,b,x) ≈ exp(x)*hypergeom(b-a,b,-x)
42
+
43
#NaN handling
44
for (h, condition) in ((hypergeom, isnan), (hypergeom_e, r->isnan(r.val)))
45
@test all(condition,
0 commit comments