Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
MathPHP
NumericalAnalysis
RootFinding
Validation
PHP Trait MathPHP\NumericalAnalysis\RootFinding\Validation
Mostrar archivo
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.