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 iX < 1. */
do spit=1 for places
call charout , ?
Line 320:
{{out|output|text=&nbsp; when using the default inputs:}}
<pre>
1.41421356237309504880168872420969807856967187537694807317667973799073247846210703885038753432764157273501384623091229702492483605
1.41421356237309504880168872420969807856967187537694807317667973799073247846210703885038753432764157
5850737212644121497099935831413222665927505592755799950501152782060571470109559971605970274534596862014728517418640889198609552329
2735013846230912297024924836055850737212644121497099935831413222665927505592755799950501152782060571
2304843087143214508397626036279952514079896872533965463318088296406206152583523950547457502877599617298355752203375318570113543746
4701095599716059702745345968620147285174186408891986095523292304843087143214508397626036279952514079
034084988471603868999706990048150305440277903164542478230684929369186215805784631115966687130130156185689872372
8968725339654633180882964062061525835239505474575028775996172983557522033753185701135437460340849884
7160386899970699004815030544027790316454247823068492936918621580578463111596668713013015618568987237
2
</pre>
{{out|output|text=&nbsp; when using the inputs of: &nbsp; &nbsp; <tt> .2 &nbsp; 80 </tt>}}