PHP Trait MathPHP\NumericalAnalysis\RootFinding\Validation

显示文件 Open project: markrogoyski/math-php Trait Usage Examples

Public Methods

Method 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 method

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 method

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.