Professional Documents
Culture Documents
Sub ModifiedFP()
Do
'must recalculate xr using new values for next loop and solving error
xr = (xh * fl - xl * fh) / (fl - fh)
Loop
Worksheets("Sheet1").Cells(14, 14) = xr
Worksheets("Sheet1").Cells(15, 14) = iter
Worksheets("Sheet1").Cells(16, 14) = ea
End Sub
Module2 - 2
a = (b + w) / 2 * y
f = 1 - Q ^ 2 * b / (g * a ^ 3)
End Function