PHP Trait MathPHP\NumericalAnalysis\RootFinding\Validation

Afficher le fichier Open project: markrogoyski/math-php Trait Usage Examples

Méthodes publiques

Méthode Description
interval ( number $a, number $b ) Verify that the start and end of of an interval are distinct numbers.
tolerance ( number $tol ) Throw an exception if the tolerance is negative.

Method Details

interval() public static méthode

Verify that the start and end of of an interval are distinct numbers.
public static interval ( number $a, number $b )
$a number The start of the interval
$b number The end of the interval

tolerance() public static méthode

Throw an exception if the tolerance is negative.
public static tolerance ( number $tol )
$tol number Tolerance; How close to the actual solution we would like.