From: "Ken Alverson" <KenA@nospamplease.TSO.Cin.IX.Net>
Newsgroups: comp.sys.hp48
References: <6h0pmp$l87@dfw-ixnews8.ix.netcom.com>
Subject: Re: Calculating Square roots
Date: Tue, 14 Apr 1998 19:48:03 -0400
Lines: 25
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 206.112.194.96
Message-ID: <3533f678.0@news.one.net>
Organization: OneNet Communications News Hub
Path: republic.btigate.com!news-xfer.netaxs.com!feed1.news.erols.com!howland.erols.net!nntp.abs.net!WCG!katana!uunet!in3.uu.net!news.one.net!206.112.194.96
Xref: republic.btigate.com comp.sys.hp48:9330

This is something I just came up with now (although I'm sure others have
thought of it in the past):

<<
  2 -> x r
<<
  while x r / delta > do
  x r / r + 2 / 'r' sto
  end
>>
>>

not sure about the while syntax, but the algorithm should work

Ken

Joel Johnson wrote in message <6h0pmp$l87@dfw-ixnews8.ix.netcom.com>...
>How would one go about programmatically calculating the square root of a
>given number to 'n' decimal places?
>
>I know that it is easier to use the ROM function on an HP, but was just
>wondering in general.


