30 public static function ERF($lower, $upper =
null)
35 if (is_numeric($lower)) {
36 if ($upper ===
null) {
39 if (is_numeric($upper)) {
71 if (abs($value) > 2.2) {
74 $sum = $term = $value;
75 $xsqr = ($value * $value);
79 $sum -= $term / (2 * $j + 1);
82 $sum += $term / (2 * $j + 1);
89 return self::$twoSqrtPi * $sum;
An exception for terminatinating execution or to throw for unit testing.
static ERF($lower, $upper=null)
ERF.
static ERFPRECISE($limit)
ERFPRECISE.
static flattenSingleValue($value='')
Convert an array to a single scalar value by extracting the first element.