Moving c_misc files into special package
MODIFY
gamma_inc.go
gamma_inc.go
package mathext
import (
- "github.com/gonum/mathext/internal"
"github.com/gonum/mathext/internal/cephes"
+ "github.com/gonum/mathext/internal/special"
)
// GammaInc computes the incomplete Gamma integral.
@@ -37,7 +37,7 @@ func GammaIncComp(a, x float64) float64 {
// inclusive or GammaIncInv will panic. GammaIncInv should return a positive
// number, but can return NaN if there is a failure to converge.
func GammaIncInv(a, y float64) float64 {
- return internal.GammaIncInv(a, y)
+ return special.GammaIncInv(a, y)
}
// GammaIncCompInv computes the inverse of the complemented incomplete Gamma

RENAME
internal/fsolve.go
internal/special/fsolve.go
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package internal
+package special
import "math"

RENAME
internal/gamma_inc_inv.go
internal/special/gamma_inc_inv.go
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package internal
+package special
import (
"math"

RENAME
internal/internal.go
internal/special/special.go
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-package internal
+package special
type objectiveFunc func(float64, []float64) float64

Moving c_misc files into special package