diff options
Diffstat (limited to 'libgo/go/math/j0.go')
-rw-r--r-- | libgo/go/math/j0.go | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/libgo/go/math/j0.go b/libgo/go/math/j0.go index cbef7aa..fe26791 100644 --- a/libgo/go/math/j0.go +++ b/libgo/go/math/j0.go @@ -305,20 +305,20 @@ var p0S2 = [5]float64{ } func pzero(x float64) float64 { - var p [6]float64 - var q [5]float64 + var p *[6]float64 + var q *[5]float64 if x >= 8 { - p = p0R8 - q = p0S8 + p = &p0R8 + q = &p0S8 } else if x >= 4.5454 { - p = p0R5 - q = p0S5 + p = &p0R5 + q = &p0S5 } else if x >= 2.8571 { - p = p0R3 - q = p0S3 + p = &p0R3 + q = &p0S3 } else if x >= 2 { - p = p0R2 - q = p0S2 + p = &p0R2 + q = &p0S2 } z := 1 / (x * x) r := p[0] + z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))) @@ -408,19 +408,19 @@ var q0S2 = [6]float64{ } func qzero(x float64) float64 { - var p, q [6]float64 + var p, q *[6]float64 if x >= 8 { - p = q0R8 - q = q0S8 + p = &q0R8 + q = &q0S8 } else if x >= 4.5454 { - p = q0R5 - q = q0S5 + p = &q0R5 + q = &q0S5 } else if x >= 2.8571 { - p = q0R3 - q = q0S3 + p = &q0R3 + q = &q0S3 } else if x >= 2 { - p = q0R2 - q = q0S2 + p = &q0R2 + q = &q0S2 } z := 1 / (x * x) r := p[0] + z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))) |