Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
ClearAll[ISqrt]
|
||||
ISqrt[x_Integer?NonNegative] := Module[{q = 1, z, r, t},
|
||||
While[q <= x,
|
||||
q *= 4
|
||||
];
|
||||
z = x;
|
||||
r = 0;
|
||||
While[q > 1,
|
||||
q = Quotient[q, 4];
|
||||
t = z - r - q;
|
||||
r /= 2;
|
||||
If[t >= 0,
|
||||
z = t;
|
||||
r += q
|
||||
];
|
||||
];
|
||||
r
|
||||
]
|
||||
ISqrt /@ Range[65]
|
||||
Column[ISqrt /@ (7^Range[1, 73])]
|
||||
Loading…
Add table
Add a link
Reference in a new issue