!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/   drwxr-xr-x
Free 13.11 GB of 57.97 GB (22.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Erf.php (3.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace PhpOffice\PhpSpreadsheet\Calculation\Engineering;

use 
PhpOffice\PhpSpreadsheet\Calculation\ArrayEnabled;
use 
PhpOffice\PhpSpreadsheet\Calculation\Functions;
use 
PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;

class 
Erf
{
    use 
ArrayEnabled;

    private const 
TWO_SQRT_PI 1.128379167095512574;

    
/**
     * ERF.
     *
     * Returns the error function integrated between the lower and upper bound arguments.
     *
     *    Note: In Excel 2007 or earlier, if you input a negative value for the upper or lower bound arguments,
     *            the function would return a #NUM! error. However, in Excel 2010, the function algorithm was
     *            improved, so that it can now calculate the function for both positive and negative ranges.
     *            PhpSpreadsheet follows Excel 2010 behaviour, and accepts negative arguments.
     *
     *    Excel Function:
     *        ERF(lower[,upper])
     *
     * @param mixed $lower Lower bound float for integrating ERF
     *                      Or can be an array of values
     * @param mixed $upper Upper bound float for integrating ERF.
     *                           If omitted, ERF integrates between zero and lower_limit
     *                      Or can be an array of values
     *
     * @return array|float|string
     *         If an array of numbers is passed as an argument, then the returned result will also be an array
     *            with the same dimensions
     */
    
public static function ERF($lower$upper null)
    {
        if (
is_array($lower) || is_array($upper)) {
            return 
self::evaluateArrayArguments([self::class, __FUNCTION__], $lower$upper);
        }

        if (
is_numeric($lower)) {
            if (
$upper === null) {
                return 
self::erfValue($lower);
            }
            if (
is_numeric($upper)) {
                return 
self::erfValue($upper) - self::erfValue($lower);
            }
        }

        return 
ExcelError::VALUE();
    }

    
/**
     * ERFPRECISE.
     *
     * Returns the error function integrated between the lower and upper bound arguments.
     *
     *    Excel Function:
     *        ERF.PRECISE(limit)
     *
     * @param mixed $limit Float bound for integrating ERF, other bound is zero
     *                      Or can be an array of values
     *
     * @return array|float|string
     *         If an array of numbers is passed as an argument, then the returned result will also be an array
     *            with the same dimensions
     */
    
public static function ERFPRECISE($limit)
    {
        if (
is_array($limit)) {
            return 
self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $limit);
        }

        return 
self::ERF($limit);
    }

    
/**
     * Method to calculate the erf value.
     *
     * @param float|int|string $value
     *
     * @return float
     */
    
public static function erfValue($value)
    {
        
$value = (float) $value;
        if (
abs($value) > 2.2) {
            return 
ErfC::ERFC($value);
        }
        
$sum $term $value;
        
$xsqr = ($value $value);
        
$j 1;
        do {
            
$term *= $xsqr $j;
            
$sum -= $term / ($j 1);
            ++
$j;
            
$term *= $xsqr $j;
            
$sum += $term / ($j 1);
            ++
$j;
            if (
$sum == 0.0) {
                break;
            }
        } while (
abs($term $sum) > Functions::PRECISION);

        return 
self::TWO_SQRT_PI $sum;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0084 ]--