Skip to content

PeterCamejo/ComplexNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A complex number class written in C++. The class takes in two parameters, realNum and imgNum, which correspond to a complex number's real number and imaginary number respectively.

Example: 
Complex complex(4,5);

The new Complex object, complex, equates to the complex number 4 + 5i.

The class contains every basic complex number operation, including:
 
Each mathematical operator (+, - , *, /= , += , etc.)
Each comparison operator (< , <= , == , != , etc.)
A complexFromPolar function, which takes in the Rho and Theta of a complex number in polar form and converts it to the real number + imaginary number form that the class uses.

About

Complex Number class for C++ . Use Catch Unit Testing Framework from philsquared (Not included)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published