This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: cout<<"The imaginary part of the conjugate of z4 is "<<(z4.conjugate()).getImag()<<endl; cout<<"The angle of the conjugate of z4 is "<<(z4.conjugate()).angle()<<"."<<endl; cout<<"The magnitude of the conjugate of z4 is "<<(z4.conjugate()).magnitude()<<"."<<endl; cout<<"(z3*conj(z4))/(z4*conj(z4))= "; cout<<(z3*z4.conjugate())/(z4*z4.conjugate())<<endl; /* Add statement here to compute ((z1z2).(z3/z4))/(z4/z3) and print the result:*/ z7 = DivCmplx(MulCmplx(SubCmplx(z1,z2),DivCmplx(z3,z4)),DivCmplx(z4/z3)); printf("The result of ((z1z2)*(z3/z4))/(z4/z3) is %lf %lf.\n", RealPartCmplx(z7), ImagPartCmplx(z7)); z8 = (z3/z4); z9 = (z1z2); z10 = (z8*z9); z11 = (z4/z3); z12 = (z10/z11); //((z1z2).(z3/z4))/(z4/z3) cout<<"((z1z2)x(z3/z4))/(z4/z3)"<<z12 ang = (z1+z2).angle(); /* Put a comment here explaining what happened and why? divide by zero. .. crash. .. i dont know??????/ */ return 0; }...
View
Full Document
 Fall '08
 Blanks,L
 endl, cout, Konrad Zuse, Z4

Click to edit the document details