through constructors. Calculate cSum =cl+ c2 and cCon= conjugate of cSum

Trigonometry (MindTap Course List)
8th Edition
ISBN:9781305652224
Author:Charles P. McKeague, Mark D. Turner
Publisher:Charles P. McKeague, Mark D. Turner
Chapter8: Complex Numbers And Polarcoordinates
Section: Chapter Questions
Problem 1RP: As was mentioned in the introduction to this chapter, Jerome Cardan (Girolamo Cardano) was unable to...
icon
Related questions
Question
Imaginary axis
Questions 2)
C=r+w]
A complex number is defined as
c=r +wJ
and shown in the real-complex plane
as in Figure. Here r is the real part
and the w is the imaginary part.
real axis
The following operations are defined on a complex number. Let ci berntwij and cz be
rz+wa].
• (+) Addition : ci + c → (ri +r2 )+ (wi+ wz) j
• ) Assign : a = c2 > ri= r2; wi = w2
(*) Multiplication: c1 * c2 > (rı + wij ) * (r2 + wzj )
= (ri* r2+ n* wzj + wij * r2 + wij * wzj ). Here j= -
1
1. Write a class which represents a complex number c. Real and imaginary pars are
stored as protected members in the class. Real and imaginary parts can also to be
given as real parameters on construction of the class instant. Usual set/get methods are
to be provided to access real and imaginary parts.
2. Implement operators (+), (=) and (*) as described above.
3. Complex Conjugate of C is defined as ī =r- wj. Write a conjugate method which
returs conjugate of number
4. In a main source file construct el = 5 +3j, c2 = 2 + 4j, cSum = 0+0j and cCon=0+0j
through constructors. Calculate
cSum =cl+ c2 and
cCon = conjugate ofcSum
Not: please use one header (h) and one source (cpp) file for the class.
Transcribed Image Text:Imaginary axis Questions 2) C=r+w] A complex number is defined as c=r +wJ and shown in the real-complex plane as in Figure. Here r is the real part and the w is the imaginary part. real axis The following operations are defined on a complex number. Let ci berntwij and cz be rz+wa]. • (+) Addition : ci + c → (ri +r2 )+ (wi+ wz) j • ) Assign : a = c2 > ri= r2; wi = w2 (*) Multiplication: c1 * c2 > (rı + wij ) * (r2 + wzj ) = (ri* r2+ n* wzj + wij * r2 + wij * wzj ). Here j= - 1 1. Write a class which represents a complex number c. Real and imaginary pars are stored as protected members in the class. Real and imaginary parts can also to be given as real parameters on construction of the class instant. Usual set/get methods are to be provided to access real and imaginary parts. 2. Implement operators (+), (=) and (*) as described above. 3. Complex Conjugate of C is defined as ī =r- wj. Write a conjugate method which returs conjugate of number 4. In a main source file construct el = 5 +3j, c2 = 2 + 4j, cSum = 0+0j and cCon=0+0j through constructors. Calculate cSum =cl+ c2 and cCon = conjugate ofcSum Not: please use one header (h) and one source (cpp) file for the class.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Binomial Expansion
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781305652224
Author:
Charles P. McKeague, Mark D. Turner
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Algebra and Trigonometry (MindTap Course List)
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:
9781305071742
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781337278461
Author:
Ron Larson
Publisher:
Cengage Learning
Elements Of Modern Algebra
Elements Of Modern Algebra
Algebra
ISBN:
9781285463230
Author:
Gilbert, Linda, Jimmie
Publisher:
Cengage Learning,
College Algebra (MindTap Course List)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning