Jump to content

Arithmetic-geometric mean: Difference between revisions

m
No edit summary
Line 1,547:
=={{header|Oforth}}==
 
<lang Oforth>: agm while(2dup <>)\ [a 2dupb +-- 2 / tor * sqrt ] drop ;</lang>m
while( 2dup <> ) [ 2dup + 2 / -rot * sqrt ] drop ;</lang>
 
Usage :
1,015

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.