Reminder: Library File Has To Discuss Later Procedural and Object Oriented Programming Have To Discuss Later
Reminder: Library File Has To Discuss Later Procedural and Object Oriented Programming Have To Discuss Later
Output:
Absolute value is:13.9284
Phase angle is:1.20362
cout << "Norm value is:"<< norm(c) <<"\n";
cout << "Complex conguate is:" << conj(c) <<"\n";
Output:
Norm value is:194
Complex conguate is:(5,-13)
cout <<"Square root is: "<< sqrt(c) << "\n";
cout << " 3rd power of complex number is :"<<pow(c,3) <<"\
n";
Output:
Square root is: (3,2)
3rd power of complex number is :(-2035,-828)
Exponential of complex number is :(125.239,-79.6345)
Log of complex number is :(2.56495,1.17601)
Complex variable operation
● Trigonometric and hyperbolic function of
complex variable ---self studys
Logical variable
● Boolean variable studied as bool variable
Relational Operators
In C++ Programming, the values stored in two
variables can be compared using following
operators and relation between them can be
determined.
● Various C++ relational operators available are-
● Operator, Meaning
● > ,Greater than
● >= , Greater than or equal to
● == , Is equal to
● != , Is not equal to
● < , Less than or equal to <=
Now if the result after comparison of two
variables is True, then if statement returns
value 1.