Arithmetic-geometric mean: Difference between revisions
Content added Content deleted
Line 2,673: | Line 2,673: | ||
=={{header|Smalltalk}}== |
=={{header|Smalltalk}}== |
||
{{works with|Smalltalk/X}} |
{{works with|Smalltalk/X}} |
||
That is simply a copy/paste of the already existing |
That is simply a copy/paste of the already existing agm method in the Number class: |
||
<lang smalltalk>agm:y |
<lang smalltalk>agm:y |
||
"return the arithmetic-geometric mean agm(x, y) of the receiver (x) and the argument, 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 |
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| |
|ai an gi gn epsilon delta| |