Documentation

Engineering

Table of Contents

EULER EULER. 2.718281828459045
parseComplex() parseComplex. array
BESSELI() BESSELI. float|string
BESSELJ() BESSELJ. float|string
BESSELK() BESSELK. float|string
BESSELY() BESSELY. float|string
BINTODEC() BINTODEC. string
BINTOHEX() BINTOHEX. string
BINTOOCT() BINTOOCT. string
DECTOBIN() DECTOBIN. string
DECTOHEX() DECTOHEX. string
DECTOOCT() DECTOOCT. string
HEXTOBIN() HEXTOBIN. string
HEXTODEC() HEXTODEC. string
HEXTOOCT() HEXTOOCT. string
OCTTOBIN() OCTTOBIN. string
OCTTODEC() OCTTODEC. string
OCTTOHEX() OCTTOHEX. string
COMPLEX() COMPLEX. string
IMAGINARY() IMAGINARY. float
IMREAL() IMREAL. float
IMABS() IMABS. float
IMARGUMENT() IMARGUMENT. float|string
IMCONJUGATE() IMCONJUGATE. string
IMCOS() IMCOS. float|string
IMCOSH() IMCOSH. float|string
IMCOT() IMCOT. float|string
IMCSC() IMCSC. float|string
IMCSCH() IMCSCH. float|string
IMSIN() IMSIN. float|string
IMSINH() IMSINH. float|string
IMSEC() IMSEC. float|string
IMSECH() IMSECH. float|string
IMTAN() IMTAN. float|string
IMSQRT() IMSQRT. string
IMLN() IMLN. string
IMLOG10() IMLOG10. string
IMLOG2() IMLOG2. string
IMEXP() IMEXP. string
IMPOWER() IMPOWER. string
IMDIV() IMDIV. string
IMSUB() IMSUB. string
IMSUM() IMSUM. string
IMPRODUCT() IMPRODUCT. string
DELTA() DELTA. int|string
GESTEP() GESTEP. int|string
BITAND() BITAND. int|string
BITOR() BITOR. int|string
BITXOR() BITXOR. int|string
BITLSHIFT() BITLSHIFT. int|string
BITRSHIFT() BITRSHIFT. int|string
ERF() ERF. float|string
ERFPRECISE() ERFPRECISE. float|string
ERFC() ERFC. float|string
getConversionGroups() getConversionGroups Returns a list of the different conversion groups for UOM conversions. array
getConversionGroupUnits() getConversionGroupUnits Returns an array of units of measure, for a specified conversion group, or for all groups. array
getConversionGroupUnitDetails() getConversionGroupUnitDetails. array
getConversionMultipliers() getConversionMultipliers Returns an array of the Multiplier prefixes that can be used with Units of Measure in CONVERTUOM(). array
getBinaryConversionMultipliers() getBinaryConversionMultipliers. array
CONVERTUOM() CONVERTUOM. float|string

Constants

Methods

parseComplex()

parseComplex.

public static parseComplex( $complexNumber : string ) : array

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

Parameters
$complexNumber : string

The complex number

Tags
deprecated

No longer used by internal code. Please use the \Complex\Complex class instead

Return values
array —

Indexed on "real", "imaginary" and "suffix"

BESSELI()

BESSELI.

public static BESSELI( $x : float , $ord : int ) : float|string

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

Excel Function: BESSELI(x,ord)

Parameters
$x : float

The value at which to evaluate the function. If x is nonnumeric, BESSELI returns the #VALUE! error value.

$ord : int

The 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.

Tags
Deprecated

1.17.0

see

the BESSELI() method in the Engineering\BesselI class instead

Return values
float|string —

Result, or a string containing an error

BESSELJ()

BESSELJ.

public static BESSELJ( $x : float , $ord : int ) : float|string

Returns the Bessel function

Excel Function: BESSELJ(x,ord)

Parameters
$x : float

The value at which to evaluate the function. If x is nonnumeric, BESSELJ returns the #VALUE! error value.

