end 在下面均方根程序中的平方根计算使用了巴比伦方法(英语:Methods_of_computing_square_roots#Babylonian_method)。 sqroot(avg(square(a))) where square(x) = x*x; avg(y) = mean where
(原始内容存档于2017-05-24). For example, the squarerootsof 9 are -3 and +3, since (-3)2 = (+3)2 = 9. Squares and SquareRoots, § Negatives. mathsisfun.com. [2020-04-25]