2013-02-14T16:09:28-05:00
write c++ program for the function((a+b)^4 - (a^4+4a^3b + 6a^2b^2)/(4ab^3+b^4)), at a=1000, b=10^-2,10^-3,10^-4
1
2013-02-18T08:16:21-0500
#include<iostream> #include<math.h> using namespace std; & double f(double a,double b){ double c; & c=pow(a+b,4)-(pow(a,4)+4*b*pow(a,3)+6*pow(a,2)*pow(b,2))/(4*a*pow(b,3)+pow(b,4)); return c; } int main (){ double a,b; a=1000; b=pow(10,-2); cout<<" a=1000, b=10^-2& : "<<f(a,b)<<endl; b=pow(10,-3); cout<<" a=1000, b=10^-3& : "<<f(a,b)<<endl; b=pow(10,-4); cout<<" a=1000, b=10^-4& : "<<f(a,b)<<endl; & system("PAUSE"); & }
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS !
Learn more about our help with Assignments:
C++
Comments
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
Thank you so much!!!!!!!!!!