Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllNumericMethodsHaveBeenFailed = error(allNumericMethodsHaveBeenFailed)
View Source
var FunctionHasNoSolutionInIntervalErr = error(functionHasNoSolutionInInterval)
View Source
var FunctionValueIsNanOrInfinityErr = error(functionValueIsNanOrInfinity)
View Source
var FunctionsDeltaIsZeroErr = error(functionsDeltaIsZero)
Functions ¶
This section is empty.
Types ¶
type INumericFunc ¶
type to represent a function
type IResult ¶
type IResult interface {
Value() float64
IsSolution() bool
Error() *NumericMethodError
}
func ErrorFound ¶
func ErrorFound(err *NumericMethodError) IResult
func NoSolutionFound ¶
func NoSolutionFound() IResult
func SolutionFound ¶
type NumericMethod ¶
type NumericMethod interface {
Calculate(F INumericFunc, methodParams *Params) IResult
}
type to represent a numeric method
type NumericMethodError ¶
type NumericMethodError struct {
// contains filtered or unexported fields
}
func (*NumericMethodError) Error ¶
func (e *NumericMethodError) Error() string
type NumericMethodUsingDerivative ¶
type NumericMethodUsingDerivative interface {
Calculate(F INumericFunc, derivativeF INumericFunc, methodParams *Params) IResult
}
type to represent a numeric method using derivative of function
type NumericMethodUsingSecondDerivative ¶
type NumericMethodUsingSecondDerivative interface {
Calculate(F INumericFunc, derivativeF INumericFunc, secondDerivativeF INumericFunc, methodParams *Params) IResult
}
type to a numeric method using second derivative of function
type NumericResultType ¶
type NumericResultType int
type to represent status of calculations
const ( NumericResultType_HasSolution NumericResultType = 1 + iota NumericResultType_NoSolution )
Click to show internal directories.
Click to hide internal directories.