Você está na página 1de 1

Declare Real Variables T, C, R ,

R_Sqrd, R_C, R_T

Declare Interger counters I, j, k, w, x, y

Declare interger variable Nm

Read the Input variable Nm

Initialise Variables
i = 1, j = 1, k = 1, w = 1, Sum_T = 0, Sum_C = 0, Sum_R =
0, Sum_R_Sqrd = 0, Sum_R_C = 0, Sum_R_T =0

Read the Input Array variable R, C, T Read the Input Array variable R Read the Input Array variable T Read the Input Array variable C Read the Input Array variable R

R_C = R * C
R_T = R * T, R_Sqrd = R * R,
Sum_R = sum_R+ R Sum_T = sum_T + T
Sum_R_C = Sum_R_C + R_C Sum_C = sum_C + C Sum_R_Sqrd = sum_R_Sqrd + R_Sqrd
k=k+1 i=i+1
Sum_R_T = Sum_R_T + R_T j= j+ 1 w = w +1

Yes Yes Yes Yes


is x <= Nm? is k <= Nm? is i <= Nm? is j <= Nm? is w <= Nm?
Yes
No
No No No No

Compute the slope of the THP trendline Compute the intercept of the THP trendline Compute the slope of the Choke trendline Compute the intercept of the Choke trendline

Compute the MER

Display MER

Você também pode gostar