Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Square root
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Don  
View profile  
 More options Apr 27 2004, 11:40 pm
Newsgroups: sci.math.research
From: Don <yss...@hotmail.com>
Date: 27 Apr 04 23:40:54 -0400 (EDT)
Local: Tues, Apr 27 2004 11:40 pm
Subject: Square root
Hello everyone.  I'm looking for the different ways known to calculate
the square root of real positive numbers by using integer addition
operations only.  I'm thinking of their application to microprocessor
subroutines, which work on integer numbers only.
Any ideas?

Thanks for your time.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frank A. Adrian  
View profile  
 More options Apr 28 2004, 11:22 am
Newsgroups: sci.math.research
From: "Frank A. Adrian" <fadr...@ancar.org>
Date: Wed, 28 Apr 2004 08:22:59 -0700
Local: Wed, Apr 28 2004 11:22 am
Subject: Re: Square root

On Tue, 27 Apr 2004 23:40:54 -0400, Don wrote:
> Hello everyone.  I'm looking for the different ways known to calculate
> the square root of real positive numbers by using integer addition
> operations only.  I'm thinking of their application to microprocessor
> subroutines, which work on integer numbers only.
> Any ideas?

2's complement or 1's complement integer rep? Is negation of positive
quantities allowed (if so, you can form the complement and add to emulate
subtraction)? What's the real number representation, or are you assuming a
rational approximation?

In any case, you might want to check out what's being done in hardware
already.  Here's a few references (Google "square root algorithm hardware"
for more):

http://csdl.computer.org/comp/mags/mi/1997/04/m4056abs.htm
http://www.cs.cornell.edu/jyh/papers/tpcd94/paper.pdf
http://www.azillionmonkeys.com/qed/sqroot.html (check bottom of page)

faa


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
anonymous  
View profile  
 More options Apr 29 2004, 12:35 am
Newsgroups: sci.math.research
From: anonymous <somewhere@on_earth.in_space>
Date: Wed, 28 Apr 2004 21:35:03 -0700
Local: Thurs, Apr 29 2004 12:35 am
Subject: Re: Square root

> Hello everyone.  I'm looking for the different ways known to calculate
> the square root of real positive numbers by using integer addition
> operations only.  I'm thinking of their application to microprocessor
> subroutines, which work on integer numbers only.
> Any ideas?

> Thanks for your time.

Don:

Probably the best use of your time is to pull up all the IEEE publications on
this at your closest University library web station.  They have dozens and
dozens of papers on this topic as it remains an interest to hardware processor
designers.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Don  
View profile  
 More options Apr 30 2004, 2:12 am
Newsgroups: sci.math.research
From: Don <yss...@hotmail.com>
Date: 30 Apr 04 02:12:39 -0400 (EDT)
Local: Fri, Apr 30 2004 2:12 am
Subject: Re: Square root
Thanks for replying and for your time.  As it happens, I've been doing
some research on the web regarding algorithms for extracting the
square root of real numbers.

My reason is the following:  I've found a way to extract the square
root of real positive numbers by the use of algebraic addition only,
integer addition, and as far as I've tested it, it seems to work
faster than even Newton's method.  What I've been doing for the past
few months is to look around what's been up with technology, to see if
my method is of any worth and, as far as I can tell, it seems better.
I use the words "faster" and "better" with much caution.  My method is
not approximative.  It yields, on iterations towards infinity,
increasingly accurate values.  As a test, I've programmed a machine
language subroutine to produce digits of the square root of two and
I've been comparing them to (supposedly) NASA results located at
http://antwrp.gsfc.nasa.gov/htmltest/gifcity/sqrt2.1mil, and so far my
tests compare equally to theirs up to the 100,000th digit.  If time
and memory allow it, I should soon reach the millionth digit.

If I'm right, I may be on to something here.  The method is so simple
that extracting square roots by hand can be done by anyone that can
add and subtract with pen and paper.

Right now I'm not sure what to do next, if to release it publicly, if
to publish it, if to sell it.  I'd like to spread the news as far as I
can to see what happens next, but I'm not quite sure what to do
afterwards.  God knows my research could use the funds, but I also
know kids at school and everyone in particular could profit from this
simple knowledge.  The more we know the better for all of us.  Any
suggestions, based on experience or otherwise?

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hugo Pfoertner  
View profile  
 More options Apr 29 2004, 6:01 pm
Newsgroups: sci.math.research
From: Hugo Pfoertner <noth...@abouthugo.de>
Date: Fri, 30 Apr 2004 00:01:36 +0200
Local: Thurs, Apr 29 2004 6:01 pm
Subject: Re: Square root

Don wrote:

> Hello everyone.  I'm looking for the different ways known to calculate
> the square root of real positive numbers by using integer addition
> operations only.  I'm thinking of their application to microprocessor
> subroutines, which work on integer numbers only.
> Any ideas?

> Thanks for your time.

Something I wrote years ago: The C code also uses shifts and
multiplications. Using only additions might be very inefficient. Which
processor do you have in mind?
(short...16bit signed integer, long...32bit signed integer)

short sqrt64 ( short i )

/* sqrt64 computes 64 * sqrt ( i ), i < 32768.
  0 is returned for i <= 0.

  Method: Bisection. */

{
 short l, h, m;
 long t;

/* Check for non-positive input */
 if ( i <= 0 )
    return 0;

/* Set lower and upper limits for bisection */
 l = 64;
 h = 11585;

/* Set target value for comparison */
 t = i << 12;

/* Perform bisection until difference h-l is reduced to 1 */

 while ( l < (h-1) )

 {
  m = l + h >> 1;
  if ( m*m < t )
    l = m;
  else
    h = m;
 } /* end while */

/* Check, which of the two values l or h gives a better result */

 if ( ( t - l*l ) < ( h*h - t ) )
   return l;
 else
   return h;

} /* End of function sqrt64 */

Hugo Pfoertner

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Sexton  
View profile  
 More options Apr 30 2004, 3:51 pm
Newsgroups: sci.math.research
From: da5id65...@yahoo.com (David Sexton)
Date: 30 Apr 2004 12:51:07 -0700
Local: Fri, Apr 30 2004 3:51 pm
Subject: Re: Square root

Did you look at

http://mathworld.wolfram.com/WolframsIteration.html

I've done some similar work with logs and antilogs--more to come.

David Sexton


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »