Add-in Functions, List of Analysis Functions Part Two/text/scalc/01/04060116.xhpimaginary numbers in analysis functionscomplex numbers in analysis functionsAdd-in Functions, List of Analysis Functions Part TwoCategory StatisticsAnalysis Functions Part OneBack to the OverviewIMABS functionIMABSThe result is the absolute value of a complex number.SyntaxIMABS("ComplexNumber")ComplexNumber is a complex number that is entered in the form "x+yi" or "x+yj".
no blanks allowed, see i82522Example=IMABS("5+12j") returns 13.IMAGINARY functionIMAGINARYThe result is the imaginary coefficient of a complex number.SyntaxIMAGINARY("ComplexNumber")Example=IMAGINARY("4+3j") returns 3.IMPOWER functionIMPOWERThe result is the integer power of a complex number.SyntaxIMPOWER("ComplexNumber"; Number)Number is the exponent.Example=IMPOWER("2+3i";2) returns -5+12i.IMARGUMENT functionIMARGUMENTThe result is the argument (the phi angle) of a complex number.SyntaxIMARGUMENT("ComplexNumber")Example=IMARGUMENT("3+4j") returns 0.927295.IMCOS functionIMCOSThe result is the cosine of a complex number.SyntaxIMCOS("ComplexNumber")Example=IMCOS("3+4j") returns -27.03-3.85j (rounded).IMCOSH functionIMCOSHThe result is the hyberbolic cosine of a complex number.SyntaxIMCOSH("ComplexNumber")Example=IMCOSH("3+4j") returns -6.58066304-7.58155274j (rounded).IMCOT functionIMCOTThe result is the cotangent of a complex number.SyntaxIMCOT("ComplexNumber")Example=IMCOT("3+4j") returns -0.00018759-1.00064439j (rounded).IMCSC functionIMCSCThe result is the cosecant of a complex number.SyntaxIMCSC("ComplexNumber")Example=IMCSC("3+4j") returns 0.00517447+0.03627589j (rounded).IMCSCH functionIMCSCHThe result is the hyperbolic cosecant of a complex number.SyntaxIMCSCH("ComplexNumber")Example=IMCSCH("3+4j") returns -1.30632891+1.51251400j (rounded). IMDIV functionIMDIVThe result is the division of two complex numbers.SyntaxIMDIV("Numerator"; "Denominator")Numerator, Denominator are complex numbers that are entered in the form "x+yi" or "x+yj".Example=IMDIV("-238+240i";"10+24i") returns 5+12i.IMEXP functionIMEXPThe result is the power of e and the complex number. The constant e has a value of approximately 2.71828182845904.SyntaxIMEXP("ComplexNumber")Example=IMEXP("1+j") returns 1.47+2.29j (rounded).IMCONJUGATE functionIMCONJUGATEThe result is the conjugated complex complement to a complex number.SyntaxIMCONJUGATE("ComplexNumber")Example=IMCONJUGATE("1+j") returns 1-j.IMLN functionIMLNThe result is the natural logarithm (to the base e) of a complex number. The constant e has a value of approximately 2.71828182845904.SyntaxIMLN("ComplexNumber")Example=IMLN("1+j") returns 0.35+0.79j (rounded).IMLOG10 functionIMLOG10The result is the common logarithm (to the base 10) of a complex number.SyntaxIMLOG10("ComplexNumber")Example=IMLOG10("1+j") returns 0.15+0.34j (rounded).IMLOG2 functionIMLOG2The result is the binary logarithm of a complex number.SyntaxIMLOG2("ComplexNumber")Example=IMLOG2("1+j") returns 0.50+1.13j (rounded).IMPRODUCT functionIMPRODUCTThe result is the product of up to 29 complex numbers.SyntaxIMPRODUCT("ComplexNumber"; "ComplexNumber1"; ...)Example=IMPRODUCT("3+4j";"5-3j") returns 27+11j.IMREAL functionIMREALThe result is the real coefficient of a complex number.SyntaxIMREAL("ComplexNumber")Example=IMREAL("1+3j") returns 1.IMSEC functionIMSECThe result is the secant of a complex number.SyntaxIMSEC("ComplexNumber")Example=IMSEC("3+4j") returns -0.03625350+0.00516434j (rounded).IMSECH functionIMSECHThe result is the hyperbolic secant of a complex number.SyntaxIMSECH("ComplexNumber")Example=IMSECH("3+4j") returns -1.30823089+1.51467895j (rounded).IMSIN functionIMSINThe result is the sine of a complex number.SyntaxIMSIN("ComplexNumber")Example=IMSIN("3+4j") returns 3.85+27.02j (rounded).IMSINH functionIMSINHThe result is the hyperbolic sine of a complex number.SyntaxIMSINH("ComplexNumber")Example=IMSINH("3+4j") returns -6.54812004-7.61923172j (rounded).IMSUB functionIMSUBThe result is the subtraction of two complex numbers.SyntaxIMSUB("ComplexNumber1"; "ComplexNumber2")Example=IMSUB("13+4j";"5+3j") returns 8+j.IMSUM functionIMSUMThe result is the sum of up to 29 complex numbers.SyntaxIMSUM("ComplexNumber1"; "ComplexNumber2"; ...)Example=IMSUM("13+4j";"5+3j") returns 18+7j.IMSQRT functionIMSQRTThe result is the square root of a complex number.SyntaxIMSQRT("ComplexNumber")Example=IMSQRT("3+4i") returns 2+1i.IMTAN functionIMTANThe result is the tangent of a complex number.SyntaxIMTAN("ComplexNumber")Example=IMTAN("3+4j") returns -0.00018734+0.99935599j (rounded).COMPLEX functionCOMPLEXThe result is a complex number which is returned from a real coefficient and an imaginary coefficient.SyntaxCOMPLEX(RealNum; INum; Suffix)RealNum is the real coefficient of the complex number.INum is the imaginary coefficient of the complex number.Suffix is a list of options, "i" or "j".Example=COMPLEX(3;4;"j") returns 3+4j.OCT2BIN functionconverting;octal numbers, into binary numbersmw added one entryOCT2BINThe result is the binary number for the octal number entered.SyntaxOCT2BIN(Number; Places)Number is the octal number. The number 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 is the number of places to be output.Example=OCT2BIN(3;3) returns 011.OCT2DEC functionconverting;octal numbers, into decimal numbersmw added one entryOCT2DECThe result is the decimal number for the octal number entered.SyntaxOCT2DEC(Number)Number is the octal number. The number 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.Example=OCT2DEC(144) returns 100.OCT2HEX functionconverting;octal numbers, into hexadecimal numbersmw added one entryOCT2HEX The result is the hexadecimal number for the octal number entered.SyntaxOCT2HEX(Number; Places)Number is the octal number. The number 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 is the number of places to be output.Example=OCT2HEX(144;4) returns 0064.CONVERT_ADD functionCONVERT_ADDConverts a value from one unit of measure to the corresponding value in another unit of measure. Enter the units of measures directly as text in quotation marks or as a reference. If you enter the units of measure in cells, they must correspond exactly with the following list which is case sensitive: For example, in order to enter a lower case l (for liter) in a cell, enter the apostrophe ' immediately followed by l.
Each unit of measure can be preceded by a prefix character from the following list:
Permitted prefix characters10^(<0)d, c, m, u, n, p, f, a, z, y10^(>0)e, h, k, M, G, T, P, E, Z, YInformation units "bit" and "byte" may also be prefixed by one of the following IEC 60027-2 / IEEE 1541 prefixes:ki kibi 1024Mi mebi 1048576Gi gibi 1073741824Ti tebi 1099511627776Pi pebi 1125899906842620Ei exbi 1152921504606850000Zi zebi 1180591620717410000000Yi yobi 1208925819614630000000000
SyntaxCONVERT_ADD(Number; "FromUnit"; "ToUnit")Number is the number to be converted.FromUnit is the unit from which conversion is taking place.ToUnit is the unit to which conversion is taking place. Both units must be of the same type.Current list of CONVERT_ADD units in the OpenOffice.org Wiki.Examples=CONVERT_ADD(10;"HP";"PS") returns, rounded to two decimal places, 10.14. 10 HP equal 10.14 PS.=CONVERT_ADD(10;"km";"mi") returns, rounded to two decimal places, 6.21. 10 kilometers equal 6.21 miles. The k is the permitted prefix character for the factor 10^3.FACTDOUBLE functionfactorials;numbers with increments of twomw added one entryFACTDOUBLEReturns the double factorial of a number.SyntaxFACTDOUBLE(Number)Returns Number!!, the double factorial of Number, where Number is an integer greater than or equal to zero.For even numbers FACTDOUBLE(n) returns:2*4*6*8* ... *nFor odd numbers FACTDOUBLE(n) returns:1*3*5*7* ... *nFACTDOUBLE(0) returns 1 by definition.Example=FACTDOUBLE(5) returns 15.=FACTDOUBLE(6) returns 48.=FACTDOUBLE(0) returns 1.see also FACT, MULTINOMIAL, PRODUCT