Im having trpuble writing this formula in C Can you help me

Im having trpuble writing this formula in C++. Can you help me out?

Velocity = squareroot 2k/(k - 1) middot p/rho [((P_T - P)/P + 1)^(k - 1)/k - 1]

Solution

Hi, You can take help of my comutation in C++.

Please let me know in case of any issue.

double x = 2*k/(k-1);
double y = ((pt-p)/p + 1)
double z = pow(y, (k-1)/k);


velocity = sqrt(x*(p-r)*(z-1));

Im having trpuble writing this formula in C++. Can you help me out? Velocity = squareroot 2k/(k - 1) middot p/rho [((P_T - P)/P + 1)^(k - 1)/k - 1]SolutionHi, Y

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site