Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
Module Checkit {
|
||||
Function Agm {
|
||||
\\ new stack constructed at calling the Agm() with two values
|
||||
Repeat {
|
||||
Read a0, b0
|
||||
Push Sqrt(a0*b0), (a0+b0)/2
|
||||
' last pushed first read
|
||||
} Until Stackitem(1)==Stackitem(2)
|
||||
=Stackitem(1)
|
||||
\\ stack deconstructed at exit of function
|
||||
}
|
||||
Print Agm(1,1/Sqrt(2))
|
||||
}
|
||||
Checkit
|
||||
Loading…
Add table
Add a link
Reference in a new issue