Jump to content

Arithmetic-geometric mean: Difference between revisions

Line 2,673:
=={{header|Smalltalk}}==
{{works with|Smalltalk/X}}
That is simply a copy/paste of the already existing ageagm method in the Number class:
<lang smalltalk>agm:y
"return the arithmetic-geometric mean agm(x, y) of the receiver (x) and the argument, y.
See https://en.wikipedia.org/wiki/Arithmetic-geometric_mean"
and http://www.wolframalpha.com/input/?i=agm(24,+6)"
 
|ai an gi gn epsilon delta|
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.