Babbage problem: Difference between revisions

Content deleted Content added
Edmund (talk | contribs)
Added an alternative version, suggested by one of the other solutions
Edmund (talk | contribs)
Line 134: Line 134:
===Alternative method===
===Alternative method===
{{trans|PowerShell}}
{{trans|PowerShell}}
The algorithm given in the alternative PowerShell implementation is much more efficient, and I think should be at least as comprehensible to Babbage.
The algorithm given in the alternative PowerShell implementation may be substantially more efficient, depending on how long <tt>SQR</tt> takes, and I think could well be more comprehensible to Babbage.
<lang bbcbasic>REM Lines that begin 'REM' are explanatory remarks addressed to the human reader.
<lang bbcbasic>REM Lines that begin 'REM' are explanatory remarks addressed to the human reader.