$ord : int

The 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.

Tags
Deprecated

1.17.0

see

the BESSELJ() method in the Engineering\BesselJ class instead

Return values
float|string —

Result, or a string containing an error

BESSELK()

BESSELK.

public static BESSELK( $x : float , $ord : int ) : float|string

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

Excel Function: BESSELK(x,ord)

Parameters
$x : float

The value at which to evaluate the function. If x is nonnumeric, BESSELK returns the #VALUE! error value.

$ord : int

The 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.

Tags
Deprecated

1.17.0

see

the BESSELK() method in the Engineering\BesselK class instead

Return values
float|string —

Result, or a string containing an error

BESSELY()

BESSELY.

public static BESSELY( $x : float , $ord : int ) : float|string

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

Excel Function: BESSELY(x,ord)

Parameters
$x : float

The value at which to evaluate the function. If x is nonnumeric, BESSELY returns the #VALUE! error value.

$ord : int

The 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.

Tags
Deprecated

1.17.0

see

the BESSELY() method in the Engineering\BesselY class instead

Return values
float|string —

Result, or a string containing an error

BINTODEC()

BINTODEC.

public static BINTODEC( $x : string ) : string

Return a binary value as decimal.

Excel Function: BIN2DEC(x)

Parameters
$x : string

The 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.

Tags
Deprecated

1.17.0

see

the toDecimal() method in the Engineering\ConvertBinary class instead

Return values
string

BINTOHEX()

BINTOHEX.

public static BINTOHEX( $x : string [, $places : int = null ] ) : string

Return a binary value as hex.

Excel Function: BIN2HEX(x[,places])

Parameters
$x : string

The 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toHex() method in the Engineering\ConvertBinary class instead

Return values
string

BINTOOCT()

BINTOOCT.

public static BINTOOCT( $x : string [, $places : int = null ] ) : string

Return a binary value as octal.

Excel Function: BIN2OCT(x[,places])

Parameters
$x : string

The 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toOctal() method in the Engineering\ConvertBinary class instead

Return values
string

DECTOBIN()

DECTOBIN.

public static DECTOBIN( $x : string [, $places : int = null ] ) : string

Return a decimal value as binary.

Excel Function: DEC2BIN(x[,places])

Parameters
$x : string

The 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toBinary() method in the Engineering\ConvertDecimal class instead

Return values
string

DECTOHEX()

DECTOHEX.

public static DECTOHEX( $x : string [, $places : int = null ] ) : string

Return a decimal value as hex.

Excel Function: DEC2HEX(x[,places])

Parameters
$x : string

The 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toHex() method in the Engineering\ConvertDecimal class instead

Return values
string

DECTOOCT()

DECTOOCT.

public static DECTOOCT( $x : string [, $places : int = null ] ) : string

Return an decimal value as octal.

Excel Function: DEC2OCT(x[,places])

Parameters
$x : string

The 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toOctal() method in the Engineering\ConvertDecimal class instead

Return values
string

HEXTOBIN()

HEXTOBIN.

public static HEXTOBIN( $x : string [, $places : int = null ] ) : string

Return a hex value as binary.

Excel Function: HEX2BIN(x[,places])

Parameters
$x : string

the hexadecimal number 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toBinary() method in the Engineering\ConvertHex class instead

Return values
string

HEXTODEC()

HEXTODEC.

public static HEXTODEC( $x : string ) : string

Return a hex value as decimal.

Excel Function: HEX2DEC(x)

Parameters
$x : string

The hexadecimal number 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.

Tags
Deprecated

1.17.0

see

the toDecimal() method in the Engineering\ConvertHex class instead

Return values
string

HEXTOOCT()

HEXTOOCT.

public static HEXTOOCT( $x : string [, $places : int = null ] ) : string

Return a hex value as octal.

Excel Function: HEX2OCT(x[,places])

Parameters
$x : string

The hexadecimal number 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toOctal() method in the Engineering\ConvertHex class instead

