Skip to content

Commit 198fd80

Browse files
authored
Replace single element vector constants with float constants (#516)
1 parent f534b8c commit 198fd80

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/gamma_inc.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ const d2 = [-.268132716049383E-02, .771604938271605E-03]
2222
const d30 = .649434156378601E-03
2323
const d3 =[.229472093621399E-03, -.469189494395256E-03]
2424
const d40 = -.861888290916712E-03
25-
const d4 = [.784039221720067E-03]
25+
const d4 = .784039221720067E-03
2626
const d50 = -.336798553366358E-03
27-
const d5 = [-.697281375836586E-04]
27+
const d5 = -.697281375836586E-04
2828
const d60 = .531307936463992E-03
29-
const d6 = [-.592166437353694E-03]
29+
const d6 = -.592166437353694E-03
3030
const d70 = .344367606892378E-03
3131
const d80 = -.652623918595309E-03
3232

@@ -573,9 +573,9 @@ function gamma_inc_minimax(a::Float64, x::Float64, z::Float64)
573573
c1 = @horner(z, d10, d1[1], d1[2], d1[3])
574574
c2 = @horner(z, d20, d2[1], d2[2])
575575
c3 = @horner(z, d30, d3[1], d3[2])
576-
c4 = @horner(z, d40, d4[1])
577-
c5 = @horner(z, d50, d5[1])
578-
c6 = @horner(z, d60, d6[1])
576+
c4 = @horner(z, d40, d4)
577+
c5 = @horner(z, d50, d5)
578+
c6 = @horner(z, d60, d6)
579579

580580
t = @horner(z, c0, c1, c2, c3, c4, c5, c6, d70, d80)
581581
if l < 1.0
@@ -672,9 +672,9 @@ function gamma_inc_temme_1(a::Float64, x::Float64, z::Float64, ind::Integer)
672672
c1 = @horner(z, d10, d1[1], d1[2], d1[3])
673673
c2 = @horner(z, d20, d2[1], d2[2])
674674
c3 = @horner(z, d30, d3[1], d3[2])
675-
c4 = @horner(z, d40, d4[1])
676-
c5 = @horner(z, d50, d5[1])
677-
c6 = @horner(z, d60, d6[1])
675+
c4 = @horner(z, d40, d4)
676+
c5 = @horner(z, d50, d5)
677+
c6 = @horner(z, d60, d6)
678678

679679
t = @horner(u, c0, c1, c2, c3, c4, c5, c6, d70, d80)
680680

0 commit comments

Comments
 (0)