Difference between revisions of "Manuals/calci/COMPLEX"

From ZCubes Wiki
Jump to navigation Jump to search
 
(44 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="font-size:30px">'''COMPLEX(RN,IN,S)'''</div><br/>
+
<div style="font-size:30px">'''COMPLEX (Real,Imaginary,Suffix)'''</div><br/>
  
*'RN' is the real number.
+
*<math>Real</math> is the real part of the complex number.
*'IN' is the imaginary number.
+
*<math>Imaginary</math> is the imaginary part of the complex number.
*'S' is the suffix for the imaginary number.
+
*<math>Suffix</math> is the imaginary unit of the complex number.
 +
**COMPLEX(), converts real and imaginary coefficients into a complex number.
  
 
==Description==
 
==Description==
 +
 
*COMPLEX function converts the real and imaginary coefficients into a complex number.
 
*COMPLEX function converts the real and imaginary coefficients into a complex number.
*A complex number is a number is  in the form z = a + bi, where a and b are real numbers and i is the imaginary unit and <math>i=\sqrt(-1)</math>
+
*A complex number is a combination of a real and an imaginary number.
*COMPLEX returns the error value, when RN and IN are non-numeric.
+
*A number which is positive or negative, rational or irrational or decimals are called real numbers.
*'S' should be either 'I' or 'j', otherwise it shows error value.
+
*An Imaginary number is a number that when squring it gives a negative result.
 
+
*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>
 +
*In <math>COMPLEX(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
 +
*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>.
 +
*COMPLEX 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.
 +
*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 <math>5+2i</math>
 +
**COMPLEX(5,2,"j") gives <math>5+2j</math>
  
 +
==ZOS==
  
*COMPLEX(RN,IN,S)
+
*The syntax is to calculate COMPLEX in ZOS is <math>COMPLEX(REAL,IMAGINARY,SUFFIX)</math>
*=COMPLEX(5,2) is 5+2i
+
*<math>REAL</math> is the real part.
*=COMPLEX(5,2,"j") is 5+2j
+
*<math>IMAGINARY</math> is the imaginary part.
Syntax
+
*<math>SUFFIX</math> is imaginary unit which is either "i" or "j".
Remarks
+
*E.x: COMPLEX(-1..1,10..11,"j")
 +
{{#ev:youtube|N9v1byHycgs|280|center|Complex Number}}
  
 
==Examples==
 
==Examples==
 
+
{| class="wikitable"
{| id="TABLE3" class="SpreadSheet blue"
+
|+Spreadsheet
|- class="even"
+
|-
| class=" " |
+
| COMPLEX(real,imaginary,suffix)
| Column1
+
! rn
| class="  " | Column2
+
! in
| Column3
+
! sf
| Column4
+
! RESULT
 +
|-
 
|- class="odd"
 
|- class="odd"
| class=" " | Row1
+
|COMPLEX(5,6)
| class="sshl_f" | 5
+
|5
| class="sshl_f" | 2
+
|6
| class="sshl_f" | 5+2i
+
|
| class="sshl_f" | 5+2j
+
|       5+6i
 
|- class="even"
 
|- class="even"
| class=" " | Row2
+
|COMPLEX(5,2,"j")
| class="sshl_f" |
+
|5
|
+
|2
|
+
|j
| class=" SelectTD SelectTD" |
+
|         5+2j
<div id="2Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
 
|- class="odd"
 
|- class="odd"
| Row3
+
|COMPLEX(2,0,"i")
| class="                                       sshl_f    " |
+
|2                                     
|
+
|0
|
+
|i
|
+
|         2+0i
 
|- class="even"
 
|- class="even"
| Row4
+
|COMPLEX(0,-4,"i")
|
+
|0
|
+
| -4
|
+
|i
| class="  " |
+
|         0 + -4i
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
+
|COMPLEX(5,"j")
|
+
|5
|
 
|
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
|
 
 
|
 
|
 +
|j
 +
| #N/A (INVALID IMAGINARY COEFFICIENTS)
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
==Related Videos==
----
+
 
 +
{{#ev:youtube|SP-YJe7Vldo|280|center|Complex Numbers}}
 +
 
 +
==See Also==
 +
 
 +
*[[Manuals/calci/IMAGINARY | IMAGINARY]]
 +
*[[Manuals/calci/IMREAL| IMREAL]]
 +
*[[Manuals/calci/IMABS| IMABS]]
 +
*[[Manuals/calci/IMCONJUGATE| IMCONJUGATE]]
 +
 
 +
==References==
 +
*[http://en.wikipedia.org/wiki/Complex_number  Complex Numbers]
 +
 
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

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")
Complex Number

Examples

Spreadsheet
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

Complex Numbers

See Also

References