JPH01149175A - Arithmetic processing circuit - Google Patents
Arithmetic processing circuitInfo
- Publication number
- JPH01149175A JPH01149175A JP30758287A JP30758287A JPH01149175A JP H01149175 A JPH01149175 A JP H01149175A JP 30758287 A JP30758287 A JP 30758287A JP 30758287 A JP30758287 A JP 30758287A JP H01149175 A JPH01149175 A JP H01149175A
- Authority
- JP
- Japan
- Prior art keywords
- function
- value
- function value
- interval
- arithmetic processing
- 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
Links
- 101100087530 Caenorhabditis elegans rom-1 gene Proteins 0.000 abstract 2
- 101100305983 Mus musculus Rom1 gene Proteins 0.000 abstract 2
- 238000004364 calculation method Methods 0.000 description 15
- 238000000034 method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012886 linear function Methods 0.000 description 1
Landscapes
- Complex Calculations (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、あらかじめ設定された関数値を演算する演
算処理回路に係り、特に任意の区間における関数値を近
似演算する演算処理回路に関するものである。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to an arithmetic processing circuit that computes a preset function value, and particularly relates to an arithmetic processing circuit that approximates a function value in an arbitrary interval. be.
従来、この種の演算処理回路を有する装置、例えば卓上
型の計算機においては、あらかじめ設定された関数値を
、ROM等の記憶媒体に記憶された演算データを参照し
ながら実行するように構成されている。Conventionally, devices having this type of arithmetic processing circuit, such as desktop calculators, have been configured to execute preset function values while referring to arithmetic data stored in a storage medium such as a ROM. There is.
すなわち、計算機等で与えられた引数に対応する関数値
を求める場合、あらかじめその値をテーブル等の記憶領
域に記憶させて、計算処理開始毎に上記記憶領域から必
要とする演算データを読み出して、内挿により演算する
ように構成されている。That is, when calculating a function value corresponding to an argument given by a computer, etc., the value is stored in a storage area such as a table in advance, and the required calculation data is read from the storage area each time calculation processing starts. It is configured to perform calculations by interpolation.
従来の演算処理回路は、上記のようなプロセスに従って
関数値を演算するため、目的関数の関数値を得るまでに
、不変となる値、例えば関数が1次関数であれば傾き値
についても、所定の演算を実行しなければならなず、演
算処理ステップを増加させてしまい、無駄な演算処理時
間を必要とし、次のプログラム実行開始時間を大幅に遅
延させてしまう等の問題点があった。Since conventional arithmetic processing circuits calculate function values according to the process described above, until the function value of the objective function is obtained, the values that remain unchanged, for example, if the function is a linear function, the slope value is also changed to a predetermined value. , the number of arithmetic processing steps increases, unnecessary arithmetic processing time is required, and the start time of the next program execution is significantly delayed.
この発明は、上記の問題点を解消するためになされたも
ので、関数値の内挿演算において不変な値をあらかじめ
記憶させておくことにより、所望とする区間における関
数値を高速に演算処理できる演算処理回路を得ることを
目的とする。This invention was made to solve the above problems, and by storing in advance a value that remains unchanged during interpolation of function values, function values in a desired interval can be processed at high speed. The purpose is to obtain an arithmetic processing circuit.
(問題点を解決するための手段)
この発明に係る演算処理回路は、所定関数の各区間関数
値とこの各区間関数値に対応する関数の傾き情報をあら
かじめ記憶する関数情報記憶手段と、関数情報記憶手段
に記憶される所定関数の各区間関数値とこの各区間関数
値に対応する関数の傾き情報に基づいて任意点における
関数値を内挿演算する演算処理手段とを設けたものであ
る。(Means for Solving the Problems) The arithmetic processing circuit according to the present invention includes a function information storage means for storing in advance each interval function value of a predetermined function and slope information of the function corresponding to each interval function value; It is provided with arithmetic processing means for interpolating a function value at an arbitrary point based on each interval function value of the predetermined function stored in the information storage means and slope information of the function corresponding to each interval function value. .
この発明においては、任意点における関数値を内挿演算
が指示されると、関数情報記憶手段に記憶される所定関
数の各区間関数値とこの各区間関数値に対応する関数の
傾き情報を演算処理手段が読み出して、任意点における
関数値を内挿演算する。In this invention, when an interpolation operation is instructed for a function value at an arbitrary point, each interval function value of a predetermined function stored in the function information storage means and slope information of the function corresponding to each interval function value are calculated. A processing means reads out and interpolates the function value at an arbitrary point.
(実施例〕
第1図はこの発明の一実施例を示す演算処理回路の構成
を説明するブロック図であり、1はこの発明の関数情報
記憶手段を兼ねるROMで、制御プログラムおよび所定
関数、例えば正弦値、余弦値の各区間関数値とこの各区
間関数値に対応する関数の傾き(微分係数情報)情報が
記憶されている。2はCPUで、入力部4から演算開始
および数値データ(引数)が人力されると、ROMIに
記憶された制御プログラムに従って正弦値、余弦値の各
区間関数値とこの各区間関数値に対応する関数の傾き(
微分係数情報)情報のうち、必要となる特定の内挿情報
を読み出し演算部3に出力する。演算部3はこの発明の
演算処理手段を枯成し、CP U 2’から出力された
内挿情報に従って下記第(1)式に従った内挿演算を実
行し、演算結果をCPU2に転送する。5は出力部で、
例えばプリント部5a、表示部5bから構成され、演算
部3の演算値、演算に関する数値および制御情報を出力
することが可能となっている。(Embodiment) FIG. 1 is a block diagram illustrating the configuration of an arithmetic processing circuit showing an embodiment of the present invention. Reference numeral 1 denotes a ROM which also serves as function information storage means of the present invention, in which a control program and a predetermined function, e.g. Each interval function value of a sine value and a cosine value and the slope (differential coefficient information) information of the function corresponding to each interval function value are stored. 2 is a CPU, which starts calculation from an input unit 4 and receives numerical data (argument). ) is input manually, each interval function value of the sine value and cosine value and the slope of the function corresponding to each interval function value (
Among the (differential coefficient information) information, necessary specific interpolation information is read out and output to the calculation section 3. The arithmetic unit 3 depletes the arithmetic processing means of the present invention, executes an interpolation operation according to the following formula (1) according to the interpolation information output from the CPU 2', and transfers the operation result to the CPU 2. . 5 is the output section,
For example, it is composed of a print section 5a and a display section 5b, and is capable of outputting the computed values of the computing section 3, numerical values related to the computation, and control information.
区間[a、b]において、中間値の定理によりf’(X
)= (f (b) −f (a) )/ (b−a)
(a<=X<b)−・・(1)
となるXが存在する。そこで、f’(X)が(a。In the interval [a, b], f'(X
) = (f (b) - f (a) )/ (b-a)
(a<=X<b)--(1) There exists an X that satisfies the following. Therefore, f'(X) is (a.
f (a))、(b、f (b))2点を結んだ直線の
傾きとなり、この傾きf’(X)の値が80〜a。−よ
内挿情報としてROMIに所定刻み(Xの領域なN区分
に分割した値(aQ ””an−1)に対するF (X
)の値とこれらの値を内挿するに必要な情報(直線内挿
の場合は傾きにあたる微分係数)が記憶されている。f (a)), (b, f (b)) This is the slope of the straight line connecting the two points, and the value of this slope f'(X) is 80 to a. - As interpolation information, F (X
) values and the information necessary to interpolate these values (in the case of linear interpolation, the differential coefficient corresponding to the slope) are stored.
次に第2図を参照しながら第1図に示した演算部3の内
挿演算処理について説明する。Next, the interpolation calculation process of the calculation section 3 shown in FIG. 1 will be explained with reference to FIG.
第2図はこの発明による内挿演す処理手順の一例を説明
するフローチャートである。なお、(1)〜(3)は各
ステップを示す。FIG. 2 is a flowchart illustrating an example of the interpolation processing procedure according to the present invention. Note that (1) to (3) indicate each step.
まず、入力部4から指示された引数Xに対してa葺くx
くaI+1となるa鳳を決定する(1)。次いで、RO
MIよりf (at )とf ’ (X)、すなわち(
f (at ) −f (at++ ) )/at −
aμ+を読み出し、その内容をCPU2のレジスタA。First, for the argument X specified from the input section 4,
Determine the a-o which gives aI+1 (1). Then R.O.
From MI, f (at) and f' (X), i.e. (
f (at) −f (at++) )/at −
Read aμ+ and store its contents in register A of CPU2.
Bにセットする(2)。次いで、レジスタBの内容に(
X−a)を掛は合せ、さらにレジスタAの内容を加算し
、その結果をCPU2のレジスタY(内容は((f(a
t) f(at−1))/at−al*1 ) X
(X−at ) +f (at )を演算したことと同
値)にセットしく3)、処理を終了する。Set to B (2). Then, the contents of register B are set to (
X-a), then add the contents of register A, and add the result to register Y of CPU2 (the contents are ((f(a)
t) f(at-1))/at-al*1) X
(X-at)+f(at) (equivalent to the calculation) 3), and the process ends.
このため、従来のように(f (at )−f (al
l ))/al−81日を実際に演算することなく、内
挿演算に移行でき、演算処理手順を大幅に減少すること
が可能となる。For this reason, as in the past, (f (at)−f (al
It is possible to shift to interpolation calculation without actually calculating 1))/al-81 days, and it becomes possible to significantly reduce the calculation processing steps.
(発明の効果)
以上説明したように、この発明は所定関数の各区間関数
値とこの各区間関数値に対応する関数の傾き情報をあら
かじめ記憶する関数情報記憶手段と、関数情報記憶手段
に記憶される所定関数の各区間関数値とこの各区間関数
値に対応する関数の傾き情報に基づいて任意点における
関数値を内挿演算する演算処理手段とを設けたので、関
数値ヲ決定する傾き等の演算を実行せずに、直接近似関
数値演算処理に6行でき、関数近似演算処理手順を省略
できるとともに、演算処理時間を大幅に短縮できる等の
優れた効果を奏する。(Effects of the Invention) As explained above, the present invention includes a function information storage means that stores in advance each interval function value of a predetermined function and slope information of a function corresponding to each interval function value, and Since the calculation processing means is provided for interpolating the function value at an arbitrary point based on each interval function value of the predetermined function to be calculated and the slope information of the function corresponding to each interval function value, the slope for determining the function value can be calculated. It is possible to perform six lines of direct approximation function value calculation processing without performing calculations such as , etc., and the function approximation calculation processing procedure can be omitted, and the calculation processing time can be significantly shortened.
第1図はこの発明の一実施例を示す演算処理回路の構成
を説明するブロック図、第2図はこの発明による内挿演
算する処理手順の一例を説明するフローチャートである
。
図中、1はROM、2はCPU、3は演算部、4は入力
部、5は出力部である。
第1図
5a 5bFIG. 1 is a block diagram illustrating the configuration of an arithmetic processing circuit according to an embodiment of the present invention, and FIG. 2 is a flowchart illustrating an example of a processing procedure for performing an interpolation operation according to the present invention. In the figure, 1 is a ROM, 2 is a CPU, 3 is an arithmetic section, 4 is an input section, and 5 is an output section. Figure 1 5a 5b
Claims (1)
ムに従って実行する演算処理回路において、所定関数の
各区間関数値とこの各区間関数値に対応する関数の傾き
情報をあらかじめ記憶する関数情報記憶手段と、前記関
数情報記憶手段に記憶される所定関数の各区間関数値と
この各区間関数値に対応する前記関数の傾き情報に基づ
いて任意点における関数値を内挿演算する演算処理手段
とを具備したことを特徴とする演算処理回路。In an arithmetic processing circuit that executes predetermined four arithmetic operations according to a program stored in advance, a function information storage means that stores in advance each interval function value of a predetermined function and slope information of the function corresponding to each interval function value; comprising arithmetic processing means for interpolating a function value at an arbitrary point based on each interval function value of the predetermined function stored in the function information storage means and slope information of the function corresponding to each interval function value; An arithmetic processing circuit featuring:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP30758287A JPH01149175A (en) | 1987-12-07 | 1987-12-07 | Arithmetic processing circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP30758287A JPH01149175A (en) | 1987-12-07 | 1987-12-07 | Arithmetic processing circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01149175A true JPH01149175A (en) | 1989-06-12 |
Family
ID=17970801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP30758287A Pending JPH01149175A (en) | 1987-12-07 | 1987-12-07 | Arithmetic processing circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01149175A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03191868A (en) * | 1989-12-20 | 1991-08-21 | Rohm Co Ltd | Meter driving apparatus |
-
1987
- 1987-12-07 JP JP30758287A patent/JPH01149175A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03191868A (en) * | 1989-12-20 | 1991-08-21 | Rohm Co Ltd | Meter driving apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6049343A (en) | Graphics processing unit and graphics processing system | |
JPS6347874A (en) | Arithmetic unit | |
JPS6313215B2 (en) | ||
JPH01149175A (en) | Arithmetic processing circuit | |
JP2961121B2 (en) | Curve approximation device | |
GB2226936A (en) | Method and apparatus for implementing adaptive forward differencing using integer arithmetic | |
US6028969A (en) | System and method of additive interpolation for affine transformations | |
JPH10207694A (en) | Digital power arithmetic unit and graphics system using the same | |
JP3775580B2 (en) | Image processing apparatus and method, recording medium, and program | |
JPS62197868A (en) | Linear approximation conversion circuit for pipeline construction | |
JP3435744B2 (en) | Multiplication circuit | |
JPH0585924B2 (en) | ||
JPH01149174A (en) | Arithmetic processing circuit | |
JPS6382530A (en) | Semiconductor storage device | |
JPS58208981A (en) | Address control circuit | |
JP2741869B2 (en) | Inverse coordinate transformation processor | |
JP2951685B2 (en) | Fixed-point arithmetic unit | |
JPH02281385A (en) | Device for approximating curve to straight line | |
JP3547277B2 (en) | Graphics processing unit | |
JPH01140807A (en) | Processor for digital signal processing | |
JPH09305789A (en) | Arithmetic method and graphics display device | |
JPH08241302A (en) | Vector processor and multiplier | |
JPS63111534A (en) | Semiconductor integrated circuit | |
JPH0628153A (en) | Low-error calculation processor | |
JPS63250785A (en) | Arithmetic processing circuit |