Engineering Functions¶
This contains the list of engineering functions that are currently supported by Codcel.
B¶
BESSELI¶
Calculates the modified Bessel function of the first kind.
-
Purpose: This function is used in engineering and mathematical computations to solve problems involving modified Bessel differential equations of the first kind.
-
Formula:
BESSELI(x, n)xis the value at which to evaluate the Bessel function.nis the order of the Bessel function.
-
Example Usage:
=BESSELI(3.5, 2)calculates the modified Bessel function of the first kind forx = 3.5and ordern = 2.=BESSELI(A1, A2)computes the modified Bessel function using cell references, whereA1is the value forxandA2is the ordern.
BESSELJ¶
Calculates the Bessel function of the first kind.
-
Purpose: This function is used in engineering and mathematical computations to solve problems involving Bessel differential equations of the first kind.
-
Formula:
BESSELJ(x, n) xis the value at which to evaluate the Bessel function.-
nis the order of the Bessel function. -
Example Usage:
=BESSELJ(3.5, 2)calculates the Bessel function of the first kind forx = 3.5and ordern = 2.=BESSELJ(A1, A2)computes the Bessel function using cell references, whereA1is the value forxandA2is the ordern.
BESSELK¶
Calculates the modified Bessel function of the second kind.
-
Purpose: This function is used in engineering and mathematical computations to solve problems involving modified Bessel differential equations of the second kind.
-
Formula:
BESSELK(x, n) xis the value at which to evaluate the Bessel function.-
nis the order of the Bessel function. -
Example Usage:
=BESSELK(3.5, 2)calculates the modified Bessel function of the second kind forx = 3.5and ordern = 2.=BESSELK(A1, A2)computes the modified Bessel function using cell references, whereA1is the value forxandA2is the ordern.
BESSELY¶
Calculates the Bessel function of the second kind.
-
Purpose: This function is used in engineering and mathematical computations to solve problems involving Bessel differential equations of the second kind.
-
Formula:
BESSELY(x, n) xis the value at which to evaluate the Bessel function.-
nis the order of the Bessel function. -
Example Usage:
=BESSELY(3.5, 2)calculates the Bessel function of the second kind forx = 3.5and ordern = 2.=BESSELY(A1, A2)computes the Bessel function using cell references, whereA1is the value forxandA2is the ordern.
BIN2DEC¶
Converts a binary number to its decimal equivalent.
-
Purpose: This function is used to convert a binary (base-2) number into its decimal (base-10) equivalent, which is commonly used in engineering, mathematics, and computing.
-
Formula:
BIN2DEC(text) -
textis the binary string that you want to convert to a decimal number. The binary string can have up to 10 characters (0s and 1s) and may represent either positive or negative numbers using two's complement representation. -
Example Usage:
=BIN2DEC("1101")converts the binary number1101into the decimal value13.=BIN2DEC("1111111111")converts the binary number1111111111into the decimal value-1(two's complement).
BIN2HEX¶
Converts a binary number to its hexadecimal equivalent.
-
Purpose: This function is used to convert a binary (base-2) number into its hexadecimal (base-16) equivalent, commonly used in computing and engineering.
-
Formula:
BIN2HEX(text, [places]) textis the binary string that you want to convert to a hexadecimal number. The binary string can have up to 10 characters (0s and 1s).-
places(optional): Specifies the number of characters in the hexadecimal result. If the result has fewer characters than the value specified, leading zeroes are added. If omitted, Excel uses the minimum number of characters necessary. -
Example Usage:
=BIN2HEX("1101")converts the binary number1101into the hexadecimal valueD.=BIN2HEX("1111111101")converts the binary number1111111101into the hexadecimal value3FD(two's complement for negative numbers).
BIN2OCT¶
Converts a binary number to its octal equivalent.
-
Purpose: This function is used to convert a binary (base-2) number into its octal (base-8) equivalent, commonly used in computing and engineering.
-
Formula:
BIN2OCT(text, [places]) textis the binary string that you want to convert to an octal number. The binary string can have up to 10 characters (0s and 1s).-
places(optional): Specifies the number of characters in the octal result. If the result has fewer characters than the value specified, leading zeroes are added. If omitted, Excel uses the minimum number of characters necessary. -
Example Usage:
=BIN2OCT("1101")converts the binary number1101into the octal value15.=BIN2OCT("1111111101")converts the binary number1111111101into the octal value7775(two's complement for negative numbers).
BITAND¶
Performs a bitwise AND operation on two numbers.
-
Purpose: This function is used to perform a bitwise AND operation, often used in engineering, computing, and digital logic design.
-
Formula:
BITAND(number1, number2) number1is the first non-negative integer.-
number2is the second non-negative integer. -
Example Usage:
=BITAND(5, 3)computes the bitwise AND of the numbers5(101in binary) and3(011in binary), resulting in1(001in binary).=BITAND(A1, A2)computes the bitwise AND operation using cell references, whereA1andA2are non-negative integers.
BITLSHIFT¶
Performs a bitwise left shift operation on a number.
-
Purpose: This function is used to perform a bitwise left shift operation, often applied in engineering, computing, and digital logic.
-
Formula:
BITLSHIFT(number, shift_amount) numberis the non-negative integer to be shifted.-
shift_amountis the number of positions to shift the bits to the left. Non-negative integer values are expected. If theshift_amountis 0, the function returns the original number. -
Example Usage:
=BITLSHIFT(5, 2)computes a bitwise left shift of the number5(101in binary), shifting it2positions to the left, resulting in20(10100in binary).=BITLSHIFT(A1, A2)computes the bitwise left shift operation using cell references, whereA1is the number to shift, andA2is the shift amount.
BITOR¶
Performs a bitwise OR operation on two numbers.
-
Purpose: This function is used to perform a bitwise OR operation, often used in engineering, computing, and digital logic design.
-
Formula:
BITOR(number1, number2) number1is the first non-negative integer.-
number2is the second non-negative integer. -
Example Usage:
=BITOR(5, 3)computes the bitwise OR of the numbers5(101in binary) and3(011in binary), resulting in7(111in binary).=BITOR(A1, A2)computes the bitwise OR operation using cell references, whereA1andA2are non-negative integers.
BITRSHIFT¶
Performs a bitwise right shift operation on a number.
-
Purpose: This function is used to perform a bitwise right shift operation, often applied in engineering, computing, and digital logic.
-
Formula:
BITRSHIFT(number, shift_amount) numberis the non-negative integer to be shifted.-
shift_amountis the number of positions to shift the bits to the right. Non-negative integer values are expected. If theshift_amountis 0, the function returns the original number. -
Example Usage:
=BITRSHIFT(20, 2)computes a bitwise right shift of the number20(10100in binary), shifting it2positions to the right, resulting in5(101in binary).=BITRSHIFT(A1, A2)computes the bitwise right shift operation using cell references, whereA1is the number to shift, andA2is the shift amount.
BITXOR¶
Performs a bitwise XOR operation on two numbers.
-
Purpose: This function is used to perform a bitwise XOR operation, often used in engineering, computing, and digital logic design.
-
Formula:
BITXOR(number1, number2) number1is the first non-negative integer.-
number2is the second non-negative integer. -
Example Usage:
=BITXOR(5, 3)computes the bitwise XOR of the numbers5(101in binary) and3(011in binary), resulting in6(110in binary).=BITXOR(A1, A2)computes the bitwise XOR operation using cell references, whereA1andA2are non-negative integers.
DEC2BIN¶
Converts a decimal number to its binary equivalent.
-
Purpose: This function is used to convert a decimal (base-10) number into its binary (base-2) equivalent, commonly used in computing and digital logic.
-
Formula:
DEC2BIN(number, [places]) numberis the decimal integer you want to convert to binary. It can be a positive or negative value.-
places(optional): Specifies the number of characters in the binary result.
If the result has fewer characters than the value specified, leading zeroes are added.
If omitted, the function uses the minimum number of characters necessary. -
Example Usage:
=DEC2BIN(13)converts the decimal number13into the binary value1101.=DEC2BIN(-1)converts the decimal number-1into the binary value1111111111(two's complement representation with a width of 10 bits).=DEC2BIN(13, 8)converts the decimal number13into the binary value00001101, ensuring the result has 8 characters.
DEC2HEX¶
Converts a decimal number to its hexadecimal equivalent.
-
Purpose: This function is used to convert a decimal (base-10) number into its hexadecimal (base-16) equivalent, commonly used in computing and engineering.
-
Formula:
DEC2HEX(number, [places]) numberis the decimal integer you want to convert to hexadecimal. It can be a positive or negative value.-
places(optional): Specifies the number of characters in the hexadecimal result.
If the result has fewer characters than the value specified, leading zeroes are added.
If omitted, the function uses the minimum number of characters necessary. -
Example Usage:
=DEC2HEX(255)converts the decimal number255into the hexadecimal valueFF.=DEC2HEX(-1)converts the decimal number-1into the hexadecimal valueFFFFFFFF(two's complement representation with a width of 32 bits by default).=DEC2HEX(255, 4)converts the decimal number255into the hexadecimal value00FF, ensuring the result has 4 characters.
DEC2OCT¶
Converts a decimal number to its octal equivalent.
-
Purpose: This function is used to convert a decimal (base-10) number into its octal (base-8) equivalent, commonly used in computing and engineering.
-
Formula:
DEC2OCT(number, [places]) numberis the decimal integer you want to convert to octal. It can be a positive or negative value.-
places(optional): Specifies the number of characters in the octal result.
If the result has fewer characters than the value specified, leading zeroes are added.
If omitted, the function uses the minimum number of characters necessary. -
Example Usage:
=DEC2OCT(10)converts the decimal number10into the octal value12.=DEC2OCT(-1)converts the decimal number-1into the octal value7777777777(two's complement representation with a width of 10 bits).=DEC2OCT(8, 4)converts the decimal number8into the octal value0010, ensuring the result has 4 characters.
DELTA¶
Checks whether two numbers are equal, returning 1 if they are equal and 0 otherwise.
-
Purpose: This function is used to compare two numbers and check if they are equal, commonly used in engineering, computing, and mathematical calculations.
-
Formula:
DELTA(number1, number2) number1is the first number to compare.-
number2is the second number to compare. If omitted, the default value is0. -
Behavior:
- Returns
1ifnumber1equalsnumber2. -
Returns
0otherwise. -
Example Usage:
=DELTA(5, 5)returns1because the numbers are equal.=DELTA(5, 3)returns0because the numbers are not equal.=DELTA(5)returns0because5is not equal to the default value of0.
ERF¶
Calculates the error function (ERF) of a number.
-
Purpose: This function is used to compute the error function, which is commonly used in probability, statistics, and partial differential equations.
-
Formula:
ERF(lower_limit, [upper_limit]) lower_limitis the lower bound of the integral for calculating the error function.-
upper_limit(optional) is the upper bound of the integral.
If omitted, the error function is calculated from0tolower_limit. -
Behavior:
- If both
lower_limitandupper_limitare provided, the function calculates the integral of the Gaussian probability density function between the two bounds. -
If
upper_limitis omitted, the function defaults to calculatingERFfrom0tolower_limit. -
Example Usage:
=ERF(1)calculates the error function from0to1, resulting in approximately0.8427.=ERF(1, 2)calculates the error function from1to2, resulting in approximately0.1359.=ERF(-1)calculates the error function from0to-1, resulting in approximately-0.8427.
ERFPRECISE¶
Calculates the precise error function (ERF) of a number with a higher degree of accuracy.
-
Purpose: This function is used to compute the error function with higher precision, commonly used in probability, statistics, and mathematical calculations requiring greater accuracy.
-
Formula:
ERF.PRECISE(number) -
numberis the point at which the error function needs to be evaluated. -
Example Usage:
=ERF.PRECISE(1)calculates the error function at1, resulting in approximately0.8427with higher precision.=ERF.PRECISE(-1)calculates the error function at-1, resulting in approximately-0.8427with higher precision.=ERF.PRECISE(2)calculates the error function at2, resulting in approximately0.9953with higher precision.
ERFC¶
Calculates the complementary error function (ERFC) of a number.
-
Purpose: This function is used to compute the complementary error function, which is commonly used in probability, statistics, and mathematical calculations.
-
Formula:
ERFC(number) -
numberis the point at which the complementary error function needs to be evaluated. -
Behavior:
-
The complementary error function is defined as
1 - ERF(number). -
Example Usage:
=ERFC(1)calculates the complementary error function at1, resulting in approximately0.1573.=ERFC(-1)calculates the complementary error function at-1, resulting in approximately1.8427.=ERFC(2)calculates the complementary error function at2, resulting in approximately0.0047.
ERFC.PRECISE¶
Calculates the complementary error function (ERFC) of a number with a higher degree of accuracy.
-
Purpose: This function is used to compute the complementary error function with higher precision, commonly used in probability, statistics, and mathematical calculations requiring greater accuracy.
-
Formula:
ERFC.PRECISE(number) -
numberis the point at which the complementary error function needs to be evaluated. -
Example Usage:
=ERFC.PRECISE(1)calculates the complementary error function at1, resulting in approximately0.1573with higher precision.=ERFC.PRECISE(-1)calculates the complementary error function at-1, resulting in approximately1.8427with higher precision.=ERFC.PRECISE(2)calculates the complementary error function at2, resulting in approximately0.0047with higher precision.
G¶
GESTEP¶
Returns 1 if a number is greater than or equal to a step value, and 0 otherwise.
-
Purpose: This function is used to test whether a number is greater than or equal to a specified step value. It is commonly used in logical comparisons and engineering calculations.
-
Formula:
GESTEP(number, [step]) numberis the value to test.-
step(optional) is the threshold value for comparison. If omitted, the default value is0. -
Behavior:
- Returns
1ifnumberis greater than or equal tostep. -
Returns
0otherwise. -
Example Usage:
=GESTEP(5, 3)returns1because5is greater than or equal to3.=GESTEP(2, 5)returns0because2is not greater than or equal to5.=GESTEP(0)returns1because0is greater than or equal to the defaultstepvalue of0.
H¶
HEX2BIN¶
Converts a hexadecimal number to its binary equivalent.
-
Purpose: This function is used to convert a hexadecimal (base-16) number into its binary (base-2) equivalent, commonly used in computing and engineering.
-
Formula:
HEX2BIN(number, [places]) numberis the hexadecimal value you want to convert to binary. It can be a positive or negative value.-
places(optional): Specifies the number of characters in the binary result.
If the result has fewer characters than the value specified, leading zeroes are added.
If omitted, the function uses the minimum number of characters necessary. -
Example Usage:
=HEX2BIN("F")converts the hexadecimal valueFinto the binary value1111.=HEX2BIN("F", 8)converts the hexadecimal valueFinto the binary value00001111, ensuring the result has 8 characters.=HEX2BIN("2A", 16)converts the hexadecimal value2Ainto the binary value0000000000101010, ensuring the result has 16 characters.
HEX2DEC¶
Converts a hexadecimal number to its decimal equivalent.
-
Purpose: This function is used to convert a hexadecimal (base-16) number into its decimal (base-10) equivalent, commonly used in computing and engineering.
-
Formula:
HEX2DEC(number) -
numberis the hexadecimal value you want to convert to decimal. It can be a positive or negative value. -
Example Usage:
=HEX2DEC("F")converts the hexadecimal valueFinto the decimal value15.=HEX2DEC("2A")converts the hexadecimal value2Ainto the decimal value42.=HEX2DEC("-1F")converts the hexadecimal value-1Finto the decimal value-31.
HEX2OCT¶
Converts a hexadecimal number to its octal equivalent.
-
Purpose: This function is used to convert a hexadecimal (base-16) number into its octal (base-8) equivalent, commonly used in computing and engineering.
-
Formula:
HEX2OCT(number, [places]) numberis the hexadecimal value you want to convert to octal. It can be a positive or negative value.-
places(optional): Specifies the number of characters in the octal result.
If the result has fewer characters than the value specified, leading zeroes are added.
If omitted, the function uses the minimum number of characters necessary. -
Example Usage:
=HEX2OCT("F")converts the hexadecimal valueFinto the octal value17.=HEX2OCT("F", 4)converts the hexadecimal valueFinto the octal value0017, ensuring the result has 4 characters.=HEX2OCT("2A", 6)converts the hexadecimal value2Ainto the octal value000052, ensuring the result has 6 characters.
IMABS¶
Calculates the absolute value (modulus) of a complex number.
-
Purpose: This function is used to return the absolute value (or modulus) of a complex number, helpful in complex number arithmetic.
-
Formula:
IMABS(inumber) -
inumberis the complex number for which you want the absolute value. It can be in the formx+yiorx+yj. -
Example Usage:
=IMABS("3+4i")returns5, since the modulus of3 + 4iis√(3² + 4²) = 5.=IMABS("-3-4i")returns5because the modulus depends only on the magnitude, not the sign.=IMABS("0+2i")returns2, as it's the distance of2ifrom0.
IMARGUMENT¶
Calculates the argument (angle in radians) of a complex number.
-
Purpose: This function is used to calculate the angle (in radians) formed by a complex number in the complex plane with respect to the positive real axis. It is commonly used in engineering, physics, and mathematics when working with complex numbers.
-
Formula:
IMARGUMENT(inumber) -
inumberis the complex number for which you want to calculate the argument. It can be in the formx+yiorx+yj. -
Example Usage:
=IMARGUMENT("1+i")returns approximately0.7854, which isπ/4, as it forms a 45-degree angle.=IMARGUMENT("-1-i")returns approximately-2.3562, which is-3π/4.=IMARGUMENT("0+1i")returns1.5708, which isπ/2as it lies on the positive imaginary axis.=IMARGUMENT("3")returns0, as it lies on the positive real axis.
IMCONJUGATE¶
Calculates the complex conjugate of a complex number.
-
Purpose: This function is used to return the complex conjugate of a complex number, where the sign of the imaginary part is reversed. Useful in various applications involving complex number arithmetic.
-
Formula:
IMCONJUGATE(inumber) -
inumberis the complex number for which you want the conjugate. It can be in the formx+yiorx+yj. -
Example Usage:
=IMCONJUGATE("3+4i")returns3-4i, as the conjugate of3+4iis3-4i.=IMCONJUGATE("-2-5j")returns-2+5j, reversing the sign of the imaginary part.=IMCONJUGATE("0+2i")returns-2i, where only the imaginary part changes.=IMCONJUGATE("5")returns5, as real numbers are unchanged when conjugated.
IMCOS¶
Calculates the cosine of a complex number.
-
Purpose: This function is used to return the cosine of a complex number, helpful in engineering and mathematical calculations involving trigonometric functions of complex numbers.
-
Formula:
IMCOS(inumber) -
inumberis the complex number for which you want to calculate the cosine. It can be in the formx+yiorx+yj. -
Example Usage:
=IMCOS("0")returns1, as the cosine of0is1.=IMCOS("i")returns approximately1.5431, as the cosine ofiiscosh(1).=IMCOS("1+i")returns approximately0.83373 - 0.9889i, as the cosine is calculated using both the real and imaginary components.=IMCOS("-1-2i")returns approximately-1.5656 - 3.2979i.
IMCOSH¶
Calculates the hyperbolic cosine of a complex number.
-
Purpose: This function is used to return the hyperbolic cosine of a complex number, which is helpful in engineering and mathematical calculations involving hyperbolic functions of complex numbers.
-
Formula:
IMCOSH(inumber) -
inumberis the complex number for which you want to calculate the hyperbolic cosine. It can be in the formx+yiorx+yj. -
Example Usage:
=IMCOSH("0")returns1, as the hyperbolic cosine of0is1.=IMCOSH("i")returns approximately0.5403 + 0.0i, as the hyperbolic cosine ofiiscos(1).=IMCOSH("1+i")returns approximately0.83373 + 0.9889i, as the hyperbolic cosine is calculated using both the real and imaginary components.=IMCOSH("-1-2i")returns approximately-0.6421 - 1.0688i.
IMCOT¶
Calculates the cotangent of a complex number.
-
Purpose: This function is used to return the cotangent of a complex number, helpful in engineering and mathematical calculations involving trigonometric functions of complex numbers.
-
Formula:
IMCOT(inumber) -
inumberis the complex number for which you want to calculate the cotangent. It can be in the formx+yiorx+yj. -
Example Usage:
=IMCOT("1")returns approximately0.6421 - 0.0i, as cotangent is the reciprocal of tangent.=IMCOT("i")returns approximately0.0 - 0.7616i.=IMCOT("1+i")returns approximately0.2176 - 0.8680i, as cotangent is calculated using both the real and imaginary components.=IMCOT("-1-2i")returns approximately-0.0338 + 0.0753i.
IMCSC¶
Calculates the cosecant of a complex number.
-
Purpose: This function is used to return the cosecant (reciprocal of sine) of a complex number, helpful in engineering and mathematical calculations involving trigonometric functions of complex numbers.
-
Formula:
IMCSC(inumber) -
inumberis the complex number for which you want to calculate the cosecant. It can be in the formx+yiorx+yj. -
Example Usage:
=IMCSC("1")returns approximately1.1884 + 0.0i, as cosecant is the reciprocal of sine.=IMCSC("i")returns approximately0.0 - 0.8509i.=IMCSC("1+i")returns approximately0.6215 - 0.3039i, as the cosecant is calculated using the reciprocal of sine for both the real and imaginary components.=IMCSC("-1-2i")returns approximately-0.2284 - 0.1414i.
IMCSCH¶
Calculates the hyperbolic cosecant of a complex number.
-
Purpose: This function is used to return the hyperbolic cosecant (reciprocal of hyperbolic sine) of a complex number, helpful in engineering and mathematical calculations involving hyperbolic functions of complex numbers.
-
Formula:
IMCSCH(inumber) -
inumberis the complex number for which you want to calculate the hyperbolic cosecant. It can be in the formx+yiorx+yj. -
Example Usage:
=IMCSCH("1")returns approximately0.8509 - 0.0i, as hyperbolic cosecant is the reciprocal of hyperbolic sine.=IMCSCH("i")returns approximately0.0 - 1.1884i.=IMCSCH("1+i")returns approximately0.3039 - 0.6215i, calculated as the reciprocal of the hyperbolic sine of both real and imaginary components.=IMCSCH("-1-2i")returns approximately-0.1414 - 0.2284i.
IMDIV¶
Calculates the quotient of two complex numbers.
-
Purpose: This function is used to divide one complex number by another, useful in various engineering, physics, and mathematics applications involving complex number arithmetic.
-
Formula:
IMDIV(inumber1, inumber2) inumber1is the complex number you want to divide (numerator). It can be in the formx+yiorx+yj.inumber2is the complex number you want to divide by (denominator). It can be in the formx+yiorx+yj.-
The formula for dividing complex numbers is:
-
Example Usage:
=IMDIV("3+4i", "1+i")returns3.5 + 0.5i, dividing3+4iby1+i.=IMDIV("1", "2+i")returns approximately0.4 - 0.2i.=IMDIV("0+2i", "3+4i")returns approximately0.32 + 0.24i, dividing purely imaginary numbers.=IMDIV("4", "0+i")returns0 - 4i, dividing a real number by an imaginary number.=IMDIV("2+i", "0")returns an error, as division by zero is undefined.
IMEXP¶
Calculates the exponential of a complex number.
-
Purpose: This function is used to compute the exponential of a complex number, which is often required in engineering, physics, and mathematics for dealing with growth processes or oscillatory phenomena.
-
Formula:
IMEXP(inumber) inumberis the complex number for which you want to calculate the exponential. It can be in the formx+yiorx+yj.-
The formula for the exponential of a complex number is:
-
Example Usage:
=IMEXP("0")returns1, ase^0 = 1.=IMEXP("1")returns approximately2.7183, ase^1 = 2.7183.=IMEXP("i")returns approximately0.5403 + 0.8415i, ase^(i) = cos(1) + i*sin(1).=IMEXP("1+i")returns approximately1.4687 + 2.2874i, using the formula to calculate both real and imaginary components.=IMEXP("-1-2i")returns approximately-0.0677 - 0.2441i, using the same formula for exponential.
IMLN¶
Calculates the natural logarithm of a complex number.
-
Purpose: This function is used to compute the natural logarithm of a complex number, commonly used in engineering, physics, and mathematical applications.
-
Formula:
IMLN(inumber) inumberis the complex number for which you want to calculate the natural logarithm. It can be in the formx+yiorx+yj.-
The formula to calculate the natural logarithm of a complex number is:
Where:ln|a + bi|is the natural logarithm of the magnitude:ln(sqrt(a² + b²))arg(a + bi)is the argument (angle) of the complex number:atan2(b, a)
-
Example Usage:
=IMLN("1")returns0, asln(1) = 0.=IMLN("i")returns approximately0 + 1.5708i, as the magnitude is 1 and the angle is π/2 radians.=IMLN("1+i")returns approximately0.3466 + 0.7854i, calculated using the formula.=IMLN("-1-2i")returns approximately0.8047 - 2.0344i, using the natural logarithm formula.
IMLOG10¶
Calculates the base-10 logarithm of a complex number.
-
Purpose: This function is used to compute the logarithm with base 10 of a complex number, which is useful in engineering, physics, and mathematical applications where log scales are required.
-
Formula:
IMLOG10(inumber) inumberis the complex number for which you want to calculate the base-10 logarithm. It can be in the formx+yiorx+yj.-
The formula for the base-10 logarithm of a complex number is:
Whereln(10)is the natural logarithm of 10 (approximately 2.3026). -
Example Usage:
=IMLOG10("1")returns0, aslog10(1) = 0.=IMLOG10("10")returns1, aslog10(10) = 1.=IMLOG10("i")returns approximately0 + 0.6822i, calculated using the formula.=IMLOG10("1+i")returns approximately0.1505 + 0.3411i, using the base-10 logarithm formula.=IMLOG10("-1-2i")returns approximately0.3490 - 0.8826i, using the same formula.
IMLOG2¶
Calculates the base-2 logarithm of a complex number.
-
Purpose: This function is used to compute the logarithm with base 2 of a complex number, which is useful in engineering, physics, and mathematical applications involving binary logarithmic scales.
-
Formula:
IMLOG2(inumber) inumberis the complex number for which you want to calculate the base-2 logarithm. It can be in the formx+yiorx+yj.-
The formula for the base-2 logarithm of a complex number is:
Whereln(2)is the natural logarithm of 2 (approximately 0.6931). -
Example Usage:
=IMLOG2("1")returns0, aslog2(1) = 0.=IMLOG2("2")returns1, aslog2(2) = 1.=IMLOG2("i")returns approximately0 + 2.2662i, calculated using the formula.=IMLOG2("1+i")returns approximately0.5000 + 1.1331i, using the base-2 logarithm formula.=IMLOG2("-1-2i")returns approximately1.1590 - 2.9374i, using the same formula.
IMPOWER¶
Raises a complex number to a given power.
-
Purpose: This function is used to calculate the result of raising a complex number to a given power, which is common in engineering, physics, and mathematical applications.
-
Formula:
IMPOWER(inumber, power) inumberis the complex number that you want to raise to a power. It can be in the formx+yiorx+yj.poweris the power to which the complex number is raised. It can be any real number.-
The formula for raising a complex number to a power is:
Where:r = sqrt(a² + b²)is the magnitude of the complex number.θ = atan2(b, a)is the argument (angle) of the complex number.
-
Example Usage:
=IMPOWER("1+i", 2)returns0 + 2i, as(1 + i)^2 = 2i.=IMPOWER("2", 3)returns8, as2^3 = 8.=IMPOWER("0+i", 4)returns0, as raising pure imaginaryito the fourth power returns 0 due to cyclic properties of imaginary numbers.=IMPOWER("-1-2i", 3)returns approximately-11 + 2i, calculated using the power formula.
IMPRODUCT¶
Calculates the product of two or more complex numbers.
-
Purpose: This function is used to compute the product of multiple complex numbers, which is widely used in engineering, physics, and mathematical calculations involving complex arithmetic.
-
Formula:
IMPRODUCT(inumber1, [inumber2, ...]) inumber1, inumber2, ...are the complex numbers you want to multiply. Each number can be in the formx+yiorx+yj. At least one number must be provided as input.-
The general process for multiplying complex numbers
When multiplying more than two complex numbers, the multiplication is associative, so it proceeds pairwise.(a+bi)and(c+di)is: -
Example Usage:
=IMPRODUCT("1+i", "2+i")returns1 + 3i, as(1+i) * (2+i) = 1 + 3i.=IMPRODUCT("2", "3")returns6, as2 * 3 = 6.=IMPRODUCT("1+i", "0")returns0, since any number multiplied by0is0.=IMPRODUCT("i", "i")returns-1, asi * i = -1.=IMPRODUCT("-1-2i", "3+4i")returns5 - 10i, calculated using the formula for complex multiplication.
IMREAL¶
Returns the real part of a complex number.
-
Purpose: This function is used to extract the real part of a given complex number, which is useful in many engineering and mathematical calculations.
-
Formula:
IMREAL(inumber) inumberis the complex number from which you want to extract the real part. It can be in the formx+yiorx+yj.-
The real part of a complex number
a + biis simplya. -
Example Usage:
=IMREAL("3+4i")returns3, as the real part is 3.=IMREAL("-2")returns-2, as the real part is -2 (no imaginary part present).=IMREAL("0+i")returns0, as the real part is 0.=IMREAL("-1-2i")returns-1, as the real part is -1.=IMREAL("5")returns5, as the real part is 5 (no imaginary part present).
IMSEC¶
Calculates the secant of a complex number.
-
Purpose: This function computes the secant (1/cosine) of a given complex number, which is useful in engineering, physics, and mathematical applications involving trigonometric functions for complex values.
-
Formula:
IMSEC(inumber) inumberis the complex number for which you want to calculate the secant. It can be in the formx+yiorx+yj.-
The formula for the secant of a complex number is:
Where:cos(a + bi) = cos(a)cosh(b) - i*sin(a)sinh(b)cosh(b)andsinh(b)are the hyperbolic cosine and sine of the imaginary part, respectively.
-
Example Usage:
=IMSEC("0")returns1, assec(0) = 1.=IMSEC("i")returns approximately0.6481 - 0.0000i, calculated using the formula.=IMSEC("1+i")returns approximately0.4983 - 0.5911i, using the secant formula.=IMSEC("-1-2i")returns approximately-0.0417 - 0.0903i, calculated using the same formula.
IMSECH¶
Calculates the hyperbolic secant of a complex number.
-
Purpose: This function computes the hyperbolic secant (1/cosh) of a given complex number, which is useful in engineering, physics, and mathematical applications involving hyperbolic trigonometric functions for complex values.
-
Formula:
IMSECH(inumber) inumberis the complex number for which you want to calculate the hyperbolic secant. It can be in the formx+yiorx+yj.-
The formula for the hyperbolic secant of a complex number is:
Where:cosh(a + bi) = cosh(a)cos(b) + i*sinh(a)sin(b)cosh(a)andsinh(a)are the hyperbolic cosine and sine of the real part, respectively.
-
Example Usage:
=IMSECH("0")returns1, assech(0) = 1.=IMSECH("i")returns approximately0.6481 + 0.0000i, calculated using the formula.=IMSECH("1+i")returns approximately0.4983 - 0.5911i, using the hyperbolic secant formula.=IMSECH("-1-2i")returns approximately-0.0416 + 0.0903i, calculated using the same formula.
IMSIN¶
Calculates the sine of a complex number.
-
Purpose: This function computes the sine of a given complex number, which is useful in engineering, physics, and mathematical applications involving trigonometric functions for complex values.
-
Formula:
IMSIN(inumber) inumberis the complex number for which you want to calculate the sine. It can be in the formx+yiorx+yj.-
The formula for the sine of a complex number is:
Where:cosh(b)andsinh(b)are the hyperbolic cosine and sine of the imaginary part, respectively.
-
Example Usage:
=IMSIN("0")returns0, assin(0) = 0.=IMSIN("i")returns approximately0.0000 + 1.1752i, calculated using the formula.=IMSIN("1+i")returns approximately1.2985 + 0.6349i, using the sine formula.=IMSIN("-1-2i")returns approximately-3.1658 - 1.9596i, calculated using the same formula.
IMSINH¶
Calculates the hyperbolic sine of a complex number.
-
Purpose: This function computes the hyperbolic sine of a given complex number, which is useful in engineering, physics, and mathematical applications involving hyperbolic trigonometric functions for complex values.
-
Formula:
IMSINH(inumber) inumberis the complex number for which you want to calculate the hyperbolic sine. It can be in the formx+yiorx+yj.-
The formula for the hyperbolic sine of a complex number is:
Where:sinh(a)andcosh(a)are the hyperbolic sine and cosine of the real part, respectively.cos(b)andsin(b)are the cosine and sine of the imaginary part, respectively.
-
Example Usage:
=IMSINH("0")returns0, assinh(0) = 0.=IMSINH("i")returns approximately0.0000 + 0.8415i, calculated using the formula.=IMSINH("1+i")returns approximately0.6349 + 1.2985i, using the hyperbolic sine formula.=IMSINH("-1-2i")returns approximately-1.9596 - 3.1658i, calculated using the same formula.
IMSQRT¶
Calculates the square root of a complex number.
-
Purpose: This function computes the square root of a given complex number, which is useful in engineering, physics, and mathematical calculations involving complex numbers.
-
Formula:
IMSQRT(inumber) inumberis the complex number for which you want to calculate the square root. It can be in the formx+yiorx+yj.-
The formula for the square root of a complex number
Where:a + biis:|a + bi|is the modulus of the complex number, calculated assqrt(a^2 + b^2).sign(b)is1ifb >= 0, otherwise-1.
-
Example Usage:
=IMSQRT("4")returns2, assqrt(4) = 2.=IMSQRT("-4")returns0 + 2i, as the square root of-4is2i.=IMSQRT("3+4i")returns approximately2 + 1i, calculated using the square root formula.=IMSQRT("0-1i")returns approximately0.7071 - 0.7071i, using the same formula.=IMSQRT("1+i")returns approximately1.0987 + 0.4551i.
IMSUB¶
Subtracts one complex number from another.
-
Purpose: This function computes the difference between two complex numbers, which is useful in engineering, physics, and mathematical calculations involving complex numbers.
-
Formula:
IMSUB(inumber1, inumber2) inumber1is the complex number from which you want to subtract another complex number.inumber2is the complex number to subtract frominumber1.-
The formula for subtracting
Where:inumber2frominumber1is:aandbare the real and imaginary parts ofinumber1, respectively.canddare the real and imaginary parts ofinumber2, respectively.
-
Example Usage:
=IMSUB("3+4i", "1+2i")returns2 + 2i, as(3 + 4i) - (1 + 2i) = 2 + 2i.=IMSUB("3+4i", "3+4i")returns0, as the complex numbers cancel each other out.=IMSUB("-1+2i", "1-2i")returns-2 + 4i.=IMSUB("0", "1+i")returns-1 - i, as the subtraction is done directly.
IMSUM¶
Adds two or more complex numbers.
-
Purpose: This function computes the sum of two or more complex numbers, which is useful in engineering, physics, and mathematical calculations involving complex numbers.
-
Formula:
IMSUM(inumber1, inumber2, [...]) inumber1, inumber2, [...]are the complex numbers you want to add together. Each number can be in the formx+yiorx+yj.-
The formula for adding complex numbers is:
Where:a,bare the real and imaginary parts of the first complex number, respectively.c,dare the real and imaginary parts of the second complex number, respectively.x,yare the real and imaginary parts of subsequent complex numbers, respectively.
-
Example Usage:
=IMSUM("1+2i", "3+4i")returns4 + 6i, as(1 + 2i) + (3 + 4i) = 4 + 6i.=IMSUM("0", "1", "1+i")returns2 + i, as0 + 1 + (1 + i) = 2 + i.=IMSUM("-1+2i", "1-2i", "3+4i")returns3 + 4i, as(-1 + 2i) + (1 - 2i) + (3 + 4i) = 3 + 4i.=IMSUM("0")returns0, as it sums to itself when there's only one number.
IMTAN¶
Calculates the tangent of a complex number.
-
Purpose: This function computes the tangent of a given complex number, combining real and imaginary parts. It can be applied in various engineering, physics, and mathematical calculations involving complex trigonometric functions.
-
Formula:
IMTAN(inumber) inumberis the complex number for which you want to calculate the tangent. It can be in the formx+yiorx+yj.-
The formula for the tangent of a complex number is:
Where:tan(a + bi) = sin(a + bi) / cos(a + bi) = (sin(a)cosh(b) + i*cos(a)sinh(b)) / (cos(a)cosh(b) - i*sin(a)sinh(b))cosh(b)andsinh(b)are the hyperbolic cosine and sine of the imaginary part, respectively.cos(a)andsin(a)are the cosine and sine of the real part, respectively.
-
Example Usage:
=IMTAN("0")returns0, astan(0) = 0.=IMTAN("i")returns approximately0.0000 + 1.5574i, calculated using the formula.=IMTAN("1+i")returns approximately1.0839 + 0.2718i, using the tangent formula.=IMTAN("-1-2i")returns approximately0.0338 - 1.0148i, calculated using the same formula.
O¶
OCT2BIN¶
Converts an octal number to its binary equivalent.
-
Purpose: This function converts an octal (base-8) number to a binary (base-2) number. This is useful in programming, electronics, and computer science.
-
Formula:
OCT2BIN(octal_number, [places]) octal_numberis the octal number you want to convert to binary. It can be a string or a numeric value.-
places(optional) is the number of characters in the result. If the binary result is shorter, leading zeros are added. If omitted, the result uses the minimum number of characters. -
Example Usage:
=OCT2BIN("7")returns111, as7in octal is111in binary.=OCT2BIN("10")returns1000, as10(octal) is1000in binary.=OCT2BIN("10", 6)returns001000, padding with leading zeros to make the result 6 characters long.=OCT2BIN("377")returns11111111, as377(octal) is11111111in binary.=OCT2BIN("1")returns1, as1in octal is1in binary.
OCT2DEC¶
Converts an octal number to its decimal equivalent.
-
Purpose: This function converts an octal (base-8) number to a decimal (base-10) number, which is commonly used in various fields like programming, electronics, and computer science.
-
Formula:
OCT2DEC(octal_number) octal_numberis the octal number you want to convert to decimal. It can be a string or a numeric value.-
The conversion is calculated as the sum of digits in the octal number multiplied by 8 raised to their positional powers.
-
Example Usage:
=OCT2DEC("7")returns7, as7in octal is already7in decimal.=OCT2DEC("10")returns8, as10(octal) is8in decimal.=OCT2DEC("377")returns255, as377(octal) is255in decimal.=OCT2DEC("0")returns0, as0in octal is0in decimal.
OCT2HEX¶
Converts an octal number to its hexadecimal equivalent.
-
Purpose: This function converts an octal (base-8) number to a hexadecimal (base-16) number. It is commonly used in programming, electronics, and computer science.
-
Formula:
OCT2HEX(octal_number, [places]) octal_numberis the octal number you want to convert to hexadecimal. It can be a string or a numeric value.places(optional) is the number of characters in the result. If the hexadecimal result is shorter, leading zeros are added. If omitted, the result uses the minimum number of characters.-
The conversion is done by first converting the octal number to decimal, and then converting the decimal number to hexadecimal.
-
Example Usage:
=OCT2HEX("7")returns7, as7in octal is7in hexadecimal.=OCT2HEX("10")returns8, as10(octal) is8in hexadecimal.=OCT2HEX("377")returnsFF, as377(octal) is255in decimal, andFFin hexadecimal.=OCT2HEX("10", 4)returns0008, padding with leading zeros to make the result 4 characters long.=OCT2HEX("1")returns1, as1in octal is1in hexadecimal.