98 886
Assignments Done
98.7%
Successfully Done
In April 2021

# Answer to Question #24423 in C++ for Dreambig

Question #24423
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
Expert's answer
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!

#### Comments

Assignment Expert
18.02.13, 17:25

You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!

Dreambig
18.02.13, 17:17

Thank you so much!!!!!!!!!!

### Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS