We can encode step 2 of the above algorithm in Lua as follows: local function sqrt_iter(guess,x) if good_enough(guess,x) then return guess ...
確定! 回上一頁