Question: class complex { friend complex operator+(float,const complex&); friend complex operator-(float,const complex&); friend complex operator*(float,const complex&); friend complex operator/(float,const complex&); friend ostream & operator <

 class complex { friend complex operator+(float,const complex&); friend complex operator-(float,const complex&); friend complex operator*(float,const complex&); friend complex operator/(float,const complex&); friend ostream & operator<<(ostream& outfile,const complex&); public: static const complex i; complex(); complex(float,float); const complex & operator=(const complex&); const complex & operator=(float); bool operator==(const complex&) const; complex operator+(const complex&) const; complex operator+(float) const; complex operator-(const complex&) const; complex operator-(float) const; complex operator-() const; complex operator*(const complex&) const; complex operator*(float) const; complex operator/(const complex& ) const; complex operator/(float) const; private: float ipart; float rpart; };

after you have implemented the class write a short program which calculates (4x^2 - 2x- 1)/(i +1) for x = -(1+2i)/2. both the polynomial and the x-value maybe hard-coded into main.

Can anyone please help me with my main function!!!!????

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!