Return values
string

OCTTOBIN()

OCTTOBIN.

public static OCTTOBIN( $x : string [, $places : int = null ] ) : string

Return an octal value as binary.

Excel Function: OCT2BIN(x[,places])

Parameters
$x : string

The 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toBinary() method in the Engineering\ConvertOctal class instead

Return values
string

OCTTODEC()

OCTTODEC.

public static OCTTODEC( $x : string ) : string

Return an octal value as decimal.

Excel Function: OCT2DEC(x)

Parameters
$x : string

The 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.

Tags
Deprecated

1.17.0

see

the toDecimal() method in the Engineering\ConvertOctal class instead

Return values
string

OCTTOHEX()

OCTTOHEX.

public static OCTTOHEX( $x : string [, $places : int = null ] ) : string

Return an octal value as hex.

Excel Function: OCT2HEX(x[,places])

Parameters
$x : string

The 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.

$places : int = null

The 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.

Tags
Deprecated

1.17.0

see

the toHex() method in the Engineering\ConvertOctal class instead

Return values
string

COMPLEX()

COMPLEX.

public static COMPLEX( [ $realNumber : float = 0.0 ] [, $imaginary : float = 0.0 ] [, $suffix : string = 'i' ] ) : string

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

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

Parameters
$realNumber : float = 0.0

the real coefficient of the complex number

$imaginary : float = 0.0

the imaginary coefficient of the complex number

$suffix : string = 'i'

The suffix for the imaginary component of the complex number. If omitted, the suffix is assumed to be "i".

Return values
string

IMAGINARY()

IMAGINARY.

public static IMAGINARY( $complexNumber : string ) : float

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

