Device and method for approximating the square root of a number
First Claim
Patent Images
1. A device for approximating the square root r of a binary number N comprising:
- a result register for storing xn, where xn is a successive approximation of r;
a first shift register connected to an output of said result register for shifting xn a predetermined number of places in the direction of its most significant bit, to form a number Axn ;
a first adder connected to an output of said shift register for adding Axn to N, to form a number Axn +N;
a multiplier connected to the output of said result register, for multiplying xn by itself, to form a number xn2 ;
a second adder connected to outputs of said multiplier and first adder for subtracting xn2 from Axn +N, to form a number Axn +N-xn2 ; and
a second shift register connected between an output of said second adder and input of said result register for shifting Axn +N-xn2 a predetermined number of places in the direction of its least significant bit.
12 Assignments
0 Petitions
Accused Products
Abstract
A device and method for approximating the square root of a binary number N. The device includes hardware for storing N, and a result register for storing xn, where xn is a successive approximation of r. The device also includes hardware for iteratively replacing xn with xn+1, starting with n=0, where xn+1 =(Axn +N-xn2)/A, and x0 is within a predetermined range. "A" is a multiple of 2 so that an operation involving a product or quotient with "A" is effected by a shift operation.
19 Citations
10 Claims
-
1. A device for approximating the square root r of a binary number N comprising:
-
a result register for storing xn, where xn is a successive approximation of r; a first shift register connected to an output of said result register for shifting xn a predetermined number of places in the direction of its most significant bit, to form a number Axn ; a first adder connected to an output of said shift register for adding Axn to N, to form a number Axn +N; a multiplier connected to the output of said result register, for multiplying xn by itself, to form a number xn2 ; a second adder connected to outputs of said multiplier and first adder for subtracting xn2 from Axn +N, to form a number Axn +N-xn2 ; and a second shift register connected between an output of said second adder and input of said result register for shifting Axn +N-xn2 a predetermined number of places in the direction of its least significant bit. - View Dependent Claims (2, 3, 4)
-
-
5. A device for approximating the square root r of a binary number B, expressed in scientific notation, comprising:
-
an exponent register for storing the exponent of B; a mantissa register for storing the mantissa of B; a first shift register connected to an output of said mantissa register; a first multiplexer connected to an output of said shift register and the output of said mantissa register for selectively providing a number N at an output thereof; a result register for storing xn, where xn is a successive approximation of r; a second shift register connected to an output of said result register for shifting xn a predetermined number of places in the direction of its most significant bit, to form a number Axn ; a first adder connected to respective outputs of said second shift register and multiplexer for adding Axn to N, to form a number Axn +N; a multiplier connected to the output of said result register, for multiplying xn by itself, to form a number xn2 ; a second adder connected to outputs of said multiplier and first adder for subtracting xn2 from Axn +N, to form a number Axn +N-xn2 ; and a third shift register connected between an output of said second adder and input of said result register for shifting Axn +N-xn2 a predetermined number of places in the direction of its least significant bit. - View Dependent Claims (6, 7, 8, 9, 10)
-
Specification