JPS58178478A - Arithmetic device for inverse trigonometric function - Google Patents

Arithmetic device for inverse trigonometric function

Info

Publication number
JPS58178478A
JPS58178478A JP6213582A JP6213582A JPS58178478A JP S58178478 A JPS58178478 A JP S58178478A JP 6213582 A JP6213582 A JP 6213582A JP 6213582 A JP6213582 A JP 6213582A JP S58178478 A JPS58178478 A JP S58178478A
Authority
JP
Japan
Prior art keywords
register
angle
contents
value
rotation
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.)
Pending
Application number
JP6213582A
Other languages
Japanese (ja)
Inventor
Munehisa Furuya
古谷 宗久
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP6213582A priority Critical patent/JPS58178478A/en
Publication of JPS58178478A publication Critical patent/JPS58178478A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/544Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices for evaluating functions by calculation
    • G06F7/548Trigonometric functions; Co-ordinate transformations

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Complex Calculations (AREA)

Abstract

PURPOSE:To shorten an arithmetic time by rotating a point on an orthogonal coordinates until its X and Y components attain to alpha, and finding sin<-1>alpha and cos<-1>alpha from the angle of rotation. CONSTITUTION:A vector (1,0) on an (x) axis is rotated by tan<-1>1/1(=45 deg.). The angle of rotation is decreased successively in the order of tan<-1>1/2, tan<-1>1/4, tan<-1>1/8...tan<-1>1/2n. Further, when the (y) component after the rotation is greater than alpha, clockwise rotation is performed next and when the (y) component is smaller than alpha to the contrary, counterclockwise rotation is performed. The angle of rotation approximating alpha is an angle to be found. The X and Y components after the rotation are stored in an X register 5 and a Y register 6. The contents of both registers 5 and 6 are inputted to a 1/2<n> arithmetic device, where they are processed to find the X and Y components after the rotation. This operation is repeated.

Description

【発明の詳細な説明】 この発明はディジタル的に、特に布線論理方式により逆
三角関数を演算し、角度を求める逆三角関数演算装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an inverse trigonometric function calculation device that calculates an angle by digitally calculating an inverse trigonometric function using a wiring logic method.

従来、この種の計算はプログラム蓄積型デイジタル計算
機でソフトウェア的に行っており、逆三角関数Sinα
、Cos ct%Tanαのいずれの演算により角度を
求める場合も近似式を利用し、ソフトウェア的に級数演
算して行なっている。
Conventionally, this type of calculation has been performed using software on a program-storing digital computer, using the inverse trigonometric function Sinα
, Cos ct%Tanα, and when calculating the angle, an approximate expression is used and a series calculation is performed using software.

しかるに従来のソフトウェア的な計算では処理時間が長
くかかり、実時間で逆三角関数を演算する場合には不適
であった。
However, conventional software-based calculations take a long processing time and are not suitable for calculating inverse trigonometric functions in real time.

この発明は逆三角関数の演算時間を速くするためになさ
れたもので、プログラム制御方式によるソフトウェア的
な演算ではなく、直交座標における点(Rho)を回転
して得られるX成分、或いはY成分がそれぞれSinα
のα、Cooαのαになるまで回転し、この回転角によ
りSinα Cos’Pを求めるようにした逆三角関数
演算装置を提供することを目的としている。
This invention was made to speed up the calculation time of inverse trigonometric functions, and instead of using software calculations using a program control method, the X component or Y component obtained by rotating a point (Rho) on orthogonal coordinates is Sinα respectively
It is an object of the present invention to provide an inverse trigonometric function calculation device that rotates until α of Cooα and α of Cooα, and obtains Sinα Cos'P using this rotation angle.

