Square root by hand: Difference between revisions
m
→{{header|Wren}}: Minor tidy
(→{{header|J}}: support decimal fraction arguments and include more examples) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 1,447:
{{libheader|Wren-big}}
The original has been adjusted to deal with any non-negative number, not just integers. Where appropriate a decimal point and leading zero(s) have been added but don't count towards the required number of digits. Trailing zeros do count but have been trimmed off for display purposes.
<syntaxhighlight lang="
var sqrt = Fn.new { |n, limit|
|