Difference between revisions of "Manuals/calci/COMPLEX"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font color="#000000"><font face="Arial, sans-serif"><font size="2">COMPLEX(RN,IN,S)</font></font></font> <font co...")
 
 
(49 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''COMPLEX (Real,Imaginary,Suffix)'''</div><br/>
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">COMPLEX(RN,IN,S)</font></font></font>
+
*<math>Real</math> is the real part of the complex number.
 +
*<math>Imaginary</math> is the imaginary part of the complex number.
 +
*<math>Suffix</math> is the imaginary unit of the complex number.
 +
**COMPLEX(), converts real and imaginary coefficients into a complex number.
  
<font color="#000000"><font face="Arial, sans-serif"><font size="2">Where 'RN' is the real coefficient and 'IN' is the imaginary coefficient of the complex number. And 'S is the suffix for the imaginary component of the complex number. </font></font></font>
+
==Description==
  
</div>
+
*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.
<div id="1SpaceContent" class="zcontent" align="left"> <font color="#000000"><font face="Arial, sans-serif"><font size="2">COMPLEX function converts the real and imaginary coefficients into a complex number.</font></font></font></div>
+
*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.
<div id="7SpaceContent" class="zcontent" align="left"> 
+
*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>
  
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">COMPLEX returns the error value, when RN and IN are nonnumeric.</font></font></font>
+
==ZOS==
* <font color="#000000"><font face="Arial, sans-serif"><font size="2">'S' should be either 'I' or 'j', otherwise it shows error value.</font></font></font>
 
  
</div>
+
*The syntax is to calculate COMPLEX in ZOS is <math>COMPLEX(REAL,IMAGINARY,SUFFIX)</math>
----
+
*<math>REAL</math> is the real part.
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
+
*<math>IMAGINARY</math> is the imaginary part.
 +
*<math>SUFFIX</math> is imaginary unit which is either "i" or "j".
 +
*E.x: COMPLEX(-1..1,10..11,"j")
 +
{{#ev:youtube|N9v1byHycgs|280|center|Complex Number}}
  
COMPLEX
+
==Examples==
 
+
{| class="wikitable"
</div></div>
+
|+Spreadsheet
----
+
|-
<div id="8SpaceContent" class="zcontent" align="left"> 
+
| COMPLEX(real,imaginary,suffix)
 
+
! rn
<font color="#000000"><font face="Arial, sans-serif"><font size="2">COMPLEX(RN,IN,S)</font></font></font>
+
! in
 
+
! sf
<font color="#000000"><font face="Arial, sans-serif"><font size="2"><nowiki>=COMPLEX(5,2) is 5+2i</nowiki></font></font></font>
+
! RESULT
 
+
|-
<font color="#000000"><font face="Arial, sans-serif"><font size="2"><nowiki>=COMPLEX(5,2,"j") is 5+2j</nowiki></font></font></font>
 
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| class="  " | Column2
 
| Column3
 
| Column4
 
 
|- 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