Syntax
=COMPLEX(real_num, i_num, [suffix])Arguments
| Argument | Required | Description |
|---|---|---|
real_num | Required | The real part |
i_num | Required | The imaginary part |
suffix | Optional | "i" (default) or "j" |
How to use COMPLEX
COMPLEX takes 2 required arguments and 1 optional argument. Type =COMPLEX( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=COMPLEX(3, 4)Result =COMPLEX(3, 4, "j")Result =COMPLEX(0, 1)Result Related engineering functions
- BITLSHIFTReturns a number shifted left by a number of bits (multiplied by a power of 2).
- BITORReturns the bitwise OR of two numbers.
- BITRSHIFTReturns a number shifted right by a number of bits (divided by a power of 2, rounded down).
- BITXORReturns the bitwise exclusive OR of two numbers.
- CONVERTConverts a number from one measurement unit to another, like feet to meters or Fahrenheit to Celsius.
- DEC2BINConverts a decimal number to binary.
- DEC2HEXConverts a decimal number to hexadecimal.
- DEC2OCTConverts a decimal number to octal.
- DELTAReturns 1 when two numbers are equal and 0 otherwise.