ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PhpOffice\PhpSpreadsheet\Calculation\Engineering Class Reference
+ Collaboration diagram for PhpOffice\PhpSpreadsheet\Calculation\Engineering:

Static Public Member Functions

static parseComplex ($complexNumber)
 parseComplex. More...
 
static BESSELI ($x, $ord)
 BESSELI. More...
 
static BESSELJ ($x, $ord)
 BESSELJ. More...
 
static BESSELK ($x, $ord)
 BESSELK. More...
 
static BESSELY ($x, $ord)
 BESSELY. More...
 
static BINTODEC ($x)
 BINTODEC. More...
 
static BINTOHEX ($x, $places=null)
 BINTOHEX. More...
 
static BINTOOCT ($x, $places=null)
 BINTOOCT. More...
 
static DECTOBIN ($x, $places=null)
 DECTOBIN. More...
 
static DECTOHEX ($x, $places=null)
 DECTOHEX. More...
 
static DECTOOCT ($x, $places=null)
 DECTOOCT. More...
 
static HEXTOBIN ($x, $places=null)
 HEXTOBIN. More...
 
static HEXTODEC ($x)
 HEXTODEC. More...
 
static HEXTOOCT ($x, $places=null)
 HEXTOOCT. More...
 
static OCTTOBIN ($x, $places=null)
 OCTTOBIN. More...
 
static OCTTODEC ($x)
 OCTTODEC. More...
 
static OCTTOHEX ($x, $places=null)
 OCTTOHEX. More...
 
static COMPLEX ($realNumber=0.0, $imaginary=0.0, $suffix='i')
 COMPLEX. More...
 
static IMAGINARY ($complexNumber)
 IMAGINARY. More...
 
static IMREAL ($complexNumber)
 IMREAL. More...
 
static IMABS ($complexNumber)
 IMABS. More...
 
static IMARGUMENT ($complexNumber)
 IMARGUMENT. More...
 
static IMCONJUGATE ($complexNumber)
 IMCONJUGATE. More...
 
static IMCOS ($complexNumber)
 IMCOS. More...
 
static IMCOSH ($complexNumber)
 IMCOSH. More...
 
static IMCOT ($complexNumber)
 IMCOT. More...
 
static IMCSC ($complexNumber)
 IMCSC. More...
 
static IMCSCH ($complexNumber)
 IMCSCH. More...
 
static IMSIN ($complexNumber)
 IMSIN. More...
 
static IMSINH ($complexNumber)
 IMSINH. More...
 
static IMSEC ($complexNumber)
 IMSEC. More...
 
static IMSECH ($complexNumber)
 IMSECH. More...
 
static IMTAN ($complexNumber)
 IMTAN. More...
 
static IMSQRT ($complexNumber)
 IMSQRT. More...
 
static IMLN ($complexNumber)
 IMLN. More...
 
static IMLOG10 ($complexNumber)
 IMLOG10. More...
 
static IMLOG2 ($complexNumber)
 IMLOG2. More...
 
static IMEXP ($complexNumber)
 IMEXP. More...
 
static IMPOWER ($complexNumber, $realNumber)
 IMPOWER. More...
 
static IMDIV ($complexDividend, $complexDivisor)
 IMDIV. More...
 
static IMSUB ($complexNumber1, $complexNumber2)
 IMSUB. More...
 
static IMSUM (... $complexNumbers)
 IMSUM. More...
 
static IMPRODUCT (... $complexNumbers)
 IMPRODUCT. More...
 
static DELTA ($a, $b=0)
 DELTA. More...
 
static GESTEP ($number, $step=0)
 GESTEP. More...
 
static BITAND ($number1, $number2)
 BITAND. More...
 
static BITOR ($number1, $number2)
 BITOR. More...
 
static BITXOR ($number1, $number2)
 BITXOR. More...
 
static BITLSHIFT ($number, $shiftAmount)
 BITLSHIFT. More...
 
static BITRSHIFT ($number, $shiftAmount)
 BITRSHIFT. More...
 
static ERF ($lower, $upper=null)
 ERF. More...
 
static ERFPRECISE ($limit)
 ERFPRECISE. More...
 
static ERFC ($x)
 ERFC. More...
 
static getConversionGroups ()
 getConversionGroups Returns a list of the different conversion groups for UOM conversions. More...
 
static getConversionGroupUnits ($category=null)
 getConversionGroupUnits Returns an array of units of measure, for a specified conversion group, or for all groups. More...
 
static getConversionGroupUnitDetails ($category=null)
 getConversionGroupUnitDetails. More...
 
static getConversionMultipliers ()
 getConversionMultipliers Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM(). More...
 
static getBinaryConversionMultipliers ()
 getBinaryConversionMultipliers. More...
 
static CONVERTUOM ($value, $fromUOM, $toUOM)
 CONVERTUOM. More...
 

Data Fields

const EULER = 2.71828182845904523536
 EULER. More...
 

Detailed Description

Deprecated:
1.18.0

Definition at line 12 of file Engineering.php.

Member Function Documentation

◆ BESSELI()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BESSELI (   $x,
  $ord 
)
static

BESSELI.

Returns the modified Bessel function In(x), which is equivalent to the Bessel function evaluated for purely imaginary arguments

Excel Function: BESSELI(x,ord)

1.17.0

