Anonymous user
Square root by hand: Difference between revisions
m
→{{header|REXX}}: changed a comment, increased the width of the terminal.
m (→{{header|REXX}}: added the suggested numbers as per the talk page.) |
m (→{{header|REXX}}: changed a comment, increased the width of the terminal.) |
||
Line 303:
if j*j=x then do; say j; return; end /*have we found the exact sqrt?*/
L= length(?) /*L: used to place dec. point.*/
if L==0 then call charout , . /*handle dec. point for
do spit=1 for places
call charout , ?
Line 320:
{{out|output|text= when using the default inputs:}}
<pre>
1.41421356237309504880168872420969807856967187537694807317667973799073247846210703885038753432764157273501384623091229702492483605
5850737212644121497099935831413222665927505592755799950501152782060571470109559971605970274534596862014728517418640889198609552329
2304843087143214508397626036279952514079896872533965463318088296406206152583523950547457502877599617298355752203375318570113543746
034084988471603868999706990048150305440277903164542478230684929369186215805784631115966687130130156185689872372
</pre>
{{out|output|text= when using the inputs of: <tt> .2 80 </tt>}}
|