Babbage problem: Difference between revisions
Content deleted Content added
Added an alternative version, suggested by one of the other solutions |
|||
Line 134: | Line 134: | ||
===Alternative method=== |
===Alternative method=== |
||
{{trans|PowerShell}} |
{{trans|PowerShell}} |
||
The algorithm given in the alternative PowerShell implementation |
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. |
||