See also
Use the BESSELI() method in the Engineering class instead
Parameters
float$xThe value at which to evaluate the function. If x is nonnumeric, BESSELI returns the #VALUE! error value.
int$ordThe order of the Bessel function. If ord is not an integer, it is truncated. If $ord is nonnumeric, BESSELI returns the #VALUE! error value. If $ord < 0, BESSELI returns the #NUM! error value.
Returns
float|string Result, or a string containing an error

Definition at line 66 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\BesselI\BESSELI().

67  {
68  return Engineering\BesselI::BESSELI($x, $ord);
69  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ BESSELJ()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BESSELJ (   $x,
  $ord 
)
static

BESSELJ.

Returns the Bessel function

Excel Function: BESSELJ(x,ord)

1.17.0

See also
Use the BESSELJ() method in the Engineering class instead
Parameters
float$xThe value at which to evaluate the function. If x is nonnumeric, BESSELJ returns the #VALUE! error value.
int$ordThe order of the Bessel function. If n is not an integer, it is truncated. If $ord is nonnumeric, BESSELJ returns the #VALUE! error value. If $ord < 0, BESSELJ returns the #NUM! error value.
Returns
float|string Result, or a string containing an error

Definition at line 91 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\BesselJ\BESSELJ().

92  {
93  return Engineering\BesselJ::BESSELJ($x, $ord);
94  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ BESSELK()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BESSELK (   $x,
  $ord 
)
static

BESSELK.

Returns the modified Bessel function Kn(x), which is equivalent to the Bessel functions evaluated for purely imaginary arguments.

Excel Function: BESSELK(x,ord)

1.17.0

See also
Use the BESSELK() method in the Engineering class instead
Parameters
float$xThe value at which to evaluate the function. If x is nonnumeric, BESSELK returns the #VALUE! error value.
int$ordThe order of the Bessel function. If n is not an integer, it is truncated. If $ord is nonnumeric, BESSELK returns the #VALUE! error value. If $ord < 0, BESSELK returns the #NUM! error value.
Returns
float|string Result, or a string containing an error

Definition at line 117 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\BesselK\BESSELK().

118  {
119  return Engineering\BesselK::BESSELK($x, $ord);
120  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ BESSELY()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BESSELY (   $x,
  $ord 
)
static

BESSELY.

Returns the Bessel function, which is also called the Weber function or the Neumann function.

Excel Function: BESSELY(x,ord)

1.17.0

See also
Use the BESSELY() method in the Engineering class instead
Parameters
float$xThe value at which to evaluate the function. If x is nonnumeric, BESSELY returns the #VALUE! error value.
int$ordThe order of the Bessel function. If n is not an integer, it is truncated. If $ord is nonnumeric, BESSELY returns the #VALUE! error value. If $ord < 0, BESSELY returns the #NUM! error value.
Returns
float|string Result, or a string containing an error

Definition at line 142 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\BesselY\BESSELY().

143  {
144  return Engineering\BesselY::BESSELY($x, $ord);
145  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ BINTODEC()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BINTODEC (   $x)
static

BINTODEC.

Return a binary value as decimal.

Excel Function: BIN2DEC(x)

1.17.0

See also
Use the toDecimal() method in the Engineering class instead
Parameters
mixed$xThe binary number (as a string) that you want to convert. The number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is not a valid binary number, or if number contains more than 10 characters (10 bits), BIN2DEC returns the #NUM! error value.
Returns
string

Definition at line 168 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertBinary\toDecimal().

+ Here is the call graph for this function:

◆ BINTOHEX()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BINTOHEX (   $x,
  $places = null 
)
static

BINTOHEX.

Return a binary value as hex.

Excel Function: BIN2HEX(x[,places])

1.17.0

See also
Use the toHex() method in the Engineering class instead
Parameters
mixed$xThe binary number (as a string) that you want to convert. The number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is not a valid binary number, or if number contains more than 10 characters (10 bits), BIN2HEX returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, BIN2HEX uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, BIN2HEX returns the #VALUE! error value. If places is negative, BIN2HEX returns the #NUM! error value.
Returns
string

Definition at line 200 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertBinary\toHex().

201  {
202  return Engineering\ConvertBinary::toHex($x, $places);
203  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ BINTOOCT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BINTOOCT (   $x,
  $places = null 
)
static

BINTOOCT.

Return a binary value as octal.

Excel Function: BIN2OCT(x[,places])

1.17.0

See also
Use the toOctal() method in the Engineering class instead
Parameters
mixed$xThe binary number (as a string) that you want to convert. The number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is not a valid binary number, or if number contains more than 10 characters (10 bits), BIN2OCT returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, BIN2OCT uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, BIN2OCT returns the #VALUE! error value. If places is negative, BIN2OCT returns the #NUM! error value.
Returns
string

Definition at line 232 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertBinary\toOctal().

233  {
234  return Engineering\ConvertBinary::toOctal($x, $places);
235  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ BITAND()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BITAND (   $number1,
  $number2 
)
static

BITAND.

Returns the bitwise AND of two integer values.

Excel Function: BITAND(number1, number2)

1.17.0

See also
Use the BITAND() method in the Engineering class instead
Parameters
int$number1
int$number2
Returns
int|string

Definition at line 1174 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\BitWise\BITAND().

1175  {
1176  return Engineering\BitWise::BITAND($number1, $number2);
1177  }
static BITAND($number1, $number2)
BITAND.
Definition: BitWise.php:35
+ Here is the call graph for this function:

◆ BITLSHIFT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BITLSHIFT (   $number,
  $shiftAmount 
)
static

BITLSHIFT.

Returns the number value shifted left by shift_amount bits.

Excel Function: BITLSHIFT(number, shift_amount)

1.17.0

See also
Use the BITLSHIFT() method in the Engineering class instead
Parameters
int$number
int$shiftAmount
Returns
int|string

Definition at line 1240 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\BitWise\BITLSHIFT().

1241  {
1242  return Engineering\BitWise::BITLSHIFT($number, $shiftAmount);
1243  }
static BITLSHIFT($number, $shiftAmount)
BITLSHIFT.
Definition: BitWise.php:118
+ Here is the call graph for this function:

◆ BITOR()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BITOR (   $number1,
  $number2 
)
static

BITOR.

Returns the bitwise OR of two integer values.

Excel Function: BITOR(number1, number2)

1.17.0

See also
Use the BITOR() method in the Engineering class instead
Parameters
int$number1
int$number2
Returns
int|string

Definition at line 1196 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\BitWise\BITOR().

1197  {
1198  return Engineering\BitWise::BITOR($number1, $number2);
1199  }
static BITOR($number1, $number2)
BITOR.
Definition: BitWise.php:62
+ Here is the call graph for this function:

◆ BITRSHIFT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BITRSHIFT (   $number,
  $shiftAmount 
)
static

BITRSHIFT.

Returns the number value shifted right by shift_amount bits.

Excel Function: BITRSHIFT(number, shift_amount)

1.17.0

See also
Use the BITRSHIFT() method in the Engineering class instead
Parameters
int$number
int$shiftAmount
Returns
int|string

Definition at line 1262 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\BitWise\BITRSHIFT().

1263  {
1264  return Engineering\BitWise::BITRSHIFT($number, $shiftAmount);
1265  }
static BITRSHIFT($number, $shiftAmount)
BITRSHIFT.
Definition: BitWise.php:148
+ Here is the call graph for this function:

◆ BITXOR()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::BITXOR (   $number1,
  $number2 
)
static

BITXOR.

Returns the bitwise XOR of two integer values.

Excel Function: BITXOR(number1, number2)

1.17.0

See also
Use the BITXOR() method in the Engineering class instead
Parameters
int$number1
int$number2
Returns
int|string

Definition at line 1218 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\BitWise\BITXOR().

1219  {
1220  return Engineering\BitWise::BITXOR($number1, $number2);
1221  }
static BITXOR($number1, $number2)
BITXOR.
Definition: BitWise.php:90
+ Here is the call graph for this function:

◆ COMPLEX()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::COMPLEX (   $realNumber = 0.0,
  $imaginary = 0.0,
  $suffix = 'i' 
)
static

COMPLEX.

Converts real and imaginary coefficients into a complex number of the form x +/- yi or x +/- yj.

Excel Function: COMPLEX(realNumber,imaginary[,suffix])

1.18.0

See also
Use the COMPLEX() method in the Engineering class instead
Parameters
float$realNumberthe real coefficient of the complex number
float$imaginarythe imaginary coefficient of the complex number
string$suffixThe suffix for the imaginary component of the complex number. If omitted, the suffix is assumed to be "i".
Returns
string

Definition at line 573 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\Complex\COMPLEX().

574  {
575  return Engineering\Complex::COMPLEX($realNumber, $imaginary, $suffix);
576  }
static COMPLEX($realNumber=0.0, $imaginary=0.0, $suffix='i')
COMPLEX.
Definition: Complex.php:27
+ Here is the call graph for this function:

◆ CONVERTUOM()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::CONVERTUOM (   $value,
  $fromUOM,
  $toUOM 
)
static

CONVERTUOM.

Converts a number from one measurement system to another. For example, CONVERT can translate a table of distances in miles to a table of distances in kilometers.

Excel Function: CONVERT(value,fromUOM,toUOM)

1.16.0

See also
Use the CONVERT() method in the ConvertUOM class instead
Parameters
float | int$valuethe value in fromUOM to convert
string$fromUOMthe units for value
string$toUOMthe units for the result
Returns
float|string

Definition at line 1442 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertUOM\CONVERT().

1443  {
1444  return Engineering\ConvertUOM::CONVERT($value, $fromUOM, $toUOM);
1445  }
static CONVERT($value, $fromUOM, $toUOM)
CONVERT.
Definition: ConvertUOM.php:527
+ Here is the call graph for this function:

◆ DECTOBIN()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::DECTOBIN (   $x,
  $places = null 
)
static

DECTOBIN.

Return a decimal value as binary.

Excel Function: DEC2BIN(x[,places])

1.17.0

See also
Use the toBinary() method in the Engineering class instead
Parameters
mixed$xThe decimal integer you want to convert. If number is negative, valid place values are ignored and DEC2BIN returns a 10-character (10-bit) binary number in which the most significant bit is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number < -512 or if number > 511, DEC2BIN returns the #NUM! error value. If number is nonnumeric, DEC2BIN returns the #VALUE! error value. If DEC2BIN requires more than places characters, it returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, DEC2BIN uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, DEC2BIN returns the #VALUE! error value. If places is zero or negative, DEC2BIN returns the #NUM! error value.
Returns
string

Definition at line 268 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertDecimal\toBinary().

269  {
270  return Engineering\ConvertDecimal::toBinary($x, $places);
271  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ DECTOHEX()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::DECTOHEX (   $x,
  $places = null 
)
static

DECTOHEX.

Return a decimal value as hex.

Excel Function: DEC2HEX(x[,places])

1.17.0

See also
Use the toHex() method in the Engineering class instead
Parameters
mixed$xThe decimal integer you want to convert. If number is negative, places is ignored and DEC2HEX returns a 10-character (40-bit) hexadecimal number in which the most significant bit is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number < -549,755,813,888 or if number > 549,755,813,887, DEC2HEX returns the #NUM! error value. If number is nonnumeric, DEC2HEX returns the #VALUE! error value. If DEC2HEX requires more than places characters, it returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, DEC2HEX uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, DEC2HEX returns the #VALUE! error value. If places is zero or negative, DEC2HEX returns the #NUM! error value.
Returns
string

Definition at line 304 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertDecimal\toHex().

305  {
306  return Engineering\ConvertDecimal::toHex($x, $places);
307  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ DECTOOCT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::DECTOOCT (   $x,
  $places = null 
)
static

DECTOOCT.

Return an decimal value as octal.

Excel Function: DEC2OCT(x[,places])

1.17.0

See also
Use the toOctal() method in the Engineering class instead
Parameters
mixed$xThe decimal integer you want to convert. If number is negative, places is ignored and DEC2OCT returns a 10-character (30-bit) octal number in which the most significant bit is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number < -536,870,912 or if number > 536,870,911, DEC2OCT returns the #NUM! error value. If number is nonnumeric, DEC2OCT returns the #VALUE! error value. If DEC2OCT requires more than places characters, it returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, DEC2OCT uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, DEC2OCT returns the #VALUE! error value. If places is zero or negative, DEC2OCT returns the #NUM! error value.
Returns
string

Definition at line 340 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertDecimal\toOctal().

341  {
342  return Engineering\ConvertDecimal::toOctal($x, $places);
343  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ DELTA()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::DELTA (   $a,
  $b = 0 
)
static

DELTA.

Tests whether two values are equal. Returns 1 if number1 = number2; returns 0 otherwise. Use this function to filter a set of values. For example, by summing several DELTA functions you calculate the count of equal pairs. This function is also known as the Kronecker Delta function.

Excel Function: DELTA(a[,b])

1.17.0

See also
Use the DELTA() method in the Engineering class instead
Parameters
float$athe first number
float$bThe second number. If omitted, b is assumed to be zero.
Returns
int|string (string in the event of an error)

Definition at line 1128 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\Compare\DELTA().

1129  {
1130  return Engineering\Compare::DELTA($a, $b);
1131  }
+ Here is the call graph for this function:

◆ ERF()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::ERF (   $lower,
  $upper = null 
)
static

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])

1.17.0

See also
Use the ERF() method in the Engineering class instead
Parameters
float$lowerlower bound for integrating ERF
float$upperupper bound for integrating ERF. If omitted, ERF integrates between zero and lower_limit
Returns
float|string

Definition at line 1290 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\Erf\ERF().

1291  {
1292  return Engineering\Erf::ERF($lower, $upper);
1293  }
static ERF($lower, $upper=null)
ERF.
Definition: Erf.php:30
+ Here is the call graph for this function:

◆ ERFC()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::ERFC (   $x)
static

ERFC.

Returns the complementary ERF function integrated between x and infinity

Note: In Excel 2007 or earlier, if you input a negative value for the lower bound argument, 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 x values. PhpSpreadsheet follows Excel 2010 behaviour, and accepts nagative arguments.

Excel Function: ERFC(x)

1.17.0

See also
Use the ERFC() method in the Engineering class instead
Parameters
float$xThe lower bound for integrating ERFC
Returns
float|string

Definition at line 1337 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ErfC\ERFC().

1338  {
1339  return Engineering\ErfC::ERFC($x);
1340  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ ERFPRECISE()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::ERFPRECISE (   $limit)
static

ERFPRECISE.

Returns the error function integrated between the lower and upper bound arguments.

Excel Function: ERF.PRECISE(limit)

1.17.0

See also
Use the ERFPRECISE() method in the Engineering class instead
Parameters
float$limitbound for integrating ERF
Returns
float|string

Definition at line 1311 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\Erf\ERFPRECISE().

1312  {
1313  return Engineering\Erf::ERFPRECISE($limit);
1314  }
static ERFPRECISE($limit)
ERFPRECISE.
Definition: Erf.php:59
+ Here is the call graph for this function:

◆ GESTEP()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::GESTEP (   $number,
  $step = 0 
)
static

GESTEP.

Excel Function: GESTEP(number[,step])

Returns 1 if number >= step; returns 0 (zero) otherwise Use this function to filter a set of values. For example, by summing several GESTEP functions you calculate the count of values that exceed a threshold.

1.17.0

See also
Use the GESTEP() method in the Engineering class instead
Parameters
float$numberthe value to test against step
float$stepThe threshold value. If you omit a value for step, GESTEP uses zero.
Returns
int|string (string in the event of an error)

Definition at line 1152 of file Engineering.php.

References $step, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\Compare\GESTEP().

1153  {
1154  return Engineering\Compare::GESTEP($number, $step);
1155  }
foreach( $_REQUEST as $var) foreach(array('_POST'=> 'HTTP_POST_VARS', '_GET'=> 'HTTP_GET_VARS', '_COOKIE'=> 'HTTP_COOKIE_VARS', '_SERVER'=> 'HTTP_SERVER_VARS', '_ENV'=> 'HTTP_ENV_VARS', '_FILES'=> 'HTTP_POST_FILES') as $array=> $other) $step
Definition: cssgen.php:155
+ Here is the call graph for this function:

◆ getBinaryConversionMultipliers()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::getBinaryConversionMultipliers ( )
static

getBinaryConversionMultipliers.

Returns an array of the additional Multiplier prefixes that can be used with Information Units of Measure in CONVERTUOM().

1.16.0

See also
Use the getBinaryConversionMultipliers() method in the ConvertUOM class instead
Returns
mixed[]

Definition at line 1417 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertUOM\getBinaryConversionMultipliers().

1418  {
1420  }
static getBinaryConversionMultipliers()
getBinaryConversionMultipliers Returns an array of the additional Multiplier prefixes that can be use...
Definition: ConvertUOM.php:506
+ Here is the call graph for this function:

◆ getConversionGroups()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::getConversionGroups ( )
static

getConversionGroups Returns a list of the different conversion groups for UOM conversions.

1.16.0

See also
Use the getConversionCategories() method in the Engineering class instead
Returns
array

Definition at line 1352 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertUOM\getConversionCategories().

1353  {
1355  }
static static getConversionCategories()
getConversionGroups Returns a list of the different conversion groups for UOM conversions.
Definition: ConvertUOM.php:437
+ Here is the call graph for this function:

◆ getConversionGroupUnitDetails()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::getConversionGroupUnitDetails (   $category = null)
static

getConversionGroupUnitDetails.

1.16.0

See also
Use the getConversionCategoryUnitDetails() method in the ConvertUOM class instead
Parameters
null | mixed$category
Returns
array

Definition at line 1385 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertUOM\getConversionCategoryUnitDetails().

1386  {
1388  }
static getConversionCategoryUnitDetails($category=null)
getConversionGroupUnitDetails.
Definition: ConvertUOM.php:474
+ Here is the call graph for this function:

◆ getConversionGroupUnits()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::getConversionGroupUnits (   $category = null)
static

getConversionGroupUnits Returns an array of units of measure, for a specified conversion group, or for all groups.

1.16.0

See also
Use the getConversionCategoryUnits() method in the ConvertUOM class instead
Parameters
null | mixed$category
Returns
array

Definition at line 1369 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertUOM\getConversionCategoryUnits().

1370  {
1372  }
static getConversionCategoryUnits($category=null)
getConversionGroupUnits Returns an array of units of measure, for a specified conversion group...
Definition: ConvertUOM.php:455
+ Here is the call graph for this function:

◆ getConversionMultipliers()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::getConversionMultipliers ( )
static

getConversionMultipliers Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM().

1.16.0

See also
Use the getConversionMultipliers() method in the ConvertUOM class instead
Returns
mixed[]

Definition at line 1400 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertUOM\getConversionMultipliers().

1401  {
1403  }
static getConversionMultipliers()
getConversionMultipliers Returns an array of the Multiplier prefixes that can be used with Units of M...
Definition: ConvertUOM.php:495
+ Here is the call graph for this function:

◆ HEXTOBIN()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::HEXTOBIN (   $x,
  $places = null 
)
static

HEXTOBIN.

Return a hex value as binary.

Excel Function: HEX2BIN(x[,places])

1.17.0

See also
Use the toBinary() method in the Engineering class instead
Parameters
mixed$xthe hexadecimal number (as a string) that you want to convert. Number cannot contain more than 10 characters. The most significant bit of number is the sign bit (40th bit from the right). The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is negative, HEX2BIN ignores places and returns a 10-character binary number. If number is negative, it cannot be less than FFFFFFFE00, and if number is positive, it cannot be greater than 1FF. If number is not a valid hexadecimal number, HEX2BIN returns the #NUM! error value. If HEX2BIN requires more than places characters, it returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, HEX2BIN uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, HEX2BIN returns the #VALUE! error value. If places is negative, HEX2BIN returns the #NUM! error value.
Returns
string

Definition at line 376 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertHex\toBinary().

377  {
378  return Engineering\ConvertHex::toBinary($x, $places);
379  }
static toBinary($value, $places=null)
toBinary.
Definition: ConvertHex.php:35
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ HEXTODEC()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::HEXTODEC (   $x)
static

HEXTODEC.

Return a hex value as decimal.

Excel Function: HEX2DEC(x)

1.17.0

See also
Use the toDecimal() method in the Engineering class instead
Parameters
mixed$xThe hexadecimal number (as a string) that you want to convert. This number cannot contain more than 10 characters (40 bits). The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is not a valid hexadecimal number, HEX2DEC returns the #NUM! error value.
Returns
string

Definition at line 403 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertHex\toDecimal().

404  {
406  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ HEXTOOCT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::HEXTOOCT (   $x,
  $places = null 
)
static

HEXTOOCT.

Return a hex value as octal.

Excel Function: HEX2OCT(x[,places])

1.17.0

See also
Use the toOctal() method in the Engineering class instead
Parameters
mixed$xThe hexadecimal number (as a string) that you want to convert. Number cannot contain more than 10 characters. The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is negative, HEX2OCT ignores places and returns a 10-character octal number. If number is negative, it cannot be less than FFE0000000, and if number is positive, it cannot be greater than 1FFFFFFF. If number is not a valid hexadecimal number, HEX2OCT returns the #NUM! error value. If HEX2OCT requires more than places characters, it returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, HEX2OCT uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, HEX2OCT returns the #VALUE! error value. If places is negative, HEX2OCT returns the #NUM! error value.
Returns
string

Definition at line 443 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertHex\toOctal().

444  {
445  return Engineering\ConvertHex::toOctal($x, $places);
446  }
static toOctal($value, $places=null)
toOctal.
Definition: ConvertHex.php:123
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ IMABS()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMABS (   $complexNumber)
static

IMABS.

Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format.

Excel Function: IMABS(complexNumber)

1.18.0

See also
Use the IMABS() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the absolute value
Returns
float|string

Definition at line 637 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMABS().

638  {
639  return ComplexFunctions::IMABS($complexNumber);
640  }
+ Here is the call graph for this function:

◆ IMAGINARY()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMAGINARY (   $complexNumber)
static

IMAGINARY.

Returns the imaginary coefficient of a complex number in x + yi or x + yj text format.

Excel Function: IMAGINARY(complexNumber)

1.18.0

See also
Use the IMAGINARY() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the imaginary coefficient
Returns
float|string

Definition at line 595 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\Complex\IMAGINARY().

596  {
597  return Engineering\Complex::IMAGINARY($complexNumber);
598  }
static IMAGINARY($complexNumber)
IMAGINARY.
Definition: Complex.php:62
+ Here is the call graph for this function:

◆ IMARGUMENT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMARGUMENT (   $complexNumber)
static

IMARGUMENT.

Returns the argument theta of a complex number, i.e. the angle in radians from the real axis to the representation of the number in polar coordinates.

Excel Function: IMARGUMENT(complexNumber)

1.18.0

See also
Use the IMARGUMENT() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the argument theta
Returns
float|string

Definition at line 659 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMARGUMENT().

660  {
661  return ComplexFunctions::IMARGUMENT($complexNumber);
662  }
+ Here is the call graph for this function:

◆ IMCONJUGATE()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMCONJUGATE (   $complexNumber)
static

IMCONJUGATE.

Returns the complex conjugate of a complex number in x + yi or x + yj text format.

Excel Function: IMCONJUGATE(complexNumber)

1.18.0

See also
Use the IMARGUMENT() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the conjugate
Returns
string

Definition at line 680 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMCONJUGATE().

681  {
682  return ComplexFunctions::IMCONJUGATE($complexNumber);
683  }
+ Here is the call graph for this function:

◆ IMCOS()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMCOS (   $complexNumber)
static

IMCOS.

Returns the cosine of a complex number in x + yi or x + yj text format.

Excel Function: IMCOS(complexNumber)

1.18.0

See also
Use the IMCOS() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the cosine
Returns
float|string

Definition at line 701 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMCOS().

702  {
703  return ComplexFunctions::IMCOS($complexNumber);
704  }
+ Here is the call graph for this function:

◆ IMCOSH()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMCOSH (   $complexNumber)
static

IMCOSH.

Returns the hyperbolic cosine of a complex number in x + yi or x + yj text format.

Excel Function: IMCOSH(complexNumber)

1.18.0

See also
Use the IMCOSH() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the hyperbolic cosine
Returns
float|string

Definition at line 722 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMCOSH().

723  {
724  return ComplexFunctions::IMCOSH($complexNumber);
725  }
+ Here is the call graph for this function:

◆ IMCOT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMCOT (   $complexNumber)
static

IMCOT.

Returns the cotangent of a complex number in x + yi or x + yj text format.

Excel Function: IMCOT(complexNumber)

1.18.0

See also
Use the IMCOT() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the cotangent
Returns
float|string

Definition at line 743 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMCOT().

744  {
745  return ComplexFunctions::IMCOT($complexNumber);
746  }
+ Here is the call graph for this function:

◆ IMCSC()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMCSC (   $complexNumber)
static

IMCSC.

Returns the cosecant of a complex number in x + yi or x + yj text format.

Excel Function: IMCSC(complexNumber)

1.18.0

See also
Use the IMCSC() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the cosecant
Returns
float|string

Definition at line 764 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMCSC().

765  {
766  return ComplexFunctions::IMCSC($complexNumber);
767  }
+ Here is the call graph for this function:

◆ IMCSCH()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMCSCH (   $complexNumber)
static

IMCSCH.

Returns the hyperbolic cosecant of a complex number in x + yi or x + yj text format.

Excel Function: IMCSCH(complexNumber)

1.18.0

See also
Use the IMCSCH() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the hyperbolic cosecant
Returns
float|string

Definition at line 785 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMCSCH().

786  {
787  return ComplexFunctions::IMCSCH($complexNumber);
788  }
+ Here is the call graph for this function:

◆ IMDIV()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMDIV (   $complexDividend,
  $complexDivisor 
)
static

IMDIV.

Returns the quotient of two complex numbers in x + yi or x + yj text format.

Excel Function: IMDIV(complexDividend,complexDivisor)

1.18.0

See also
Use the IMDIV() method in the Engineering class instead
Parameters
string$complexDividendthe complex numerator or dividend
string$complexDivisorthe complex denominator or divisor
Returns
string

Definition at line 1039 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexOperations\IMDIV().

1040  {
1041  return ComplexOperations::IMDIV($complexDividend, $complexDivisor);
1042  }
static IMDIV($complexDividend, $complexDivisor)
IMDIV.
+ Here is the call graph for this function:

◆ IMEXP()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMEXP (   $complexNumber)
static

IMEXP.

Returns the exponential of a complex number in x + yi or x + yj text format.

Excel Function: IMEXP(complexNumber)

1.18.0

See also
Use the IMEXP() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the exponential
Returns
string

Definition at line 995 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMEXP().

996  {
997  return ComplexFunctions::IMEXP($complexNumber);
998  }
+ Here is the call graph for this function:

◆ IMLN()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMLN (   $complexNumber)
static

IMLN.

Returns the natural logarithm of a complex number in x + yi or x + yj text format.

Excel Function: IMLN(complexNumber)

1.18.0

See also
Use the IMLN() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the natural logarithm
Returns
string

Definition at line 932 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMLN().

933  {
934  return ComplexFunctions::IMLN($complexNumber);
935  }
+ Here is the call graph for this function:

◆ IMLOG10()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMLOG10 (   $complexNumber)
static

IMLOG10.

Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format.

Excel Function: IMLOG10(complexNumber)

1.18.0

See also
Use the IMLOG10() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the common logarithm
Returns
string

Definition at line 953 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMLOG10().

954  {
955  return ComplexFunctions::IMLOG10($complexNumber);
956  }
+ Here is the call graph for this function:

◆ IMLOG2()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMLOG2 (   $complexNumber)
static

IMLOG2.

Returns the base-2 logarithm of a complex number in x + yi or x + yj text format.

Excel Function: IMLOG2(complexNumber)

1.18.0

See also
Use the IMLOG2() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the base-2 logarithm
Returns
string

Definition at line 974 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMLOG2().

975  {
976  return ComplexFunctions::IMLOG2($complexNumber);
977  }
+ Here is the call graph for this function:

◆ IMPOWER()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMPOWER (   $complexNumber,
  $realNumber 
)
static

IMPOWER.

Returns a complex number in x + yi or x + yj text format raised to a power.

Excel Function: IMPOWER(complexNumber,realNumber)

1.18.0

See also
Use the IMPOWER() method in the Engineering class instead
Parameters
string$complexNumberthe complex number you want to raise to a power
float$realNumberthe power to which you want to raise the complex number
Returns
string

Definition at line 1017 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMPOWER().

1018  {
1019  return ComplexFunctions::IMPOWER($complexNumber, $realNumber);
1020  }
+ Here is the call graph for this function:

◆ IMPRODUCT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMPRODUCT (   $complexNumbers)
static

IMPRODUCT.

Returns the product of two or more complex numbers in x + yi or x + yj text format.

Excel Function: IMPRODUCT(complexNumber[,complexNumber[,...]])

1.18.0

See also
Use the IMPRODUCT() method in the Engineering class instead
Parameters
string...$complexNumbers Series of complex numbers to multiply
Returns
string

Definition at line 1103 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexOperations\IMPRODUCT().

1104  {
1105  return ComplexOperations::IMPRODUCT(...$complexNumbers);
1106  }
+ Here is the call graph for this function:

◆ IMREAL()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMREAL (   $complexNumber)
static

IMREAL.

Returns the real coefficient of a complex number in x + yi or x + yj text format.

Excel Function: IMREAL(complexNumber)

1.18.0

See also
Use the IMREAL() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the real coefficient
Returns
float|string

Definition at line 616 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\Complex\IMREAL().

617  {
618  return Engineering\Complex::IMREAL($complexNumber);
619  }
+ Here is the call graph for this function:

◆ IMSEC()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMSEC (   $complexNumber)
static

IMSEC.

Returns the secant of a complex number in x + yi or x + yj text format.

Excel Function: IMSEC(complexNumber)

1.18.0

See also
Use the IMSEC() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the secant
Returns
float|string

Definition at line 848 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMSEC().

849  {
850  return ComplexFunctions::IMSEC($complexNumber);
851  }
+ Here is the call graph for this function:

◆ IMSECH()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMSECH (   $complexNumber)
static

IMSECH.

Returns the hyperbolic secant of a complex number in x + yi or x + yj text format.

Excel Function: IMSECH(complexNumber)

1.18.0

See also
Use the IMSECH() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the hyperbolic secant
Returns
float|string

Definition at line 869 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMSECH().

870  {
871  return ComplexFunctions::IMSECH($complexNumber);
872  }
+ Here is the call graph for this function:

◆ IMSIN()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMSIN (   $complexNumber)
static

IMSIN.

Returns the sine of a complex number in x + yi or x + yj text format.

Excel Function: IMSIN(complexNumber)

1.18.0

See also
Use the IMSIN() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the sine
Returns
float|string

Definition at line 806 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMSIN().

807  {
808  return ComplexFunctions::IMSIN($complexNumber);
809  }
+ Here is the call graph for this function:

◆ IMSINH()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMSINH (   $complexNumber)
static

IMSINH.

Returns the hyperbolic sine of a complex number in x + yi or x + yj text format.

Excel Function: IMSINH(complexNumber)

1.18.0

See also
Use the IMSINH() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the hyperbolic sine
Returns
float|string

Definition at line 827 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMSINH().

828  {
829  return ComplexFunctions::IMSINH($complexNumber);
830  }
+ Here is the call graph for this function:

◆ IMSQRT()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMSQRT (   $complexNumber)
static

IMSQRT.

Returns the square root of a complex number in x + yi or x + yj text format.

Excel Function: IMSQRT(complexNumber)

1.18.0

See also
Use the IMSQRT() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the square root
Returns
string

Definition at line 911 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMSQRT().

912  {
913  return ComplexFunctions::IMSQRT($complexNumber);
914  }
+ Here is the call graph for this function:

◆ IMSUB()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMSUB (   $complexNumber1,
  $complexNumber2 
)
static

IMSUB.

Returns the difference of two complex numbers in x + yi or x + yj text format.

Excel Function: IMSUB(complexNumber1,complexNumber2)

1.18.0

See also
Use the IMSUB() method in the Engineering class instead
Parameters
string$complexNumber1the complex number from which to subtract complexNumber2
string$complexNumber2the complex number to subtract from complexNumber1
Returns
string

Definition at line 1061 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexOperations\IMSUB().

1062  {
1063  return ComplexOperations::IMSUB($complexNumber1, $complexNumber2);
1064  }
static IMSUB($complexNumber1, $complexNumber2)
IMSUB.
+ Here is the call graph for this function:

◆ IMSUM()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMSUM (   $complexNumbers)
static

IMSUM.

Returns the sum of two or more complex numbers in x + yi or x + yj text format.

Excel Function: IMSUM(complexNumber[,complexNumber[,...]])

1.18.0

See also
Use the IMSUM() method in the Engineering class instead
Parameters
string...$complexNumbers Series of complex numbers to add
Returns
string

Definition at line 1082 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexOperations\IMSUM().

1083  {
1084  return ComplexOperations::IMSUM(...$complexNumbers);
1085  }
+ Here is the call graph for this function:

◆ IMTAN()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::IMTAN (   $complexNumber)
static

IMTAN.

Returns the tangent of a complex number in x + yi or x + yj text format.

Excel Function: IMTAN(complexNumber)

1.18.0

See also
Use the IMTAN() method in the Engineering class instead
Parameters
string$complexNumberthe complex number for which you want the tangent
Returns
float|string

Definition at line 890 of file Engineering.php.

References PhpOffice\PhpSpreadsheet\Calculation\Engineering\ComplexFunctions\IMTAN().

891  {
892  return ComplexFunctions::IMTAN($complexNumber);
893  }
+ Here is the call graph for this function:

◆ OCTTOBIN()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::OCTTOBIN (   $x,
  $places = null 
)
static

OCTTOBIN.

Return an octal value as binary.

Excel Function: OCT2BIN(x[,places])

1.17.0

See also
Use the toBinary() method in the Engineering class instead
Parameters
mixed$xThe octal number you want to convert. Number may not contain more than 10 characters. The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is negative, OCT2BIN ignores places and returns a 10-character binary number. If number is negative, it cannot be less than 7777777000, and if number is positive, it cannot be greater than 777. If number is not a valid octal number, OCT2BIN returns the #NUM! error value. If OCT2BIN requires more than places characters, it returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, OCT2BIN uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, OCT2BIN returns the #VALUE! error value. If places is negative, OCT2BIN returns the #NUM! error value.
Returns
string

Definition at line 485 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertOctal\toBinary().

486  {
487  return Engineering\ConvertOctal::toBinary($x, $places);
488  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ OCTTODEC()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::OCTTODEC (   $x)
static

OCTTODEC.

Return an octal value as decimal.

Excel Function: OCT2DEC(x)

1.17.0

See also
Use the toDecimal() method in the Engineering class instead
Parameters
mixed$xThe octal number you want to convert. Number may not contain more than 10 octal characters (30 bits). The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is not a valid octal number, OCT2DEC returns the #NUM! error value.
Returns
string

Definition at line 512 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertOctal\toDecimal().

+ Here is the call graph for this function:

◆ OCTTOHEX()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::OCTTOHEX (   $x,
  $places = null 
)
static

OCTTOHEX.

Return an octal value as hex.

Excel Function: OCT2HEX(x[,places])

1.17.0

See also
Use the toHex() method in the Engineering class instead
Parameters
mixed$xThe octal number you want to convert. Number may not contain more than 10 octal characters (30 bits). The most significant bit of number is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation. If number is negative, OCT2HEX ignores places and returns a 10-character hexadecimal number. If number is not a valid octal number, OCT2HEX returns the #NUM! error value. If OCT2HEX requires more than places characters, it returns the #NUM! error value.
mixed$placesThe number of characters to use. If places is omitted, OCT2HEX uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). If places is not an integer, it is truncated. If places is nonnumeric, OCT2HEX returns the #VALUE! error value. If places is negative, OCT2HEX returns the #NUM! error value.
Returns
string

Definition at line 549 of file Engineering.php.

References $x, and PhpOffice\PhpSpreadsheet\Calculation\Engineering\ConvertOctal\toHex().

550  {
551  return Engineering\ConvertOctal::toHex($x, $places);
552  }
$x
Definition: complexTest.php:9
+ Here is the call graph for this function:

◆ parseComplex()

static PhpOffice\PhpSpreadsheet\Calculation\Engineering::parseComplex (   $complexNumber)
static

parseComplex.

Parses a complex number into its real and imaginary parts, and an I or J suffix

Deprecated:
1.12.0 No longer used by internal code. Please use the class instead
Parameters
string$complexNumberThe complex number
Returns
mixed[] Indexed on "real", "imaginary" and "suffix"

Definition at line 33 of file Engineering.php.

34  {
35  $complex = new Complex($complexNumber);
36 
37  return [
38  'real' => $complex->getReal(),
39  'imaginary' => $complex->getImaginary(),
40  'suffix' => $complex->getSuffix(),
41  ];
42  }

Field Documentation

◆ EULER

const PhpOffice\PhpSpreadsheet\Calculation\Engineering::EULER = 2.71828182845904523536

EULER.

Deprecated:
1.18.0
See also
Use Engineering instead

Definition at line 20 of file Engineering.php.


The documentation for this class was generated from the following file: