JPH08249161A - Cubic root arithmetic unit - Google Patents

Cubic root arithmetic unit

Info

Publication number
JPH08249161A
JPH08249161A JP5227295A JP5227295A JPH08249161A JP H08249161 A JPH08249161 A JP H08249161A JP 5227295 A JP5227295 A JP 5227295A JP 5227295 A JP5227295 A JP 5227295A JP H08249161 A JPH08249161 A JP H08249161A
Authority
JP
Japan
Prior art keywords
value
quotient
remainder
cube root
partial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP5227295A
Other languages
Japanese (ja)
Inventor
Toshimitsu Nagata
敏光 永田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5227295A priority Critical patent/JPH08249161A/en
Publication of JPH08249161A publication Critical patent/JPH08249161A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To realize a cubic root operation only by means of adding few additional circuits to a divider by dividing the index value of a given numerical value by '3', correcting the mantissa value of the given numerical value given by the remainder, calculating a new partial remainder by the mantissa value, predicting a new partial quotient, and repeating a processing for obtaining the new partial quotient until the prescribed and effective number of digits is obtained. CONSTITUTION: This arithmetic unit is provided with a means 1 for generating the index part of a cubic root based on the remainder obtained by dividing the index value of the given numerical value by '3' and correcting the mantissa value of the given numerical value, a means 2 for obtaining the initial value of the cubic root of the numerical value given from the mantissa value, a means 3 for calculating the new partial remainder based on the highest digit of the cubic root obtained from the corrected mantissa value or the partial remainder and the initial value obtained at previous time, or the quotient of N/X<2> calculated hitherto and the newly predicted partial quotient, and a means 4 for predicting the new partial quotient. The processing for obtainng the new partial quotient is repeated until the prescribed significant digits is obtained to calculate the cubic root X of a numerical value N.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、立方根演算装置に関
し、さらに詳細には、従来から使用されている除算器に
少量の付加回路を追加するだけで立方根演算を行うこと
ができる立方根演算装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cube root arithmetic unit, and more particularly to a cube root arithmetic unit capable of performing a cube root arithmetic operation only by adding a small amount of additional circuit to a conventional divider. It is a thing.

【0002】[0002]

【従来の技術】従来から、立方根を演算する手法として
ニュートンの逐次近似法を利用する方式が知られてい
る。上記ニュートンの逐次近似法はg(x)=x3 −a
x=0の解として、下記の式を適用し、x1 ,x2 ,…
と求めていき、xm を立方根とするものである。
2. Description of the Related Art Conventionally, a method utilizing Newton's successive approximation method has been known as a method for calculating a cube root. The above Newton's iterative method is g (x) = x 3 −a
As a solution of x = 0, the following formula is applied, and x 1 , x 2 , ...
The cubic root is x m .

【0003】 xn+1 =xn −〔{xn 2 −(a/xn )}/{2xn +(a/xn 2 )}〕 =xn ・(xn 3 +2a)/(2xn 3 +a)X n + 1 = x n − [{x n 2 − (a / x n )} / {2x n + (a / x n 2 )}] = x n · (x n 3 + 2a) / ( 2x n 3 + a)

【0004】[0004]

【発明が解決しようとする課題】ところで、上記手法
は、多数回の除算を必要とし、計算時間が非常に長くな
るといった問題がある。本発明は上記した従来の問題点
を解決するためになされたものであって、本発明の目的
は、除算器に少量の付加回路を追加するだけで高速に立
方根を求めることができる立方根演算装置を提供するこ
とである。
By the way, the above method has a problem that a large number of divisions are required and the calculation time becomes very long. The present invention has been made in order to solve the above-mentioned conventional problems, and an object of the present invention is to provide a cube root arithmetic device capable of obtaining a cube root at high speed by simply adding a small amount of additional circuits to a divider. Is to provide.

【0005】[0005]

【課題を解決するための手段】図1は本発明の原理図で
ある。同図において、1は入力データである数値Nの仮
数値/指数値を処理する手段、2は補正された仮数値DN
D の上位桁から初期値INITおよび3*(INIT)2 を生成する
手段、3は補正された仮数値DND もしくは前回求めた部
分剰余REM と、上記初期値INITから得た立方根の最上位
桁もしくはこれまでに算出されたN/X2 の商A、およ
び、新たに予測された部分商Bに基づき新たな部分剰余
を算出する手段、4は剰余/3*(INIT)2 から部分商Bを
予測する手段、5は仮数結果を保持する手段である。
FIG. 1 is a diagram illustrating the principle of the present invention. In the figure, 1 is a means for processing a mantissa value / exponent value of a numerical value N which is input data, 2 is a corrected mantissa value DN
Means for generating initial values INIT and 3 * (INIT) 2 from the upper digit of D, 3 is the corrected mantissa value DND or the partial remainder REM obtained last time, and the highest digit of the cube root obtained from the initial value INIT or A means 4 for calculating a new partial remainder based on the quotient A of N / X 2 calculated so far and the newly predicted partial quotient B, and the partial quotient B from the remainder / 3 * (INIT) 2 Prediction means 5 is means for holding the mantissa result.

【0006】本発明の請求項1の発明は、与えられた数
値Nをその立方根Xの自乗で除することにより、数値N
の立方根を求める立方根演算装置において、図1に示す
ように、与えられた数値の指数値を3で除した剰余に基
づき、立方根の指数部を生成するとともに、与えられた
数値の仮数値を補正する手段と、前記補正された仮数値
より、上記与えられた数値の立方根の初期値INITを求め
る手段と、前記補正された仮数値もしくは前回求めた部
分剰余と、上記初期値INITから得た立方根の最上位桁も
しくはこれまでに算出されたN/X2 の商、および、新
たに予測された部分商に基づき、新たな部分剰余を算出
する手段と、部分剰余と初期値INITもしくはこれまでに
算出されたN/X2 の商から新しい部分商を予測する手
段とを設け、所定の有効桁数が得られるまで、もしく
は、部分剰余が0になるまで、新し部分商を求める処理
を繰り返し、数値Nの立方根を算出するように構成した
ものである。
According to the first aspect of the present invention, the given number N is divided by the square of its cube root X to obtain the number N.
In a cube root calculator for finding the cube root of a cube root, the exponent part of the cube root is generated based on the remainder obtained by dividing the exponent value of the given numerical value by 3, and the mantissa value of the given numerical value is corrected. Means for obtaining the initial value CU of the cube root of the given numerical value from the corrected mantissa value, the corrected mantissa value or the partial remainder obtained last time, and the cube root obtained from the initial value INIT Means for calculating a new partial remainder based on the highest digit of N or the quotient of N / X 2 calculated so far and the newly predicted partial quotient, and the partial remainder and the initial value INIT or so far A means for predicting a new partial quotient from the calculated N / X 2 quotient is provided, and the process of obtaining a new partial quotient is repeated until a predetermined number of significant digits is obtained or the partial remainder becomes 0. , Cube of number N It is configured to calculate the root.

