Difference between revisions of "Manuals/calci/COMPLEXNUM"
Jump to navigation
Jump to search
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <div style="font-size:30px">'''COMPLEXNUM( | + | <div style="font-size:30px">'''COMPLEXNUM(Real,Imaginary,Suffix)'''</div><br/> |
− | *<math> | + | *<math>Real</math> is the real part of the complex number. |
− | *<math> | + | *<math>Imaginary</math> is the imaginary part of the complex number. |
− | *<math> | + | *<math>Suffix</math> is the imaginary unit of the complex number. |
==Description== | ==Description== | ||
Line 13: | Line 13: | ||
*For e.g. <math>{-4}^2 =16</math>. Because a negative times a negative is positive. | *For e.g. <math>{-4}^2 =16</math>. Because a negative times a negative is positive. | ||
*A complex number is a number is in the form <math> z = a + bi</math>, where <math>a</math> and <math>b</math> are real numbers and <math>i</math> is the imaginary unit. Where <math>i=\sqrt{-1}</math> | *A complex number is a number is in the form <math> z = a + bi</math>, where <math>a</math> and <math>b</math> are real numbers and <math>i</math> is the imaginary unit. Where <math>i=\sqrt{-1}</math> | ||
− | *In <math>COMPLEXNUM( | + | *In <math>COMPLEXNUM(Real,Imaginary,Suffix)</math>, here <math>Real</math> is the real part of the complex number, <math>Imaginary</math> is the imaginary part of the complex number and <math>Suffix</math> is the imaginary unit of a complex number like <math>i</math> or <math>j</math>. |
*To mention <math>i</math> and <math>j</math>, we must use the lower case only | *To mention <math>i</math> and <math>j</math>, we must use the lower case only | ||
*In a complex number <math>z</math> real part is denoted by <math>Re(z)</math> & imaginary part is denoted by <math>Im(z)</math>. | *In a complex number <math>z</math> real part is denoted by <math>Re(z)</math> & imaginary part is denoted by <math>Im(z)</math>. | ||
− | *COMPLEXNUM returns the error value, when <math> | + | *COMPLEXNUM returns the error value, when <math>Real</math> and <math>Imaginary</math> are non-numeric. |
*<math>Suffix</math> should be either <math>i</math> or <math>j</math>, otherwise it shows error value. | *<math>Suffix</math> should be either <math>i</math> or <math>j</math>, otherwise it shows error value. | ||
*A Complex number whose real part is zero is said to be purely imaginary. | *A Complex number whose real part is zero is said to be purely imaginary. | ||
Line 25: | Line 25: | ||
==ZOS== | ==ZOS== | ||
− | *The syntax is to calculate | + | *The syntax is to calculate COMPLEXNUM in ZOS is <math>COMPLEXNUM(REAL,IMAGINARY,SUFFIX)</math> |
*<math>REAL</math> is the real part. | *<math>REAL</math> is the real part. | ||
*<math>IMAGINARY</math> is the imaginary part. | *<math>IMAGINARY</math> is the imaginary part. |
Latest revision as of 14:56, 27 June 2018
COMPLEXNUM(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.
Description
- COMPLEXNUM 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 .
- COMPLEXNUM 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.
- =COMPLEXNUM(5,2) gives
- =COMPLEXNUM(5,2,["j"]) gives
ZOS
- The syntax is to calculate COMPLEXNUM in ZOS is
- is the real part.
- is the imaginary part.
- is imaginary unit which is either "i" or "j".
- E.x: COMPLEXNUM(-1..1,10..11,"j")
Examples
COMPLEXNUM(real,imaginary,suffix) | rn | in | sf | RESULT |
---|---|---|---|---|
COMPLEXNUM(5,6) | 5 | 6 | 5+i6 | |
COMPLEXNUM(7,3,"j") | 7 | 3 | j | 7+j3 |
COMPLEXNUM(4,0,"i") | 4 | 0 | i | 4+i0 |
COMPLEXNUM(0,-4,"i") | 0 | (-4) | i | 0-i4 |
COMPLEXNUM(5,"j") | 5 | j | Error |
Related Videos
See Also
References