Excel Function: IMAGINARY(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the imaginary coefficient

Return values
float

IMREAL()

IMREAL.

public static IMREAL( $complexNumber : string ) : float

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

Excel Function: IMREAL(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the real coefficient

Return values
float

IMABS()

IMABS.

public static IMABS( $complexNumber : string ) : float

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

Excel Function: IMABS(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the absolute value

Return values
float

IMARGUMENT()

IMARGUMENT.

public static IMARGUMENT( $complexNumber : string ) : float|string

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)

Parameters
$complexNumber : string

the complex number for which you want the argument theta

Return values
float|string

IMCONJUGATE()

IMCONJUGATE.

public static IMCONJUGATE( $complexNumber : string ) : string

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

Excel Function: IMCONJUGATE(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the conjugate

Return values
string

IMCOS()

IMCOS.

public static IMCOS( $complexNumber : string ) : float|string

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

Excel Function: IMCOS(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the cosine

Return values
float|string

IMCOSH()

IMCOSH.

public static IMCOSH( $complexNumber : string ) : float|string

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

Excel Function: IMCOSH(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the hyperbolic cosine

Return values
float|string

IMCOT()

IMCOT.

public static IMCOT( $complexNumber : string ) : float|string

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

Excel Function: IMCOT(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the cotangent

Return values
float|string

IMCSC()

IMCSC.

public static IMCSC( $complexNumber : string ) : float|string

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

Excel Function: IMCSC(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the cosecant

Return values
float|string

IMCSCH()

IMCSCH.

public static IMCSCH( $complexNumber : string ) : float|string

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

Excel Function: IMCSCH(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the hyperbolic cosecant

Return values
float|string

IMSIN()

IMSIN.

public static IMSIN( $complexNumber : string ) : float|string

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

Excel Function: IMSIN(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the sine

Return values
float|string

IMSINH()

IMSINH.

public static IMSINH( $complexNumber : string ) : float|string

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

Excel Function: IMSINH(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the hyperbolic sine

Return values
float|string

IMSEC()

IMSEC.

public static IMSEC( $complexNumber : string ) : float|string

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

Excel Function: IMSEC(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the secant

Return values
float|string

IMSECH()

IMSECH.

public static IMSECH( $complexNumber : string ) : float|string

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

Excel Function: IMSECH(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the hyperbolic secant

Return values
float|string

IMTAN()

IMTAN.

public static IMTAN( $complexNumber : string ) : float|string

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

Excel Function: IMTAN(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the tangent

Return values
float|string

IMSQRT()

IMSQRT.

public static IMSQRT( $complexNumber : string ) : string

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

Excel Function: IMSQRT(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the square root

Return values
string

IMLN()

IMLN.

public static IMLN( $complexNumber : string ) : string

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

Excel Function: IMLN(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the natural logarithm

Return values
string

IMLOG10()

IMLOG10.

public static IMLOG10( $complexNumber : string ) : string

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

Excel Function: IMLOG10(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the common logarithm

Return values
string

IMLOG2()

IMLOG2.

public static IMLOG2( $complexNumber : string ) : string

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

Excel Function: IMLOG2(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the base-2 logarithm

Return values
string

IMEXP()

IMEXP.

public static IMEXP( $complexNumber : string ) : string

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

Excel Function: IMEXP(complexNumber)

Parameters
$complexNumber : string

the complex number for which you want the exponential

Return values
string

IMPOWER()

IMPOWER.

public static IMPOWER( $complexNumber : string , $realNumber : float ) : string

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

Excel Function: IMPOWER(complexNumber,realNumber)

Parameters
$complexNumber : string

the complex number you want to raise to a power

$realNumber : float

the power to which you want to raise the complex number

Return values
string

IMDIV()

IMDIV.

public static IMDIV( $complexDividend : string , $complexDivisor : string ) : string

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

Excel Function: IMDIV(complexDividend,complexDivisor)

Parameters
$complexDividend : string

the complex numerator or dividend

$complexDivisor : string

the complex denominator or divisor

Return values
string

IMSUB()

IMSUB.

public static IMSUB( $complexNumber1 : string , $complexNumber2 : string ) : string

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

Excel Function: IMSUB(complexNumber1,complexNumber2)

Parameters
$complexNumber1 : string

the complex number from which to subtract complexNumber2

$complexNumber2 : string

the complex number to subtract from complexNumber1

Return values
string

IMSUM()

IMSUM.

public static IMSUM( ...$complexNumbers : string ) : string

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

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

Parameters
$complexNumbers : string

Series of complex numbers to add

Return values
string

IMPRODUCT()

IMPRODUCT.

public static IMPRODUCT( ...$complexNumbers : string ) : string

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

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

Parameters
$complexNumbers : string

Series of complex numbers to multiply

Return values
string

DELTA()

DELTA.

public static DELTA( $a : float , $b : float ) : int|string

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

Parameters
$a : float

the first number

$b : float

The second number. If omitted, b is assumed to be zero.

Tags
Deprecated

1.17.0

see

the DELTA() method in the Engineering\Compare class instead

Return values
int|string —

(string in the event of an error)

GESTEP()

GESTEP.

public static GESTEP( $number : float , $step : float ) : int|string

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.

Parameters
$number : float

the value to test against step

$step : float

The threshold value. If you omit a value for step, GESTEP uses zero.

Tags
Deprecated

1.17.0

see

the GESTEP() method in the Engineering\Compare class instead

Return values
int|string —

(string in the event of an error)

BITAND()

BITAND.

public static BITAND( $number1 : int , $number2 : int ) : int|string

Returns the bitwise AND of two integer values.

Excel Function: BITAND(number1, number2)

Parameters
$number1 : int
$number2 : int
Tags
Deprecated

1.17.0

see

the BITAND() method in the Engineering\BitWise class instead

Return values
int|string

BITOR()

BITOR.

public static BITOR( $number1 : int , $number2 : int ) : int|string

Returns the bitwise OR of two integer values.

Excel Function: BITOR(number1, number2)

Parameters
$number1 : int
$number2 : int
Tags
Deprecated

1.17.0

see

the BITOR() method in the Engineering\BitWise class instead

Return values
int|string

BITXOR()

BITXOR.

public static BITXOR( $number1 : int , $number2 : int ) : int|string

Returns the bitwise XOR of two integer values.

Excel Function: BITXOR(number1, number2)

Parameters
$number1 : int
$number2 : int
Tags
Deprecated

1.17.0

see

the BITXOR() method in the Engineering\BitWise class instead

Return values
int|string

BITLSHIFT()

BITLSHIFT.

public static BITLSHIFT( $number : int , $shiftAmount : int ) : int|string

Returns the number value shifted left by shift_amount bits.

Excel Function: BITLSHIFT(number, shift_amount)

Parameters
$number : int
$shiftAmount : int
Tags
Deprecated

1.17.0

see

the BITLSHIFT() method in the Engineering\BitWise class instead

Return values
int|string

BITRSHIFT()

BITRSHIFT.

public static BITRSHIFT( $number : int , $shiftAmount : int ) : int|string

Returns the number value shifted right by shift_amount bits.

Excel Function: BITRSHIFT(number, shift_amount)

Parameters
$number : int
$shiftAmount : int
Tags
Deprecated

1.17.0

see

the BITRSHIFT() method in the Engineering\BitWise class instead

Return values
int|string

ERF()

ERF.

public static ERF( $lower : float [, $upper : float = null ] ) : float|string

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

Parameters
$lower : float

lower bound for integrating ERF

$upper : float = null

upper bound for integrating ERF. If omitted, ERF integrates between zero and lower_limit

Tags
Deprecated

1.17.0

see

the ERF() method in the Engineering\Erf class instead

Return values
float|string

ERFPRECISE()

ERFPRECISE.

public static ERFPRECISE( $limit : float ) : float|string

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

Excel Function: ERF.PRECISE(limit)

Parameters
$limit : float

bound for integrating ERF

Tags
Deprecated

1.17.0

see

the ERFPRECISE() method in the Engineering\Erf class instead

Return values
float|string

ERFC()

ERFC.

public static ERFC( $x : float ) : float|string

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)

Parameters
$x : float

The lower bound for integrating ERFC

Tags
Deprecated

1.17.0

see

the ERFC() method in the Engineering\ErfC class instead

Return values
float|string

getConversionGroups()

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

public static getConversionGroups( ) : array
Tags
Deprecated

1.16.0

see

the getConversionCategories() method in the Engineering\ConvertUOM class instead

Return values
array

getConversionGroupUnits()

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

public static getConversionGroupUnits( [ $category : null|mixed = null ] ) : array
Parameters
$category : null|mixed = null
Tags
Deprecated

1.16.0

see

the getConversionCategoryUnits() method in the ConvertUOM class instead

Return values
array

getConversionGroupUnitDetails()

getConversionGroupUnitDetails.

public static getConversionGroupUnitDetails( [ $category : null|mixed = null ] ) : array
Parameters
$category : null|mixed = null
Tags
Deprecated

1.16.0

see

the getConversionCategoryUnitDetails() method in the ConvertUOM class instead

Return values
array

getConversionMultipliers()

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

public static getConversionMultipliers( ) : array
Tags
Deprecated

1.16.0

see

the getConversionMultipliers() method in the ConvertUOM class instead

Return values
array —

of mixed

getBinaryConversionMultipliers()

getBinaryConversionMultipliers.

public static getBinaryConversionMultipliers( ) : array

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

Tags
Deprecated

1.16.0

see

the getBinaryConversionMultipliers() method in the ConvertUOM class instead

Return values
array —

of mixed

CONVERTUOM()

CONVERTUOM.

public static CONVERTUOM( $value : float|int , $fromUOM : string , $toUOM : string ) : float|string

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)

Parameters
$value : float|int

the value in fromUOM to convert

$fromUOM : string

the units for value

$toUOM : string

the units for the result

Tags
Deprecated

1.16.0

see

the CONVERT() method in the ConvertUOM class instead

Return values
float|string

Search results