【0007】本発明の請求項2の発明は、与えられた数
値Nをその立方根Xの自乗で除することにより、数値N
の立方根を求める立方根演算装置において、図1に示す
ように、与えられた数値Nをその立方根Xの自乗で除す
ることにより、数値Nの立方根を求める立方根演算装置
において、与えられた数値の指数値を3で除して、その
剰余によって補正された指数値を得て立方根の指数部を
生成する指数部生成手段と、上記指数値の3による剰余
により、与えられた数値の仮数値を補正し、補正された
仮数値を生成する手段と、前記補正された仮数値より、
上記与えられた数値の立方根の初期値INITを求め、初期
値INITより、3*(INIT)2 を求める手段と、前記補正
された仮数値もしくは前回求めた部分剰余と、上記初期
値INITから得た立方根の最上位桁もしくはこれまでに算
出されたN/X2 の商、および、新たに予測された部分
商に基づき、新たな部分剰余を算出する手段と、部分剰
余を前記した3*(INIT)2 で除し、新しい部分商を予
測する手段と、 求めた部分商を桁をシフトしながら順
次格納する仮数値保持手段と、前記指数部生成手段と上
記仮数値保持手段の出力を前記数値Nの立方根として出
力する手段とを設け、所定の有効桁数が得られるまで、
もしくは、部分剰余が0になるまで、新し部分商を求め
る処理を繰り返し、数値Nの立方根を算出するように構
成したものである。
According to the second aspect of the present invention, the given number N is divided by the square of its cube root X to obtain the number N.
In a cube root computing device for finding a cube root of a given number, a cube root computing device for finding a cube root of a number N by dividing a given number N by the square of the cube root X, as shown in FIG. The exponent part generating means for dividing the value by 3 to obtain the exponent value corrected by the remainder and generating the exponent part of the cube root, and the remainder by the exponent value by 3 corrects the mantissa value of the given numerical value. Then, a means for generating a corrected mantissa value, and the corrected mantissa value,
Obtained from the cube root initial value INIT of the given numerical value, means for obtaining 3 * (INIT) 2 from the initial value INIT, the corrected mantissa value or the previously obtained partial remainder, and the initial value INIT. Based on the highest digit of the cube root or the quotient of N / X 2 calculated so far and the newly predicted partial quotient, and means for calculating a new partial remainder, and the partial remainder described above in 3 * ( INIT) 2 to predict a new partial quotient, a mantissa value holding means for sequentially storing the obtained partial quotient while shifting the digit, an output of the exponent part generating means and the mantissa value holding means, A means for outputting as a cube root of the numerical value N is provided, and until a predetermined number of significant digits is obtained,
Alternatively, the process of obtaining a new partial quotient is repeated until the partial remainder becomes 0, and the cube root of the numerical value N is calculated.

【0008】本発明の請求項3の発明は、請求項1また
は請求項2の発明において、部分剰余を算出する手段
が、これまでに算出されたN/X2 の商をA、新たに予
測された部分商をBとしたとき、上記Aから得たA2
(2A+B)Bを加えて(A+B)2 を求め、上記(A
+B)2 から部分剰余の補正値を得て、該補正値を前回
求めた部分剰余から減算する処理を上記A,Bを更新し
ながら繰り返して部分剰余を求めるようにしたものであ
る。
According to a third aspect of the present invention, in the first or second aspect of the invention, the means for calculating the partial remainder newly estimates the quotient of N / X 2 calculated so far as A. When the obtained partial quotient is B, (2A + B) B is added to A 2 obtained from A above to obtain (A + B) 2 , and the above (A
+ B) 2 is used to obtain a partial remainder correction value and subtract the correction value from the previously obtained partial remainder while repeating the above A and B to obtain the partial remainder.

【0009】[0009]

【作用】数値Nとその立方根Xとの間には、3 √(N)
=X〔以下、Nの立方根を3 √(N)と表記する〕、す
なわち、N=X3 の関係が成り立ち、Xは、X=X3
2 よりX=N/X2 によって求めることができる。本
発明は上記関係を利用して立方根を求めるものであり、
次のように立方根を求める。 (1) 指数処理、仮数処理 数値Nが与えられたとき、次のように指数処理、仮数処
理を行う。
[Function] Between the numerical value N and its cube root X, 3 √ (N)
= X [hereinafter, 3 √ cube root of N (N) and is denoted], i.e., it holds the relationship N = X 3 is, X is, X = X 3 /
It can be obtained from X 2 by X = N / X 2 . The present invention seeks a cube root using the above relationship,
Find the cube root as follows. (1) Exponential processing and mantissa processing When a numerical value N is given, exponential processing and mantissa processing are performed as follows.

【0010】数値Nを、例えば、182617206.617588625
(10進数)とすると、その立方根は 3√(182617206.6
17588625) =567.345 となる。上記数値の立方根を求め
るには、まず、上記数値182617206.617588625 を指数が
3の倍数になるように変換する。上記数値の場合には、
0.182617206617588625×106 と変換することができ、仮
数は0.182617206617588625、指数は9となる。
The numerical value N is, for example, 182617206.617588625.
If it is (decimal number), its cube root is 3 √ (182617206.6
17588625) = 567.345. In order to find the cube root of the numerical value, first, the numerical value 182617206.617588625 is converted so that the exponent becomes a multiple of 3. In case of the above number,
It can be converted to 0.182617206617588625 × 10 6 , the mantissa is 0.182617206617588625, and the exponent is 9.

【0011】そして、上記仮数について立方根(この場
合立方根は0.567345となる)を求め、求めた立方根を3
√(109) 倍(103 倍)することにより、上記立方根の解
567.345 を求めることができる。一般的には、数値Nを
n.nnnnnnn ×10m ( n は一桁の整数、mは整数) と表
し、指数mを3で割って剰余が0のときは、n.nnnnnnn
×10m (mは3の倍数)、剰余が2の時は、0.nnnnnnnn
×10m+1 (m+1は3の倍数)、剰余が1のときは、0.
0nnnnnnnn ×10m+2 (m+2は3の倍数)とすればよ
い。
Then, a cube root (in this case, the cube root is 0.567345) is obtained for the mantissa, and the obtained cube root is 3
By multiplying √ (10 9) times (10 3 times), the solution of the above cube root
You can ask for 567.345. Generally, the number N
n.nnnnnnn × 10 m (n is a one-digit integer, m is an integer), the exponent m is divided by 3 and the remainder is 0, n.nnnnnnn
× 10 m (m is a multiple of 3), when the remainder is 2, 0.nnnnnnnn
× 10 m + 1 (m + 1 is a multiple of 3), and when the remainder is 1, 0.
It may be set to 0nnnnnnnn × 10 m + 2 (m + 2 is a multiple of 3).

【0012】これを仮数部:1.XXXXX 、指数部:2N
16進数で考えると、次のようになる。なお、下記にお
いて、MOD はN/3 の剰余である。 MOD(N/3)=0:1.XXXXX *2 N MOD(N/3)=2:0.1XXXXX*2 N+1 MOD(N/3)=1:0.01XXXXX *2 N+2 (2) 立方根の算出 ついで、前記した182617206.617588625 (10進数)の
仮数部0.182617206617588625について、上位桁の立方根
3 √(0.182) を求める。この立方根(初期値INITとい
う)は、デコーダ等を用いて生成することができる。
Considering this in hexadecimal notation with a mantissa part: 1.XXXXX and an exponent part: 2 N , the result is as follows. In the following, MOD is the remainder of N / 3. MOD (N / 3) = 0: 1.XXXXX * 2 N MOD (N / 3) = 2: 0.1XXXXX * 2 N + 1 MOD (N / 3) = 1: 0.01XXXXX * 2 N + 2 (2) Calculation of cube root Next, regarding the mantissa part 0.182617206617588625 (decimal number) of 182617206.617588625 (decimal number), the cube root of the higher digit
Calculate 3 √ (0.182). This cube root (referred to as initial value INIT) can be generated using a decoder or the like.

【0013】ここで、上記上位桁の値を立方根の初期値
INITとすると、次の桁の商は、後述するように、(INIT)
2 (除数X2 の上位桁)と部分剰余(これをRem とい
う)から予測できるので、前記X=N/X2 の演算は、
上記初期値INITを求めたのち、部分剰余を求め、次の桁
の部分商を予測する処理を繰り返すことにより行うこと
ができる。
Here, the value of the upper digit is the initial value of the cube root.
If it is INIT, the quotient of the next digit will be (INIT)
Since it can be predicted from 2 (higher digit of divisor X 2 ) and partial remainder (this is called Rem), the operation of X = N / X 2 is
This can be performed by obtaining the initial value INIT, then obtaining the partial remainder, and repeating the process of predicting the partial quotient of the next digit.

【0014】次に、前記N/X2 の演算における除数X
2 、被除数N(=X3 )、部分剰余、および、商の予測
について説明する。ここで、立方根XをX=ABCD
(A,B,C,Dは16進数)として説明する。 (i) 除数X2 について 1桁目Aのとき X2 =A2 (Aは前記の初期値より作成) 2桁目Bのとき X2 =(A+B)2 =A2 +2AB+B2 =A2 +(2A+B)B 3桁目Cのとき X2 =(A+B+C)2 =(A+B)2 +2(A+B)C+C2 =(A+B)2 +{2(A+B)+C}C …以下同様… 上記式から明らかなように、除数となるX2 は、一つ前
の処理で使用した除数〔A2 ,(A+B)2 ,…〕に、
一つ前の立方根の2倍〔2A,2(A+B),…〕に新
しく予測した部分商〔B,C,…〕を加え、さらに、新
しく予測した部分商〔B,C,…〕を掛け合わせること
により作成することができる。
Next, the divisor X in the calculation of N / X 2
2 , prediction of dividend N (= X 3 ), partial remainder, and quotient will be described. Where cube root X is X = ABCD
(A, B, C and D are hexadecimal numbers). (i) Regarding divisor X 2 When the first digit is A X 2 = A 2 (A is created from the above initial value) When the second digit B is X 2 = (A + B) 2 = A 2 + 2AB + B 2 = A 2 + (2A + B) B At the third digit C X 2 = (A + B + C) 2 = (A + B) 2 +2 (A + B) C + C 2 = (A + B) 2 + {2 (A + B) + C} C ... Same as below ... Thus, the divisor X 2 is the divisor [A 2 , (A + B) 2 , ...] used in the previous process,
Add the newly predicted partial quotient [B, C, ...] to twice the previous cube root [2A, 2 (A + B), ...] and multiply by the newly predicted partial quotient [B, C, ...] It can be created by combining.

【0015】なお、予測商はたかだか数bit (4bit)なの
で乗算器を必要とせず、除算器の除倍数作成回路を使用
する。 (ii)被除数、部分剰余について ・被除数 1桁目Aのとき X3 =A3 2桁目Bのとき X3 =(A+B)3 =A3 +3A2 B+3AB2 +B3 =A3 +(3A2 +3AB+B2 )B 3桁目Cのとき X3 =(A+B+C)3 =(A+B)3 +3(A+B)2 C+3(A+B)C2 +C3 =(A+B)3 +{3(A+B)2 +3(A+B)C +C2 }C …以下同様… 被除数X3 は上記のように一つ前の処理で使用した値
〔A3 ,(A+B)3 ,…〕に〔3A2 B+3AB2
3 〕,〔3(A+B)2 C+3(A+B)C2
3 〕,…の補正を加えることにより求めることができ
る。
Since the predicted quotient is at most several bits (4 bits), no multiplier is required, and the division factor creating circuit of the divider is used. (ii) Regarding dividend and partial remainder ・ When the dividend is the first digit A X 3 = A 3 When the second digit B X 3 = (A + B) 3 = A 3 + 3A 2 B + 3AB 2 + B 3 = A 3 + (3A 2 + 3AB + B 2 ) B At the third digit C X 3 = (A + B + C) 3 = (A + B) 3 +3 (A + B) 2 C + 3 (A + B) C 2 + C 3 = (A + B) 3 + {3 (A + B) 2 +3 (A + B ) C + C 2 } C ... Same as below ... The dividend X 3 is [3A 2 B + 3AB 2 +] to the value [A 3 , (A + B) 3 , ...] Used in the previous processing as described above.
B 3 ], [3 (A + B) 2 C + 3 (A + B) C 2 +
C 3 ], ... Can be obtained by adding the correction.

【0016】ここで、3A2 B+3AB2 +B3 ={2
2 +(A+B)2 +AB}Bであり、A2 は一つ前の
除数X2 として求められており、また、(A+B)2
新しい除数として求められているので、これを使用する
ことができる。同様に、A,Bも除数を求めるところで
使用した値を使用できる。 (iii) 商の予測について 数値Nが与えられた時、前記したように、指数処理を行
いこの処理が終わった状態の仮数の上位桁より、立方根
の初期値(前記したINIT) を求める。
Here, 3A 2 B + 3AB 2 + B 3 = {2
A 2 + (A + B) 2 + AB} B, A 2 is obtained as the previous divisor X 2 , and (A + B) 2 is obtained as a new divisor, so use this. You can Similarly, for A and B, the values used for obtaining the divisor can be used. (iii) Prediction of quotient When a numerical value N is given, as described above, the exponential processing is performed, and the initial value of the cube root (INIT described above) is obtained from the upper digit of the mantissa in the state where this processing is completed.

【0017】これは、前記した除算における商予測(被
除数、部分剰余と除数により次の部分商を予測)のため
の除数(X2 )の上位bit を求めるものである。上記(i
i)に示した2桁目の部分商を求める例では、仮に立方根
が2桁目までであるとすると、N/X2 の部分剰余は、
1桁目の立方根Aを求めた時の差(A+B)3 −A3
あり、これが2桁目のBによる立方根の値に対応する。
This is to obtain the upper bit of the divisor (X 2 ) for the quotient prediction (prediction of the next partial quotient by the dividend, the partial remainder and the divisor) in the above division. Above (i
In the example of obtaining the partial quotient of the second digit shown in i), if the cube root is up to the second digit, the partial remainder of N / X 2 is
The difference (A + B) 3 −A 3 when the cube root A at the first digit is obtained corresponds to the cube root value by B at the second digit.

【0018】上記差(A+B)3 −A3 は前記した3A
2 B+3AB2 +B3 であり、これは次のように変形す
ることができる。 3A2 B+3AB2 +B3 ={(2A+B)2 −(A2 +AB)}B ={(2A+B)2 −(A2 +B/2)2 +(B/2)2 }B =〔(2A+B)2 −{(1/2)・(2A2 +B)}2 +(B/2)2 }B =(2A+B)2 {1−(1/4)+B2 /(2A+B)2 }B すなわち、上記〔(2A+B)2 {1−(1/4)+B
2 /(2A+B)2 }B〕が部分剰余として残っている
ことになる(これを以下、部分剰余Yという)。なお、
上記式において、Aは一つ前の処理の立方根であるの
で、桁数が求まる毎に、{2(A+B+C)+D}2
{2(A+B+C+D)+E}2 、…のようになる。
The difference (A + B) 3 −A 3 is the above 3A.
2 B + 3 AB 2 + B 3 , which can be transformed as follows. 3A 2 B + 3AB 2 + B 3 = {(2A + B) 2 - (A 2 + AB)} B = {(2A + B) 2 - (A 2 + B / 2) 2 + (B / 2) 2} B = [(2A + B) 2 - {(1/2) · (2A 2 + B)} 2 + (B / 2) 2} B = (2A + B) 2 {1- (1/4) + B 2 / (2A + B) 2} B i.e., the [ (2A + B) 2 {1- (1/4) + B
2 / (2A + B) 2 } B] remains as a partial remainder (hereinafter referred to as a partial remainder Y). In addition,
In the above equation, since A is the cube root of the previous process, {2 (A + B + C) + D} 2 ,
It becomes {2 (A + B + C + D) + E} 2 , ...

【0019】上記した部分剰余Yにおいて、(2A+
B)2 は新しく予測した部分商Bの2乗B2 より非常に
大きいから、B2 /(2A+B)2 ≒0と考えることが
でき、{1−(1/4)+B2 /(2A+B)2 }≒
(3/4)と見做すことができる。同様に、2A+Bも
2Aと見做すことができるので、上記Yは次のように表
すことができる。 Y=(2A)2 ・(3/4)・B=3A2 B すなわち、次の部分商Bは部分剰余Yと3A2 によって
予測できる。すなわち、次の桁の部分商(上記Bに相
当)は前の桁の部分商(上記Aに相当)と部分剰余Yか
ら予測できることとなる。ここで、上記除数A2 の上位
桁はINIT2 であるので、商予測にはINIT2 を使用しても
大きな誤差は出ない。
In the above partial remainder Y, (2A +
Since B) 2 is much greater than the square B 2 newly predicted partial quotient B, B 2 / (2A + B) can be considered as 2 ≒ 0, {1- (1/4 ) + B 2 / (2A + B) 2 } ≒
It can be regarded as (3/4). Similarly, since 2A + B can also be regarded as 2A, the above Y can be expressed as follows. Y = (2A) 2 · (3/4) · B = 3A 2 B That is, the next partial quotient B can be predicted by the partial remainder Y and 3A 2 . That is, the partial quotient of the next digit (corresponding to B above) can be predicted from the partial quotient of the previous digit (corresponding to A above) and the partial remainder Y. Here, since the upper digit of the divisor A 2 is INIT 2 , even if INIT 2 is used for quotient prediction, a large error does not occur.

【0020】したがって、除算の商予測のために、N/
2 の処理前に予め立方根の初期値INITより3(INIT)
2 を求めておき、3(INIT)2 と部分剰余から順次、各
桁の商を予測することにより、立方根を求めることがで
きる。図2は上記処理を示すフローチャートであり、同
図により本発明において立方根を求める手順を説明す
る。なお、同図は16進数における処理を示している。ス
テップS1において、入力データを設定する。ステップ
S2において、前記したように指数が3の倍数になるよ
うに指数、仮数を補正する。
Therefore, for the quotient prediction of division, N /
3 (INIT) from the cube root's initial value INIT before processing X 2.
The cube root can be obtained by calculating 2 and predicting the quotient of each digit sequentially from 3 (INIT) 2 and the partial remainder. FIG. 2 is a flow chart showing the above process, and the procedure for obtaining a cube root in the present invention will be described with reference to the same figure. The figure shows processing in hexadecimal. In step S1, input data is set. In step S2, the exponent and the mantissa are corrected so that the exponent becomes a multiple of 3 as described above.

【0021】そして、ステップS11において、補正さ
れた指数/3により立方根の指数を作成する。また、ス
テップ3において、補正された仮数から初期値(INIT)
を作成し、ステップS4において、商予測のため3INIT
2 (被除数DRS:X2 )を作成し保持する。
Then, in step S11, a cube root index is created from the corrected index / 3. Further, in step 3, the corrected mantissa is used as the initial value (INIT).
To create 3INIT for quotient prediction in step S4.
Create and hold 2 (dividend DRS: X 2 ).

【0022】ステップS5において、最初の有効ビット
(A)を取り出し、A3 を作成し、ステップS6におい
て、剰余Rem =DND-A3 を求める。そして、ステップS
7において、有効桁まで求まったか、または、剰余が0
になったか否かを判定し、YESの場合は、ステップS
12にいき、求めた仮数部と指数部から計算結果を作成
し、終了する。
[0022] In step S5, take out the first valid bit (A), to create the A 3, in step S6, obtains the remainder Rem = DND-A 3. And step S
In 7, the significant digit is obtained or the remainder is 0
If YES, step S
12, the calculation result is created from the obtained mantissa part and exponent part, and the process ends.

【0023】また、ステップS7において、NOの場合
には、ステップS8に行き、上記剰余(Rem1)と除数DRS:
2 により次の部分商B(4bit) を予測する。ステップ
S9において、次の部分商(B)により新しい除数(A
+B)2 を作成し、ステップS10において、次の剰余
Rem2を求める。すなわち、次の剰余はRem2=DND −(A
+B)3 であり、これは、前記したように、Rem1−{2
2 +(A+B)2 +AB}Bに相当するので、この式
より次の剰余Rem2を算出する。次の剰余が求まると、ス
テップS7に戻り上記処理を繰り返す。
If NO in step S7, the process proceeds to step S8, and the remainder (Rem1) and divisor DRS:
The next partial quotient B (4 bits) is predicted by X 2 . In step S9, a new divisor (A
+ B) 2 is created, and in step S10, the next remainder
Ask for Rem2. That is, the next remainder is Rem2 = DND- (A
+ B) 3 , which is, as described above, Rem1- {2
Since this corresponds to A 2 + (A + B) 2 + AB} B, the following remainder Rem2 is calculated from this equation. When the next remainder is obtained, the process returns to step S7 and the above process is repeated.

【0024】図3は上記のようにして求めた、立方根
X、除数X2 、被除数X3 、剰余N−X3 、および、部
分商予測値(N−X3 )/(3・INIT2 ) とその期待値
の一例を示す図である。同図は、3 √(182617206.61758
85) =567.345 ( 10進数) を16進数で演算した結果
を示している。上記入力データを指数表現で示すと、1.
826172066175885E+08 となり、これは16進数で、X"47
AE284769E1A493" となる。
FIG. 3 shows the cube root X, the divisor X 2 , the dividend X 3 , the remainder N−X 3 , and the partial quotient predicted value (N−X 3 ) / (3 · INIT 2 ), which are obtained as described above. It is a figure which shows an example of and its expected value. The figure shows 3 √ (182617206.61758
85) = 567.345 (decimal number) is shown in hexadecimal. When the above input data is expressed in exponential notation: 1.
826172066175885E + 08, which is a hexadecimal number, X "47
It becomes AE284769E1A493 ".

【0025】そして、これを2進数表現すると、1.0101
1100010....*227 となり、X=3 √(1.0101110001
0....)*29となる。なお、16進数表現のときの上位2
桁(上記[47])は指数であり、指数は8ビット(25
6)の値の真ん中を指数0として、それからのオフセッ
トで表している。
When expressed in binary, it is 1.0101.
1100010 .... * 2 27 and X = 3 √ (1.0101110001
0 ....) * 2 9 It should be noted that the top 2 in hexadecimal notation
The digit ([47] above) is the exponent, which is 8 bits (25
The center of the value of 6) is set as an index 0, and is represented by an offset from the index.

【0026】また、立方根567.345 を指数表現で小数点
の下位まで示すと、5.673449999999999E+02 となり、こ
れは16進数で、X"432375851EB851EB" となる。同図か
ら、部分商の予測値(N−X3 )/(3・INIT2 ) の指
数部を除く一桁目と部分商の期待値が一行目を除き一致
していることがわかる。さらに、除数X 2 の3桁目以降
は[4E9] で一定となり、前記したように3・INIT2 (3
2 )によって部分商予測ができることがわかる。
Also, the cube root 567.345 is expressed as a decimal point in exponential notation.
If you show up to the lower part of, it becomes 5.673449999999999E + 02.
This is a hexadecimal number, which is X "432375851EB851EB". Same figure
, The predicted value of the partial quotient (N−X3) / (3 ・ INIT2) Finger
Expected values for the first digit and partial quotient, excluding some parts, match except for the first line
You can see that Furthermore, the divisor X 2After the 3rd digit
Becomes constant at [4E9], and as described above, 3 ・ INIT2(3
X2) Shows that partial quotient prediction is possible.

【0027】図4は理解を容易にするため10進数の立
方根を求める演算例を示す図であり、同図は、前記した
182617206.617588625 (10進数)の立方根 3√(18261
7206.617588625) =567.345 を求める演算例を示してお
り、上記数値の初期商INITは56である。同図において、
まず、初期商INITとして、INIT=56 が求まったとし、該
初期商から3(INIT)2 を求めると、3(INIT)2 =940
8 となる。
FIG. 4 is a diagram showing an example of calculation for obtaining a cube root of a decimal number for easy understanding.
182617206.617588625 (decimal) cube root 3 √ (18261
7206.617588625) = 567.345 is shown, and the initial quotient INIT of the above numerical value is 56. In the figure,
First, assuming that INIT = 56 is obtained as the initial quotient INIT, and 3 (INIT) 2 is obtained from the initial quotient, 3 (INIT) 2 = 940
8

【0028】そして、一桁目の商は5であり、53は125
であるから、部分剰余REM を求めると、同図に示すよう
に、57617206617588625 となる。予測商は求めた部分剰
余REM (上から3桁を取ると576 となる)と3(INIT)
2 (=9408 )から求まり、REM /3(INIT)2 を計算す
ると、576 /9408= 0.0612となり、次の予測商は同図で
#を付した6となる。
The quotient of the first digit is 5, and 53Is 125
Therefore, when the partial remainder REM is calculated, as shown in the figure.
That is 57617206617588625. The predicted quotient is the calculated partial remainder
Extra REM (If you take the 3 digits from the top, it becomes 576) and 3 (INIT)
2Calculated from (= 9408), REM / 3 (INIT)2Calculate
Then, 576/9408 = 0.0612, and the next predicted quotient is the same figure.
It becomes 6 marked with #.

【0029】次に前記した3A2 B+3AB2 +B3
すなわち、{2A2 +(A+B)2+AB}Bを算出す
ると、50616 が求まる。これと、前回求めた部分剰余57
617206617588625 から次の部分剰余を求めると、同図に
示すように、7001206617588625となる。この上位3桁と
前記した3(INIT)2 =9408から次の部分商を予測する
と、700 /9408=0.0744となり、次の予測商は同図で#
を付した7となる。
Next, the above-mentioned 3A 2 B + 3AB 2 + B 3 ,
That is, 50616 is obtained by calculating {2A 2 + (A + B) 2 + AB} B. This and the partial remainder 57 obtained last time
When the next partial remainder is calculated from 617206617588625, it becomes 7001206617588625 as shown in the figure. Predicting the next partial quotient from this upper 3 digits and 3 (INIT) 2 = 9408 described above yields 700/9408 = 0.0744, and the next predicted quotient is
It becomes 7 with.

【0030】次に、求めた部分商7を用いて上記{2A
2 +(A+B)2 +AB}Bを算出すると、同図に示す
ように6668263 となりこれから次の部分剰余を求めるこ
とができる。以下同様に処理を進めていくことにより、
立方根 567.345を求めることができる。
Next, using the obtained partial quotient 7, the above {2A
When 2 + (A + B) 2 + AB} B is calculated, it becomes 6668263 as shown in the figure, from which the next partial remainder can be obtained. By proceeding in the same way below,
You can ask for a cube root of 567.345.

【0031】本発明は、上記原理に基づき立方根を求め
るているので、除算器に簡単な付加回路を付加するだけ
で、立方根を求めることができる。
Since the present invention obtains a cube root based on the above principle, the cube root can be obtained only by adding a simple additional circuit to the divider.

【0032】[0032]

【実施例】図5は本発明の実施例の立方根演算器のブロ
ック図である。同図において、11は入力データの指数
を3で除したときの剰余を求める剰余検出器、12は剰
余検出器11の出力に基づき、3の倍数となる指数を求
める演算器であり、演算器12は補正された指数3nを
出力し、該指数はレジスタ15に保持される。そして、
レジスタ15の指数3nは演算回路21において3で割
り算されてnが求められ、立方根の指数として指数結果
レジスタ24に保持される。
FIG. 5 is a block diagram of a cube root calculator according to an embodiment of the present invention. In the figure, 11 is a remainder detector that obtains a remainder when the exponent of input data is divided by 3, and 12 is an operator that obtains an exponent that is a multiple of 3 based on the output of the remainder detector 11. 12 outputs the corrected exponent 3n, which is held in the register 15. And
The exponent 3n of the register 15 is divided by 3 in the arithmetic circuit 21 to obtain n, which is held in the exponent result register 24 as a cube root exponent.

【0033】13はデコーダであり、デコーダ13は入
力データと指数の3による剰余から立方根の初期値INIT
を生成する。なお、初期値INITを生成する手段として
は、デコーダ以外に入力データの上位桁とそれに対応し
た立方根を記録したテーブル等を使用することができ
る。14は仮数補正回路であり、仮数補正回路14は入
力データを剰余検出器11の出力により補正し、立方根
を求める対象となる仮数を出力する。
Reference numeral 13 is a decoder, and the decoder 13 uses the remainder of the input data and the exponent 3 as the cube root initial value INIT.
Generate As a means for generating the initial value INIT, a table in which the upper digit of the input data and the corresponding cube root are recorded can be used in addition to the decoder. Reference numeral 14 is a mantissa correction circuit. The mantissa correction circuit 14 corrects the input data by the output of the remainder detector 11 and outputs a mantissa for which a cube root is to be obtained.

【0034】16はレジスタであり、上記初期値INITを
保持するとともに、後述する加減算器20において求め
た3・INIT2 を保持する。17は上記仮数補正回路14
が出力する被除数DND 、部分剰余を保持するレジスタ、
18は被除数A2 , (A+B)2 ,…を保持するレジス
タ、19はB2 、INIT2 を保持するレジスタである。
Reference numeral 16 is a register, which holds the initial value INIT and also holds 3 · INIT 2 obtained by the adder / subtractor 20 described later. Reference numeral 17 is the mantissa correction circuit 14
The dividend DND output by, the register holding the partial remainder,
18 is a register for holding the dividends A 2 , (A + B) 2 , ... And 19 is a register for holding B 2 and INIT 2 .

【0035】20は加減算器であり、上記レジスタ1
7、18、19から与えられる被除数(部分剰余)、除
数、B2 、および、後述する部分商レジスタ23、仮数
結果レジスタ25から与えられるB,Aに基づき、同図
に示す部分剰余REM1,REM2,…を求めるとともに、初期
値INITから3・INIT2 を生成する。生成された3・INIT
2 は、前記レジスタ16に保持される。
Reference numeral 20 denotes an adder / subtractor, which is used in the register 1
The dividend (partial remainder) given by 7, 18, 19
Number, B2, And a partial quotient register 23, which will be described later, and a mantissa
The figure is based on B and A given from the result register 25.
The partial remainders REM1, REM2, ...
Value INIT to 3 · INIT2To generate. Generated 3 INIT
2Are held in the register 16.

【0036】22は商予測回路であり、加減算器20で
求めた剰余をレジスタ16に保持された3・INIT2 で割
って部分商Bを求め、求められた部分商Bは部分商レジ
スタ23に保持される。25は仮数結果レジスタであ
り、仮数結果レジスタ25は部分商レジスタ23に保持
された部分商を桁シフトしながら順次保持し、立方根の
仮数部FRAC(A) を生成する。
Reference numeral 22 is a quotient prediction circuit, which divides the remainder obtained by the adder / subtractor 20 by 3.INIT 2 held in the register 16 to obtain a partial quotient B. The obtained partial quotient B is stored in the partial quotient register 23. Retained. Reference numeral 25 is a mantissa result register. The mantissa result register 25 sequentially holds the partial quotient held in the partial quotient register 23 while shifting the digits, and generates a mantissa part FRAC (A) of a cube root.

【0037】次に本実施例の立方根演算器の動作を説明
する。入力データが与えられると、剰余検出器11は入
力データの指数部を3で割って剰余を求める。演算回路
12は上記剰余と入力データの指数部に基づき、補正さ
れた指数3nを求める。すなわち、前記したように、剰
余が0の場合は入力データの指数Nをそのまま3nと
し、また、剰余が1の場合は上記指数N+1=3n、剰
余が2の場合は、N+2=3nとする。該指数3nはレ
ジスタ15に保持される。そして、演算器21で上記指
数3nを3で割って立方根の指数nを求め、指数結果レ
ジスタ24に格納する。
Next, the operation of the cube root calculator of this embodiment will be described. When the input data is given, the remainder detector 11 divides the exponent part of the input data by 3 to obtain the remainder. The arithmetic circuit 12 obtains the corrected exponent 3n based on the remainder and the exponent part of the input data. That is, as described above, when the remainder is 0, the index N of the input data is set to 3n as it is, when the remainder is 1, the index N + 1 = 3n, and when the remainder is 2, N + 2 = 3n. The index 3n is held in the register 15. The arithmetic unit 21 divides the exponent 3n by 3 to obtain the cube root exponent n, and stores it in the exponent result register 24.

【0038】一方、仮数補正回路14は上記剰余検出器
11が出力する剰余に応じて、入力データの仮数部をシ
フトして補正された仮数を生成しレジスタ17に与え
る。また、デコーダ13は入力データの上位桁から立方
根の初期値INITを生成し、レジスタ16に保持させ、初
期値INITより最初の有効bit Aを取り出し、仮数結果レ
ジスタ25に格納する。
On the other hand, the mantissa correction circuit 14 shifts the mantissa part of the input data according to the remainder output by the remainder detector 11 to generate a corrected mantissa and supplies it to the register 17. Further, the decoder 13 generates an initial value INIT of a cube root from the upper digit of the input data, causes the register 16 to hold it, extracts the first valid bit A from the initial value INIT, and stores it in the mantissa result register 25.

【0039】レジスタ16に保持された初期値INITは加
減算器20に与えられ、加減算器20は3・INIT2 を生
成し、上記レジスタ16は3・INIT2 を保持する。次
に、最初の有効bit AからA3 を生成し、加減算器20
において、レジスタ17に格納された被除数DND からA
3 を減算して、剰余REM1を求めレジスタ17に格納す
る。
The initial value INIT held in the register 16 is given to the adder / subtractor 20, the adder / subtractor 20 generates 3 · INIT 2 , and the register 16 holds 3 · INIT 2 . Next, A 3 is generated from the first effective bit A, and the adder / subtractor 20
, The dividend DND stored in register 17 to A
Subtract 3 to obtain the remainder REM1 and store it in the register 17.

【0040】また、商予測回路22はレジスタ16に保
持された3・INIT2 と上記剰余REM1から部分商Bを予測
し、部分商レジスタ23に格納する。部分商レジスタ2
3に格納された部分商Bは仮数結果レジスタ25に送ら
れ保持される。加減算回路20は上記部分商BからB2
を生成してレジスタ19に格納し、前記したAと、部分
商BとB2 および剰余REM1から剰余REM2を求める。商予
測回路22は上記剰余REM2とレジスタ16に格納されて
いる3・INIT2 から次の部分商の予測値を求める。
Further, the quotient prediction circuit 22 predicts the partial quotient B from the 3INIT 2 held in the register 16 and the remainder REM1 and stores it in the partial quotient register 23. Partial quotient register 2
The partial quotient B stored in 3 is sent to and held in the mantissa result register 25. The adder / subtractor circuit 20 uses the partial quotients B to B 2
And stores generated and the register 19, and A described above, obtaining the remainder REM2 from partial quotient B and B 2 and remainder REM1. Quotient prediction circuit 22 obtains the prediction value of the next partial quotient from 3 · INIT 2 stored in the remainder REM2 and register 16.

【0041】以下、同様の処理を繰り返して立方根の各
桁を求め、求めた仮数の各桁は仮数結果レジスタ25に
桁シフトしながら順次格納される。そして、剰余が0と
なったり、あるいは仮数が所定の有効桁まで求まると、
指数結果レジスタ24に格納されている指数と、仮数結
果レジスタ25に格納された仮数が計算結果として出力
される。
Thereafter, the same process is repeated to find each digit of the cube root, and each digit of the obtained mantissa is sequentially stored in the mantissa result register 25 while shifting the digit. Then, when the remainder becomes 0 or when the mantissa is obtained up to a predetermined significant digit,
The exponent stored in the exponent result register 24 and the mantissa stored in the mantissa result register 25 are output as the calculation result.

【0042】[0042]

【発明の効果】以上説明したように、本発明は、入力デ
ータNの指数/仮数処理をしたのち、補正された仮数の
上位桁から初期値INITを求めるとともに上記除算の部分
剰余を求め、上記初期値INITと部分剰余から部分商を予
測しながら、X=N/X2 (Nは入力データ、Xはその
立方根)により、立方根Xを求めるようにしたので、除
算器に簡単な付加回路を付加するだけで、立方根を求め
ることができる。
As described above, according to the present invention, after the exponent / mantissa processing of the input data N, the initial value INIT is obtained from the higher digit of the corrected mantissa and the partial remainder of the division is calculated. While predicting the partial quotient from the initial value INIT and the partial remainder, the cube root X is obtained from X = N / X 2 (N is the input data, X is its cube root), so a simple adder circuit is added to the divider. The cube root can be obtained by simply adding it.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の立方根を求める処理手順を示す図であ
る。
FIG. 2 is a diagram showing a processing procedure for obtaining a cube root of the present invention.

【図3】本発明による立方根算出の演算例(16進数)
を示す図である。
FIG. 3 is a calculation example (hexadecimal number) of cubic root calculation according to the present invention.
FIG.

【図4】本発明による立方根算出の演算例(10進数)
を示す図である。
FIG. 4 is a calculation example (decimal number) of cubic root calculation according to the present invention.
FIG.

【図5】本発明の実施例の立方根演算器のブロック図で
ある。
FIG. 5 is a block diagram of a cube root calculator according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 仮数値/指数値処理手段 2 初期値INITと3*(INIT)2 を生成する手段 3 部分剰余を算出する手段 4 部分商を予測する手段 5 仮数結果を保持する手段 11 剰余検出器 12 演算器 13 デコーダ 14 仮数補正回路 15 レジスタ 16 レジスタ 17 レジスタ 18 レジスタ 19 レジスタ 20 加減算器 21 演算回路 22 商予測回路 23 部分商レジスタ 24 指数結果レジスタ 25 仮数結果レジスタ1 Mantissa Value / Exponent Value Processing Means 2 Means for Generating Initial Values INIT and 3 * (INIT) 2 3 Means for Calculating Partial Remainder 4 Means for Predicting Partial Quotient 5 Means for Retaining Mantissa Result 11 Residue Detector 12 Calculation Unit 13 decoder 14 mantissa correction circuit 15 register 16 register 17 register 18 register 19 register 20 adder-subtractor 21 arithmetic circuit 22 quotient prediction circuit 23 partial quotient register 24 exponent result register 25 mantissa result register

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 与えられた数値Nをその立方根Xの自乗
で除することにより、数値Nの立方根を求める立方根演
算装置であって、 与えられた数値の指数値を3で除した剰余に基づき、立
方根の指数部を生成するとともに、与えられた数値の仮
数値を補正する手段と、 前記補正された仮数値より、上記与えられた数値の立方
根の初期値INITを求める手段と、 前記補正された仮数値もしくは前回求めた部分剰余と、
上記初期値INITから得た立方根の最上位桁もしくはこれ
までに算出されたN/X2 の商、および、新たに予測さ
れた部分商に基づき、新たな部分剰余を算出する手段
と、 部分剰余と初期値INITもしくはこれまでに算出されたN
/X2 の商から新しい部分商を予測する手段とを備え、 所定の有効桁数が得られるまで、もしくは、部分剰余が
0になるまで、新し部分商を求める処理を繰り返し、数
値Nの立方根を算出することを特徴とする立方根演算回
路。
1. A cube root arithmetic unit for obtaining a cube root of a numerical value N by dividing the given numerical value N by the square of its cube root X, based on a remainder obtained by dividing an exponent value of the given numerical value by 3. , Means for generating an exponent part of the cube root and correcting the mantissa value of the given numerical value, means for obtaining the initial value INIT of the cube root of the given numerical value from the corrected mantissa value, and the corrected The mantissa value or the partial remainder obtained last time,
Means for calculating a new partial remainder based on the most significant digit of the cube root obtained from the initial value INIT or the quotient of N / X 2 calculated so far, and the newly predicted partial quotient, and the partial remainder And initial value INIT or N calculated so far
Means for predicting a new partial quotient from the quotient of / X 2 and repeating the process of obtaining a new partial quotient until a predetermined number of significant digits is obtained or the partial remainder becomes 0, A cube root arithmetic circuit characterized by calculating a cube root.
【請求項2】 与えられた数値Nをその立方根Xの自乗
で除することにより、数値Nの立方根を求める立方根演
算装置であって、 与えられた数値の指数値を3で除して、その剰余によっ
て補正された指数値を得て立方根の指数部を生成する指
数部生成手段と、 上記指数値の3による剰余により、与えられた数値の仮
数値を補正し、補正された仮数値を生成する手段と、 前記補正された仮数値より、上記与えられた数値の立方
根の初期値INITを求め、初期値INITより、3*(INIT)
2 を求める手段と、 前記補正された仮数値もしくは前回求めた部分剰余と、
上記初期値INITから得た立方根の最上位桁もしくはこれ
までに算出されたN/X2 の商、および、新たに予測さ
れた部分商に基づき、新たな部分剰余を算出する手段
と、 部分剰余を前記した3*(INIT)2 で除し、新しい部分
商を予測する手段と、 求めた部分商を桁をシフトしながら順次格納する仮数値
保持手段と、前記指数部生成手段と上記仮数値保持手段
の出力を前記数値Nの立方根として出力する手段とを備
え、 所定の有効桁数が得られるまで、もしくは、部分剰余が
0になるまで、新し部分商を求める処理を繰り返し、数
値Nの立方根を算出することを特徴とする立方根演算回
路。
2. A cube root computing device for obtaining a cube root of a numerical value N by dividing the given numerical value N by the square of its cubic root X, wherein the exponent value of the given numerical value is divided by 3 The exponent part generating means for obtaining the exponent part corrected by the remainder to generate the exponent part of the cube root, and the remainder by the exponent value of 3 are used to correct the mantissa value of the given numerical value and generate the corrected mantissa value. Means and the initial value INIT of the cube root of the given value from the corrected mantissa value, and 3 * (INIT) from the initial value INIT
2 means, and the corrected mantissa value or the partial remainder obtained last time,
Means for calculating a new partial remainder based on the most significant digit of the cube root obtained from the initial value INIT or the quotient of N / X 2 calculated so far, and the newly predicted partial quotient, and the partial remainder Is divided by 3 * (INIT) 2 described above, a means for predicting a new partial quotient, a mantissa value holding means for sequentially storing the obtained partial quotient while shifting the digit, the exponent part generating means, and the mantissa value. Means for outputting the output of the holding means as a cube root of the numerical value N, and repeating the processing for obtaining a new partial quotient until a predetermined number of significant digits is obtained or the partial remainder becomes 0, and the numerical value N A cube root arithmetic circuit characterized by calculating a cube root of.
【請求項3】 部分剰余を算出する手段が、 これまでに算出されたN/X2 の商をA、新たに予測さ
れた部分商をBとしたとき、上記Aから得たA2 に(2
A+B)Bを加えて(A+B)2 を求め、 上記(A+B)2 から部分剰余の補正値を得て、該補正
値を前回求めた部分剰余から減算する処理を上記A,B
を更新しながら繰り返して部分剰余を求めることを特徴
とする請求項1または請求項2の立方根演算回路。
Wherein means for calculating the partial remainder until the quotient of the calculated N / X 2 to A, the newly predicted partial quotient when a B, and A 2 obtained from the A ( Two
A + B) B is added to obtain (A + B) 2 , the correction value of the partial remainder is obtained from the above (A + B) 2 , and the correction value is subtracted from the previously obtained partial remainder.
3. The cube root arithmetic circuit according to claim 1 or 2, wherein the partial remainder is repeatedly obtained while updating.
JP5227295A 1995-03-13 1995-03-13 Cubic root arithmetic unit Withdrawn JPH08249161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5227295A JPH08249161A (en) 1995-03-13 1995-03-13 Cubic root arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5227295A JPH08249161A (en) 1995-03-13 1995-03-13 Cubic root arithmetic unit

Publications (1)

Publication Number Publication Date
JPH08249161A true JPH08249161A (en) 1996-09-27

Family

ID=12910154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5227295A Withdrawn JPH08249161A (en) 1995-03-13 1995-03-13 Cubic root arithmetic unit

Country Status (1)

Country Link
JP (1) JPH08249161A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040001054A (en) * 2002-06-26 2004-01-07 칩스브레인(주) Cubic root system
US7647367B2 (en) 2002-12-23 2010-01-12 Infineon Technologies Ag Apparatus and method for calculating a multiplication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040001054A (en) * 2002-06-26 2004-01-07 칩스브레인(주) Cubic root system
US7647367B2 (en) 2002-12-23 2010-01-12 Infineon Technologies Ag Apparatus and method for calculating a multiplication

Similar Documents

Publication Publication Date Title
CA2530015C (en) Division and square root arithmetic unit
JPH03136129A (en) Dividing circuit and dividing method
KR850007899A (en) Non-Recoverable Dividers
US8751555B2 (en) Rounding unit for decimal floating-point division
US9785407B2 (en) Data processing apparatus having combined divide-square root circuitry
US20080208945A1 (en) Method to compute an approximation to the reciprocal of the square root of a floating point number in ieee format
JP2006227939A (en) Arithmetic unit
JPH03171324A (en) Circuit and method for calculating square root of operand
JP3551113B2 (en) Divider
JPH05204611A (en) Method and device for executing pre-scale type division
CA2329104C (en) Method and apparatus for calculating a reciprocal
US7809784B2 (en) Apparatus and method for calculation of divisions and square roots
JPH0833816B2 (en) Fixed-point division method
JPH08249161A (en) Cubic root arithmetic unit
US10353671B2 (en) Circuitry and method for performing division
JPS6155691B2 (en)
JP2006023974A (en) Remainder calculation processor and remainder calculation processing method
JPH0368415B2 (en)
JP2777265B2 (en) High radix square root arithmetic unit
JP2995721B2 (en) Division device and division method
JPH06180640A (en) Device and method for division
JPH0836483A (en) Division device
KR20000074611A (en) High radix floting point divider
JPH0754458B2 (en) Multiplication circuit
JPH0635679A (en) Square root arithmetic unit

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020604