以下、この発明の一実施例を図について説明する。第1
図において、(1)はプログラム制御型計算機或いはデ
ータ処理装置等の外部機器、(2)は外部機器(1)か
ら本装置へ入力するデータα、(3)はn・1 Tan 1/8.5in(n−Tan 1./8人 c
os(n@Tan V8)(n:Q 、 l 、 2.
−++ 、 m 、 m :整数〕、5in45”等の
定数を紀憶し、制御器(8)の指令に基づいた定数をB
パス圓に出力する定数発生器、(4)は入力端子A。
An embodiment of the present invention will be described below with reference to the drawings. 1st
In the figure, (1) is an external device such as a program-controlled computer or a data processing device, (2) is data α input from the external device (1) to this device, and (3) is n·1 Tan 1/8. 5in (n-Tan 1./8 people c
os(n@Tan V8)(n:Q, l, 2.
-++, m, m: integer], 5in45", etc., and set the constant based on the command of the controller (8) as B.
A constant generator that outputs to the path circle, (4) is input terminal A.

Bに入力される値について加算あるいは減算を行う加減
算装置、+51 +61 +7109はそれぞれ加減算
装置(4)の出力を一時格納するXレジスタ、Xレジス
タ、角度レジスタ、及びαレジスタ、(8)は符号レジ
スタ+161の値、即ち正、負によって加減算装置(4
)に対して加算或いは減算を指令し、また定数発生器(
3)に対して出力する定数を指定し、また後述する16
n演算装置(9)に対してnの値を指定する制御器、(
9)はXレジスタ(5)或いはXレジスタ(6)の内容
を1/2n倍するし?演算装置、(l〔はXレジスタ(
5)の内容をV2ri演算装置(9)によりVf倍した
結果を一時格納するXルジスタ、αυはXレジスタ(6
)の内容を1/)n演算装置(9)によりV2n倍した
結果を一時格納するYルジスタ、02は入力データα(
2)、定数発生器(3)からの定数、Xルジスタ叫の内
容、或いはYルジスタ(Iυの内容を加減算装置(4)
の入力端子Bに転送するBバス(いわゆるパスライン)
、03は加減算装置(4)から出力されるデータをXレ
ジスタ(5)、Xレジスタ(6)、角度レジスタ(7)
、或いはαレジスタ(提へ転送するCバス、u4)はX
レジスタ(5)の内容、Xレジスタ(6)の内容、或い
は角度レジスタ(7)の内蓉を加減算装置(4)の入力
端子Aと1//211演算装置(9)へ転送するAバス
、(161は加減算装置(4)から出力される符号ビッ
トを一時格納する符号レジスタである。
Addition and subtraction devices that add or subtract values input to B, +51, +61, and +7109 are X registers, X registers, angle registers, and α registers that temporarily store the outputs of the addition and subtraction devices (4), respectively, and (8) is a sign register. Addition/subtraction device (4
) to add or subtract, and also to the constant generator (
Specify the constant to be output for 3), and also specify the constant 16 to be described later.
a controller that specifies the value of n for the n arithmetic unit (9), (
9) multiplies the contents of X register (5) or X register (6) by 1/2n? Arithmetic unit, (l [is X register (
5) is multiplied by Vf by the V2ri arithmetic unit (9), and αυ is the X register (6
02 is the input data α(
2) Add/subtract the constant from the constant generator (3), the contents of the X register, or the contents of the Y register (Iυ)
B bus (so-called pass line) that transfers to input terminal B of
, 03 is the data output from the addition/subtraction device (4) to the X register (5), X register (6), and angle register (7).
, or the α register (C bus, u4 that transfers to
an A bus that transfers the contents of the register (5), the contents of the X register (6), or the contents of the angle register (7) to the input terminal A of the addition/subtraction device (4) and the 1/211 arithmetic device (9); (161 is a code register that temporarily stores the code bit output from the addition/subtraction device (4).

次に動作について説明する。Next, the operation will be explained.

第2図(a)に示すように、極座標である値冨1を(k
、θ)とし、この値を直交座標では(x、ア)と表わす
。以下x1は第■象限内にあるものとして考える。1(
=lとして−を(1,0)で表わし、θ=Sin’αの
算出の場合、ベクトル(1,0)なる値をY成分がばと
なるまで回転すれば、その回転角が求める角θである。
As shown in Figure 2(a), the polar coordinate value 1 is expressed as (k
, θ), and this value is expressed as (x, a) in orthogonal coordinates. Hereinafter, x1 is assumed to be within the second quadrant. 1(
= l, - is expressed as (1, 0), and in the case of calculating θ = Sin'α, if the value of vector (1, 0) is rotated until the Y component becomes ba, then the angle of rotation is the angle θ It is.

θ=Cosαの算出の場合、ベクトル(1,0)なる値
を、X成分がαとなるまで回転すれば、その回転角が求
める角−である。zlが他の象限にある場合は、第■象
限にあるものとして求めたθから容易に算出できる。
In the case of calculating θ=Cosα, if the value of vector (1, 0) is rotated until the X component becomes α, the rotation angle is the angle − to be found. If zl is in another quadrant, it can be easily calculated from θ obtained assuming that it is in the second quadrant.

一般に冨1を角度rだけ回転するには複数平面上で第2
図(b)に示すzl(a、b)との積をとればよいので
回転した値を冨阜とすると、匂の値は次式で表わされる
Generally speaking, to rotate the value 1 by an angle r, the second rotation is performed on multiple planes.
It is only necessary to take the product of zl(a, b) shown in FIG.

!x−冨x−冨s−(x−)−yi )(a−1−bi
 )= x・a−y−b+1(x−b+y−リ (1)
この匂を第2図(c)に示す。
! x-Tomix-Tomis-(x-)-yi)(a-1-bi
) = x・a−y−b+1(x−b+y−ri (1)
This odor is shown in FIG. 2(c).

(1)式において R〒b2 =1 となるようなλ、bの値を選び、nを整数として回転角
rと回転後の11の値を表わしたものが第5図である。
FIG. 5 shows the rotation angle r and the value of 11 after rotation by selecting the values of λ and b such that R〒b2 =1 in equation (1), and where n is an integer.

5in−1αについて基本的な算出方法を説明する。The basic calculation method for 5in-1α will be explained.

先ず最初にX軸上にあるベクトル(1,0)をTan−
’1/1 (−45°)回転させる。それから1−次回
転角を’ran−”l/2、Tan−11/4、Tan
″1/8 、 ・、 Tan4Vtと小さくする。しか
も回転後のY成分がαより大きい場合は、次に回転する
方向を時計方向とし、逆にY成分がαより小さい場合は
次に回転する方向を反時計方向とし、除々にy成分をα
に近づける。その1祭、回転時の演算において係数2f
/2の演算を行わないでもこれによる誤差がなるべく小
さくなるような方式をとる。又、αがvHより大きい場
合は9O−(JO5αなる演算をすればよいので、Si
nαの4出としては45 までを考える。
First, the vector (1,0) on the X axis is Tan-
' Rotate by 1/1 (-45°). Then, the first rotation angle is 'ran-''l/2, Tan-11/4, Tan
``1/8, ・, Tan4Vt.If the Y component after rotation is larger than α, the next rotation direction will be clockwise, and conversely, if the Y component is smaller than α, the next rotation direction will be is counterclockwise, and gradually change the y component to α
get closer to Part 1: Coefficient 2f in calculation during rotation
A method is adopted in which the error caused by this is made as small as possible even without performing the /2 operation. In addition, if α is larger than vH, the calculation 9O−(JO5α can be performed, so Si
Consider up to 45 as the 4 outputs of nα.

係数2)L渾占が1に近い回転角、例えばTan ’1
/8を選びこの角度で45°の角度を分ける。そして第
6図に示す定数とαを比較して求める角度Sinαがど
の区分にあるかを検定する。次にその区分で示される用
度かりTan 1/16、T鳳n L/32.・・・、
Tan l/2nと小さくしていき、αに近づいた時の
回転角を求める角度とする。
Coefficient 2) Rotation angle where the L arm is close to 1, e.g. Tan '1
Select /8 and use this angle to divide the 45° angle. Then, by comparing α with the constant shown in FIG. 6, it is verified in which category the obtained angle Sin α falls. Next, the usage shown in that category is Tan 1/16, T Feng L/32. ...,
The rotation angle is made smaller as Tan l/2n, and the rotation angle when it approaches α is used as the angle to be determined.

次に本発明による逆三角関数演算装置の動作を′S1図
を用いて第3図と関連させながら説明する。
Next, the operation of the inverse trigonometric function arithmetic device according to the present invention will be explained using FIG.'S1 in conjunction with FIG.

SinαとC0IIαは同様な=Sで求まるので、Si
nαについて以下記述する。
Since Sinα and C0IIα are found by the same =S, Si
nα will be described below.

〔ステップl〕外部機器(1)からのデータα(2)を
BバスI2にのせ、加減算装置(4)の入力端Bに入力
する。一方AバスIを0にし、加減算装置(4)の入力
端AにOを入力する。制御器(8)から加減算装置(4
)に加算指令を与え、0+αなる計算をすればCバス0
3にαがでてくる。このようにして外部機器は)のデー
タα(2)がCバスロ漕にのせられるが、これをαレジ
スタa−に読込みパルスを与えて格納する。
[Step 1] Data α(2) from the external device (1) is placed on the B bus I2 and input to the input end B of the addition/subtraction device (4). On the other hand, the A bus I is set to 0, and O is input to the input terminal A of the addition/subtraction device (4). From the controller (8) to the addition/subtraction device (4
) by giving an addition command and calculating 0+α, the C bus becomes 0.
α appears in 3. In this way, the data α(2) of the external device is placed on the C bus row, and is stored by applying a read pulse to the α register a-.

次にAバス(14)にαレジスタu51の内容を、B1
4ス0渇に定数発生器(3)から第6図における定数C
SXをのせ、加減算装置(4)の端子A、Bに入力する
。制御41″8)から加減算装置(4)にB−Aなる減
算指令を与え、Cl1l−αなるlt痒をし、この結果
が正であれば第6図に於ける第1区分にあることがわか
る。
Next, the contents of α register u51 are transferred to the A bus (14), and B1
From the constant generator (3) to the constant C in Figure 6
Place SX and input to terminals A and B of addition/subtraction device (4). A subtraction command B-A is given to the adding/subtracting device (4) from the control 41''8), and a command of Cl1l-α is given, and if this result is positive, it is in the first category in Fig. 6. Recognize.

同様にして、αがどの区分にあるかを調べる。第1区分
にあれば、定数発生器(3)から第6図に於ける定数へ
をBバス@にのせ、このへを、αなる値をσレジスタ0
51に格納したのと同様に、角度レジスタ(7)に格納
する。又、同様にして定数発生器(3)から第6図に於
ける定&Xt + Ytを収り出し、それぞれをXレジ
スタ+51、Yレジスタ(6)に格納スる。
In the same way, check which category α is in. If it is in the first category, put the constant from the constant generator (3) in Figure 6 onto the B bus @, and set the value α to σ register 0.
In the same way as in 51, it is stored in the angle register (7). Similarly, the constant &Xt + Yt in FIG. 6 is generated from the constant generator (3) and stored in the X register +51 and the Y register (6), respectively.

〔ステップ2〕Xレジスタ(5)の内容をAバスIにの
せ、Vt演捧装置(9)に入力↓ヨするととも1代。
[Step 2] Put the contents of the X register (5) on the A bus I and input it to the Vt transfer device (9).

該演算装置(9)にnの値として4十fmを制御器(8
)から与え、l/2  倍された出力をXルジスタ(1
1に読込みパルスを与えて格納する。これにより第3図
に記載の(1/2)・Xなる値がXルジスク1Gに格納
されたことになる。同じ要領にてYレジスタ(6)の1
谷をl/24+n倍し、結果をYルジスクa1に格納す
る。これにより第3図に記載の(1/24+n)・Yな
る値がYルジスタUに格納されたことになる。
The controller (8) inputs 40 fm as the value of n to the arithmetic unit (9).
), and the output multiplied by l/2 is given to the X registor (1
Give a read pulse to 1 and store it. As a result, the value (1/2)·X shown in FIG. 3 is stored in the X Luzisk 1G. 1 of Y register (6) in the same way
Multiply the valley by 1/24+n and store the result in Y Luzisk a1. As a result, the value (1/24+n)·Y shown in FIG. 3 is stored in the Y register U.

Yレジスタ(6)の内容をAバス141にのせると共に
αレジスフ09の内容をBバスIJBにのせ、それぞれ
を加減算装置(4)の端子A、Hに入力する。そして、
制御器(8)から減算指令A−Bを出し、結果の正負を
符号レジスタ(1alに記憶する。Xレジスタ(5)の
内容をAバスI4)にのせると共にYルジスクIの内#
をBバスt12にのせ、それぞれを加減算装置(4)の
端子A、Hに入力する。一方、制a 4+81は符号レ
ジスタ1eの内容が正なら加算指令を、負なら減!#指
令を加減算装置(4)に与える。加減算装置(4)の出
力がCバス・13)Ic現われるが、これをXレジスタ
(5)に読み込みノ旬レスを与えて格納する。これ番こ
より、第3図に於て、Y−αの値が正ならX +(1/
24+”)・Y ナル値ζ負t、う” −(1/2””
) ” Y?、(ル値力(XL/ジスタ(5)に格納さ
れたことになる。同じ要領書こてY−αの値が正なら−
(1/4”)・x−4−yなる値、負負ならTan)/
24+”1回転したことになり、回転後のX成分、Y成
分はそれぞれ、Xレジスタ(5)、Yレジスタ(6)に
格納される。ここで回転角度を−n−11/24+n 
 としたのは、ステップ1で入力値dを、第6図に示す
Tan 1/8による7区分Iこすで番こ区分けしてい
るからである。
The contents of the Y register (6) are placed on the A bus 141, and the contents of the α register 09 are placed on the B bus IJB, and each is input to terminals A and H of the adder/subtractor (4). and,
A subtraction command A-B is issued from the controller (8), and the sign register (1al) stores the sign register (1al) to store the sign register (1al).
are placed on the B bus t12 and input to terminals A and H of the adder/subtractor (4), respectively. On the other hand, control a4+81 issues an addition command if the content of sign register 1e is positive, and subtracts if it is negative! # Give the command to the addition/subtraction device (4). The output of the adder/subtractor (4) appears on the C bus (13) Ic, which is read into the X register (5) and stored with a value given to it. From this point, in Figure 3, if the value of Y-α is positive, then X + (1/
24+”)・Y Null value ζ negative t, U” −(1/2””
) ”Y?, (Le value force (XL/Jister (5) is stored.If the value of Y-α is positive, -
(1/4”)・x-4-y value, if negative, Tan)/
24+" is one rotation, and the X component and Y component after the rotation are stored in the X register (5) and Y register (6), respectively. Here, the rotation angle is -n-11/24+n
The reason for this is that in step 1, the input value d is divided into seven divisions I by Tan 1/8 as shown in FIG.

〔ステップ3〕角度レジスタ(7)の内容をAノくスI
にのせると共に定数発生器(3)力)ら制御器(8)の
(旨令に基づいてTan−11/24+nな確を選び出
してB/イス@にのせ、加減算装置(4)の端子A、B
1こそれ(’t’L入力する。一方、制御器(8)は符
号レジスタ0eの符号が正なら減算指令を、負なら加算
指令を加減算装置(4)に与える。加減算装置(4)の
出力力4 G /イス03に現われるが、これを角度レ
ジスタ(7目こ読込みパルスを与えて格納する。この演
算により、9α3図におけるY−αの値が正ならθ−T
an v24+n 、負ならθ+Tan l/4+nな
る演算が実行され、結果が角度レジスタ(7)に格納さ
れたことになる。
[Step 3] Save the contents of the angle register (7) to A node I.
At the same time, select Tan-11/24+n based on the command from the constant generator (3) and the controller (8) and place it on B/chair @, and then select the terminal A of the addition/subtraction device (4). , B
1 is input ('t'L). On the other hand, the controller (8) gives a subtraction command to the addition/subtraction device (4) if the sign of the sign register 0e is positive, and an addition command if it is negative. Output force 4 G appears on chair 03, which is stored by giving a read pulse to the angle register (7th position). Through this calculation, if the value of Y-α in Figure 9α3 is positive, θ-T
an v24+n, and if it is negative, θ+Tan l/4+n is executed, and the result is stored in the angle register (7).

ステップ2とステップ3をn = O# m (m H
整&)までくり返せば角度レジスタ(7)にはS in
−’αの値が格納される。同じ要領にて第4図のCos
α演算の場合のフローチャートに示すとと(Co5−1
αを求めることができる。
Step 2 and step 3 are calculated as n = O# m (m H
If you repeat until the angle register (7) is S in
−'α value is stored. Cos in Figure 4 in the same way
As shown in the flowchart for α operation (Co5-1
α can be found.

なお上記実施例では、くり返し演算を同一ハードウェア
にて実行するものを示したが、同一構造のハードウェア
をパイプライン式に並べてもよく、その方法は高速で連
続的にデータαが外部機器(1)から到来する場合に特
に有効となる。また上記実施例ではn = 9〜mまで
くり返し演算を行って終了としたが、n = 9〜mま
での途中Sinαの場合にはY−αの値が0になれば、
またCo5ctの場合にはX−αの値がOになれば終了
するようにしてもよい。また上記実施例では外部機器(
1)からデータαを入力するようにしているが、プログ
ラム蓄積型ディジタル計算機内にサブルーチン処理装置
として組込むようにしてもよい。
In the above embodiment, repeated operations are executed using the same hardware, but hardware with the same structure may also be arranged in a pipelined manner. This is particularly effective when coming from 1). In addition, in the above embodiment, the calculation was repeated until n = 9 to m and ended, but in the case of Sin α on the way from n = 9 to m, if the value of Y - α becomes 0,
Further, in the case of Co5ct, the process may be terminated when the value of X-α becomes O. In addition, in the above embodiment, the external device (
Although data α is inputted from step 1), it may also be incorporated as a subroutine processing device in a program storage type digital computer.

以上のように、この発明によれば、加減算のできる加減
算装置、1/2n倍できる演算装置及びレジスタという
ような標準的なディジタル回路により装置を構成してい
るので、装置が安価にでき、しかも回路構成が簡単で、
くり返し演算回数が少なく、nが7程度であれば十分に
精度が向上するのでソフトウェア的に計算する場合に比
べ、計算速度が桁違いに速いという効果がある。
As described above, according to the present invention, since the device is constituted by standard digital circuits such as an addition/subtraction device capable of addition and subtraction, an arithmetic device capable of multiplying by 1/2n, and a register, the device can be made at low cost. The circuit configuration is simple,
Since the number of repeated calculations is small and the accuracy is sufficiently improved if n is about 7, the calculation speed is orders of magnitude faster than when calculation is performed using software.

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

第1図は本発明の一実施例による逆三角関数演算装置の
ブロック図、第2図は第1図の実施例を説明するための
図、+43図は第1図の実施例におけるSinα演算を
実行するフローチャート図、第4図は第1図におけるC
owα演算を実行するフローチャート図、′I45図は
回転角rと回転後の!1の値を表わす図、第6図は演算
間始時の定数とそれに対応する角度を表わす図である。 (4)・・・力旧戚算装置M、(5+・・・Xレジスタ
、(6)・・・Yレジxp、+7)−・・角VVジxp
、191−1/2” tA Jl’装置1、IIJ・・
・Xルジスタ、(」D・・・Yルジスタ、uト・・符号
レジスタ、(3)・・・定数発生4、(8)・・・制御
器。 代理人  葛  野  信  − 第1ml 第4図
FIG. 1 is a block diagram of an inverse trigonometric function calculation device according to an embodiment of the present invention, FIG. 2 is a diagram for explaining the embodiment of FIG. 1, and FIG. The flowchart to be executed, Figure 4 is C in Figure 1.
A flowchart diagram for executing the owα calculation, 'I45' shows the rotation angle r and the ! after rotation! FIG. 6 is a diagram representing a value of 1, and FIG. 6 is a diagram representing a constant at the start of an operation and an angle corresponding thereto. (4)... Force arithmetic unit M, (5+...X register, (6)...Y register xp, +7) -...Angle VV di xp
, 191-1/2" tA Jl' device 1, IIJ...
・X register, (''D...Y register, uto...sign register, (3)...constant generator 4, (8)...controller. Agent Shin Kuzuno - 1st ml Fig. 4

Claims (1)

【特許請求の範囲】[Claims] (1)2つの入力の加算あるいは減算を行ない演算結果
およびその符号を出力する加減算装置と、該加減算装置
の出力のうち直交座標のx、y成分をそれぞれ一時格納
するx、Yレジスタと、上記加減算装置の出力のうち角
度を一時格納する角度レジスタと、上記Xレジスタもし
くはYレジスタの内容を1/!n倍(n z Q 、 
l 、 2 、 m、m ! m :整数)する1/!
n演算装置と、この1/2n演算装置で上記Xレジスタ
の内容を120倍した結果を一時格納するXルジスタと
、上記1./、n演算装置で上記Yレジスタの内容をL
/2n倍した結果を一時格納するYルジスタと、入力値
αに対して一連の定数を、また上記nの値に対して一連
の定数を発生する定数発生器と、Sinα算出の場合は
(Yレジスフの内容−入力値α)なる演算結果の符号を
、Cosα犀出の場合は(Xレジスタの内容−人力値σ
)なる演算結果の符号を記憶する符号レジスタと、この
符号レジスタの出力及びnの値により上記各回路の動作
を制御する制御器とを備え、該制御器により上記Xレジ
スタの内容とY/レジスタの内容を加減算装置にへ方し
て加算又は減算を行なわせその演算結果をXレジスタに
格納し、かつ上記Yレジスタの内容とXルジスクの内容
を加減算装置へ入力して加算又は減算を行なわせその演
算結果をYレジスタに格納し、さらに上記角度レジスタ
の内容と定数発生器からnの値に対して選択出力させた
角度定数を上記加減算装置へ入力して加算又は減算を行
なわせその演算結果を角度レジスタに格納し、以上の操
作をHw Qからn−mまでくり返し行なわせてSin
αあるいはCow clを求めるようにしたことを特徴
とする逆三角関数演算装置。
(1) An addition/subtraction device that adds or subtracts two inputs and outputs the operation result and its sign, x and Y registers that temporarily store the x and y components of orthogonal coordinates of the output of the addition and subtraction device, respectively; The angle register that temporarily stores the angle among the outputs of the adder/subtractor and the contents of the X register or Y register mentioned above are divided by 1/! n times (nz Q,
l, 2, m, m! m: integer) 1/!
n arithmetic device, an /,n The contents of the above Y register are converted to L by the n arithmetic unit.
A Y register that temporarily stores the result multiplied by /2n, a constant generator that generates a series of constants for the input value α, and a series of constants for the value of n above, and (Y In the case of Cosα calculation, the sign of the operation result is (contents of X register - input value α), and (contents of X register - manual value σ
), and a controller that controls the operation of each circuit according to the output of the sign register and the value of n, and the controller controls the contents of the X register and the Y/register. The contents of the Y register and the contents of the X register are input to the adder/subtracter to perform addition or subtraction, and the result of the operation is stored in the X register. The result of the calculation is stored in the Y register, and the contents of the angle register and the angle constant selectively output from the constant generator for the value of n are input to the addition/subtraction device to perform addition or subtraction, and the result of the calculation is is stored in the angle register, and the above operation is repeated from Hw Q to nm to obtain Sin.
An inverse trigonometric function calculation device characterized in that it calculates α or Cow cl.
JP6213582A 1982-04-12 1982-04-12 Arithmetic device for inverse trigonometric function Pending JPS58178478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6213582A JPS58178478A (en) 1982-04-12 1982-04-12 Arithmetic device for inverse trigonometric function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6213582A JPS58178478A (en) 1982-04-12 1982-04-12 Arithmetic device for inverse trigonometric function

Publications (1)

Publication Number Publication Date
JPS58178478A true JPS58178478A (en) 1983-10-19

Family

ID=13191329

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6213582A Pending JPS58178478A (en) 1982-04-12 1982-04-12 Arithmetic device for inverse trigonometric function

Country Status (1)

Country Link
JP (1) JPS58178478A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100790541B1 (en) * 2001-11-26 2008-01-02 주식회사 엘지이아이 Discharge-damping apparatus for hermetic compressor
EP2275923A2 (en) 2009-07-03 2011-01-19 Fujitsu Limited Apparatus and program for arctangent calculation

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100790541B1 (en) * 2001-11-26 2008-01-02 주식회사 엘지이아이 Discharge-damping apparatus for hermetic compressor
EP2275923A2 (en) 2009-07-03 2011-01-19 Fujitsu Limited Apparatus and program for arctangent calculation
US8549056B2 (en) 2009-07-03 2013-10-01 Fujitsu Limited Apparatus and program for arctangent calculation

Similar Documents

Publication Publication Date Title
US4665500A (en) Multiply and divide unit for a high speed processor
JPH05241794A (en) Device for approximating transcendental function and its method
US4945505A (en) Cordic apparatus and method for approximating the magnitude and phase of a complex number
TW201030607A (en) Instruction and logic for performing range detection
CN110998514B (en) Interruptible trigonometric operations
JPS58178478A (en) Arithmetic device for inverse trigonometric function
JPH0477932B2 (en)
JP2617733B2 (en) Elementary function arithmetic unit
US5224063A (en) Address translation in fft numerical data processor
JPH02170274A (en) Apparatus and method for determining approximate value with size of complex number
CN111223193B (en) Object rotation method, rotation device, terminal device, and computer-readable storage medium
JPS58207107A (en) Sampling control system
JPS5935054B2 (en) Rectangular coordinates ↓-polar coordinates/conversion device
US20220374201A1 (en) Digital Signal Processing Device
Garbergs et al. Specialised hardware for state space control of a dynamic process
JPS5938849A (en) Arithmetic circuit
JPS6228872A (en) Trigonometric function generating processor
JPH06139218A (en) Method and device for simulating neural network completely in parallel by using digital integrated circuit
JPH0418344B2 (en)
JP2556904B2 (en) High-speed adder / subtractor
JPH0133851B2 (en)
KR100228576B1 (en) Array type coordination rotary digital computer circuit
SU1167604A1 (en) Calculating device
Hormigo et al. Arithmetic unit for the computation of interval elementary functions
JPH07107710B2 (en) Two-dimensional distance calculation device for image processing device