Golang, Numerical Methods.
passed to a func(float64) function. Use with structs type Assumption struct{ Target float64 Sums []float64 } func (a *Assumption) goalFunc(x float64) (float64, error){ y, err := someComplexFunction(a.Sums) if err != nil { return 0.0, err } return y-a.Target, nil } Problems: If your equation (and