Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: xsmommy

estimating sqrt(x) by

10 sqrtx=x
15 x2=1
20 x2=(x/sqrtx + x2)/2
30 if sqrtx-x2 < x/10000000 then return
40 sqrtx=x2
50 goto 20

is an iterative process


15 posted on 02/08/2010 5:57:11 AM PST by HangnJudge
[ Post Reply | Private Reply | To 1 | View Replies ]


To: HangnJudge

what’s with all the SQUIRTZ? sounds like someone needs immodium... ; ) A+++


29 posted on 02/08/2010 6:02:44 AM PST by xsmommy
[ Post Reply | Private Reply | To 15 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson