# Add-in Functions, List of Analysis Functions Part One

The Add-in functions are supplied by the UNO com.sun.star.sheet.addin.Analysis service.

## DEC2BIN

The result is the binary number for the decimal number entered between -512 and 511.

DEC2BIN(Number [; Places])

Number: the decimal number. If \<emph\>Number\</emph\> is negative, the function returns a binary number with 10 characters. The most significant bit is the sign bit, the other 9 bits return the value.

Places: the number of places to be output.

=DEC2BIN(100;8) returns 01100100.

## BIN2OCT

The result is the octal number for the binary number entered.

BIN2OCT(Number [; Places])

Number: the binary number. The number can have a maximum of 10 places (bits). The most significant bit is the sign bit. Negative numbers are entered as two's complement.

Places: the number of places to be output.

=BIN2OCT(1100100;4) returns 0144.

## BESSELJ

Calculates the Bessel function of the first kind Jn(x) (cylinder function).

BESSELJ(x;n)

x: the value on which the function will be calculated.

N is a positive integer (N >= 0) representing the order of the Bessel function Jn(x)

=BESSELJ(3.45, 4), returns 0.196772639864984

=BESSELJ(3.45, 4.333), returns 0.196772639864984, same as above because the fractional part of N is ignored.

=BESSELJ(-1, 3), returns -0.019563353982668

## BESSELY

Calculates the Bessel function of the second kind Yn(x).

BESSELY(x;n)

X is the strictly positive value (X > 0) on which the function will be calculated.

N is a positive integer (N >= 0) representing the order of the Bessel function Yn(x)

=BESSELY(3.45, 4), returns -0.679848116844476

=BESSELY(3.45, 4.333), returns -0.679848116844476, same as above because the fractional part of N is ignored.

=BESSELY(0, 3), returns Err:502 – invalid argument (X=0)

\<bookmark_value\>Bessel functions\</bookmark_value\>## BESSELI

Calculates the modified Bessel function of the first kind In(x).

BESSELI(x;n)

x: the value on which the function will be calculated.

N is a positive integer (N >= 0) representing the order of the Bessel function In(x)

=BESSELI(3.45, 4), returns 0.651416873060081

=BESSELI(3.45, 4.333), returns 0.651416873060081, same as above because the fractional part of N is ignored.

=BESSELI(-1, 3), returns -0.022168424924332

## BESSELK

Calculates the modified Bessel function of the second kind Kn(x).

BESSELK(x;n)

X is the strictly positive value (X > 0) on which the function will be calculated.

N is a positive integer (N >= 0) representing the order of the Bessel function Kn(x)

=BESSELK(3.45, 4), returns 0.144803466373734

=BESSELK(3.45, 4.333), returns 0.144803466373734, same as above because the fractional part of N is ignored.

=BESSELK(0, 3), returns Err:502 – invalid argument (X=0)

\<bookmark_value\>ERFC function\</bookmark_value\>## ERFC

Returns complementary values of the Gaussian error integral between x and infinity.

ERFC(Lower limit)

Lower limit; lower limit of integral

=ERFC(1) returns 0.157299.

\<bookmark_value\>ERFC function\</bookmark_value\>## ERFC.PRECISE

Returns complementary values of the Gaussian error integral between x and infinity.

ERFC.PRECISE(LowerLimit)

Lower limit; lower limit of integral

=ERFC.PRECISE(1) returns 0.157299.

## ERF.PRECISE

Returns values of the Gaussian error integral between 0 and the given limit.

ERF.PRECISE(LowerLimit)

LowerLimit is the limit of the integral. The calculation takes place between 0 and this limit.

=ERF.PRECISE(1) returns 0.842701.

## ERF

Returns values of the Gaussian error integral.

ERF(LowerLimit [; UpperLimit])

Lower limit; lower limit of integral.

UpperLimit is optional. It is the upper limit of the integral. If this value is missing, the calculation takes place between 0 and the lower limit.

=ERF(0;1) returns 0.842701.

## GESTEP

The result is 1 if Number is greater than or equal to Step.

GESTEP(Number [; Step])

=GESTEP(5;1) returns 1.

## DELTA

The result is TRUE (1) if both numbers, which are delivered as an argument, are equal, otherwise it is FALSE (0).

DELTA(Number1 [; Number2])

=DELTA(1;2) returns 0.

## HEX2BIN

The result is the binary number for the hexadecimal number entered.

HEX2BIN(Number [; Places])

Number is a hexadecimal number or a string that represents a hexadecimal number. It can have a maximum of 10 places. The most significant bit is the sign bit, the following bits return the value. Negative numbers are entered as two's complement.

Places: the number of places to be output.

=HEX2BIN("6a";8) returns 01101010.

## BIN2DEC

The result is the decimal number for the binary number entered.

BIN2DEC (Number)

Number: the binary number. The number can have a maximum of 10 places (bits). The most significant bit is the sign bit. Negative numbers are entered as two's complement.

=BIN2DEC(1100100) returns 100.

## HEX2DEC

The result is the decimal number for the hexadecimal number entered.

HEX2DEC(Number)

Number is a hexadecimal number or a string that represents a hexadecimal number. It can have a maximum of 10 places. The most significant bit is the sign bit, the following bits return the value. Negative numbers are entered as two's complement.

=HEX2DEC("6a") returns 106.

## BIN2HEX

The result is the hexadecimal number for the binary number entered.

BIN2HEX(Number [; Places])

Number: the binary number. The number can have a maximum of 10 places (bits). The most significant bit is the sign bit. Negative numbers are entered as two's complement.

Places: the number of places to be output.

=BIN2HEX(1100100;6) returns 000064.

## DEC2HEX

The result is the hexadecimal number for the decimal number entered.

DEC2HEX(Number [; Places])

Number: the decimal number. If \<emph\>Number\</emph\> is negative, the function returns a hexadecimal number with 10 characters (40 bits). The most significant bit is the sign bit, the other 39 bits return the value.

Places: the number of places to be output.

=DEC2HEX(100;4) returns 0064.

## DEC2OCT

The result is the octal number for the decimal number entered.

DEC2OCT(Number [; Places])

Number: the decimal number. If \<emph\>Number\</emph\> is negative, the function returns an octal number with 10 characters (30 bits). The most significant bit is the sign bit, the other 29 bits return the value.

Places: the number of places to be output.

=DEC2OCT(100;4) returns 0144.

## HEX2OCT

The result is the octal number for the hexadecimal number entered.

HEX2OCT(Number [; Places])

Number is a hexadecimal number or a string that represents a hexadecimal number. It can have a maximum of 10 places. The most significant bit is the sign bit, the following bits return the value. Negative numbers are entered as two's complement.

Places: the number of places to be output.

=HEX2OCT("6a";4) returns 0152.