Difference between revisions of "Manuals/calci/COMPLEX"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 34: | Line 34: | ||
==Examples== | ==Examples== | ||
− | + | {| class="wikitable" | |
− | {| | + | |+Spreadsheet |
− | |- | + | |- |
| COMPLEX(real,imaginary,suffix) | | COMPLEX(real,imaginary,suffix) | ||
! rn | ! rn | ||
Line 48: | Line 48: | ||
|6 | |6 | ||
| | | | ||
− | |5+6i | + | | 5+6i |
|- class="even" | |- class="even" | ||
|COMPLEX(5,2,"j") | |COMPLEX(5,2,"j") | ||
Line 54: | Line 54: | ||
|2 | |2 | ||
|j | |j | ||
− | |5+2j | + | | 5+2j |
|- class="odd" | |- class="odd" | ||
|COMPLEX(2,0,"i") | |COMPLEX(2,0,"i") | ||
Line 60: | Line 60: | ||
|0 | |0 | ||
|i | |i | ||
− | |2+0i | + | | 2+0i |
|- class="even" | |- class="even" | ||
|COMPLEX(0,-4,"i") | |COMPLEX(0,-4,"i") | ||
Line 66: | Line 66: | ||
| -4 | | -4 | ||
|i | |i | ||
− | | 0 + -4i | + | | 0 + -4i |
|- class="odd" | |- class="odd" | ||
|COMPLEX(5,"j") | |COMPLEX(5,"j") | ||
Line 72: | Line 72: | ||
| | | | ||
|j | |j | ||
− | |#N/A (INVALID IMAGINARY COEFFICIENTS) | + | | #N/A (INVALID IMAGINARY COEFFICIENTS) |
|} | |} | ||
Latest revision as of 03:43, 12 October 2020
COMPLEX (Real,Imaginary,Suffix)
- is the real part of the complex number.
- is the imaginary part of the complex number.
- is the imaginary unit of the complex number.
- COMPLEX(), converts real and imaginary coefficients into a complex number.
Description
- COMPLEX function converts the real and imaginary coefficients into a complex number.
- A complex number is a combination of a real and an imaginary number.
- A number which is positive or negative, rational or irrational or decimals are called real numbers.
- An Imaginary number is a number that when squring it gives a negative result.
- For e.g. . Because a negative times a negative is positive.
- A complex number is a number is in the form , where and are real numbers and is the imaginary unit. Where
- In , here is the real part of the complex number, is the imaginary part of the complex number and is the imaginary unit of a complex number like or .
- To mention and , we must use the lower case only
- In a complex number real part is denoted by & imaginary part is denoted by .
- COMPLEX returns the error value, when and are non-numeric.
- should be either or , otherwise it shows error value.
- A Complex number whose real part is zero is said to be purely imaginary.
- A Complex number whose imaginary part is zero is a real number. In that cases we have to assign '0' for that part.
- COMPLEX(5,2) gives
- COMPLEX(5,2,"j") gives
ZOS
- The syntax is to calculate COMPLEX in ZOS is
- is the real part.
- is the imaginary part.
- is imaginary unit which is either "i" or "j".
- E.x: COMPLEX(-1..1,10..11,"j")
Examples
COMPLEX(real,imaginary,suffix) | rn | in | sf | RESULT |
---|---|---|---|---|
COMPLEX(5,6) | 5 | 6 | 5+6i | |
COMPLEX(5,2,"j") | 5 | 2 | j | 5+2j |
COMPLEX(2,0,"i") | 2 | 0 | i | 2+0i |
COMPLEX(0,-4,"i") | 0 | -4 | i | 0 + -4i |
COMPLEX(5,"j") | 5 | j | #N/A (INVALID IMAGINARY COEFFICIENTS) |
Related Videos
See Also
References