Suleman
Followers: 0 Following: 0
Feeds
提问
somebody help me please! I've gone over the irritation of approx_sqrt and the only way I've got each value of the function while using a calculator it was if I used y=2
format long g approx_sqrt(2) function y=approx_sqrt(x) y=x; while abs(y^2-x)>0.001*x y=(x/y+y)/2 end end
1 year 前 | 1 个回答 | 0