Isqrt (integer square root) of X: Difference between revisions

m
(J: include some efficiency and correctness notes)
Line 2,649:
timespacex 'isqrt_float 7 ^&x: 1 2 p. i. 37'
0.0005145 152192</pre>
 
Note that isqrt_float <code><.@%:</code> is mechanically a different operation from floating point square root followed by floor. This is probably best thought of as a type issue. For example, code><.%:7^73x</code> (without the <code>@</code>) produces a result which has the comma delimited integer representation of <tt>7,015,820,362,023,594,877,495,225,090</code> rather than <tt>7,015,820,362,023,593,956,150,476,655,802</code>
 
=={{header|Java}}==
6,951

edits