JPH01149174A - Arithmetic processing circuit - Google Patents

Arithmetic processing circuit

Info

Publication number
JPH01149174A
JPH01149174A JP30758187A JP30758187A JPH01149174A JP H01149174 A JPH01149174 A JP H01149174A JP 30758187 A JP30758187 A JP 30758187A JP 30758187 A JP30758187 A JP 30758187A JP H01149174 A JPH01149174 A JP H01149174A
Authority
JP
Japan
Prior art keywords
function
function value
interval
value
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
Application number
JP30758187A
Other languages
Japanese (ja)
Inventor
Hiroko Ichikawa
裕子 市川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP30758187A priority Critical patent/JPH01149174A/en
Publication of JPH01149174A publication Critical patent/JPH01149174A/en
Pending legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)

Abstract

PURPOSE:To operate a function value always having constant accuracy by interpolate-operating the function value at an arbitrary point based on the curvature of a prescribed function stored in a function information storing means. CONSTITUTION:A ROM 1 previously stores the function value of each interval, into which a prescribed interval is subdivided arbitrarily, and the inclination information of a function corresponding to this function value based on the curvature of the prescribed function. When the interpolative operation of the function value at the arbitrary point is designed by an input part 4, an operation part 3 reads the function value of each interval and the inclination information of the function corresponding to the function value from the ROM 1 and interpolate-operates the function value at the arbitrary point. The arithmetic result is sent through a CPU 2 to an output part 5 composed of a printing part 5a and a displaying part 5b.

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.

〔従来の技術〕[Conventional technology]

従来、この種の演算処理回路を有する装置、例えば卓上
型の計算機においては、あらかじめ設定された関数値を
、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.

すなわち、計算機等で与えられた引数に対応する関数値
を求める場合、あらかじめその値をテーブル等の記憶領
域に記憶させて、計算処理開始毎に上記記1Δ領域から
必要とする演算データを読み出して、内挿により演算す
るように構成されている。
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 above 1Δ area each time calculation processing starts. , is configured to operate by interpolation.

〔発明が解決しようとする問題点) 従来の演算処理回路は、上記のようなプロセスに従って
関数値を演算するため、目的関数の関数値を得るまでに
、不変となる値、例えば関数が1次関数であれば傾き値
についても、所定の演算を実行しなければならなず、演
算処理ステップを増加させてしまい、無駄な演算処理時
間を必要とし、次のプログラム実行開始時間を大幅に遅
延ざせてしまう等の問題点があった。
[Problems to be Solved by the Invention] Conventional arithmetic processing circuits calculate function values according to the process described above. If it is a function, a predetermined calculation must be performed on the slope value as well, which increases the number of calculation processing steps, requires wasted calculation processing time, and significantly delays the start time of the next program execution. There were problems such as the

また、関数値を一定間隔で刻んだテーブルデータに基づ
いて演算すると、関数の特定点における曲率に応じて関
数値の誤差が変動してしまい、精度が一定の関数値を演
算できなくなるといった問題点があった。
Additionally, when calculating based on table data in which function values are carved at regular intervals, the error in the function value fluctuates depending on the curvature at a specific point of the function, making it impossible to calculate a function value with constant accuracy. was there.

この発明は、上記の問題点を解消するためになされたも
ので、関数値の内挿演算において、所望とする区間を関
数の曲率に基づいて細分割して関数値を演算することに
より、常に一定の精度を持つ関数値を演算できる演算処
理回路を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and in interpolation calculation of function values, by subdividing the desired interval based on the curvature of the function and calculating the function value, the function value is always calculated. The purpose is to obtain an arithmetic processing circuit that can calculate function values with a certain precision.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る演算処理回路は、所定関数の曲率に基づ
いて所定区間が任意に細分割される各区間の関数値とこ
の関数値に対応する関数の傾き情報をあらかじめ記憶す
る関数情報記憶手段と、関数情報記憶手段に記憶される
所定関数の各区間関数値とこの各区間関数値に対応する
関数の傾き情報に基づいて任意点における関数値を内挿
演算する演算処理手段とを設けたものである。
The arithmetic processing circuit according to the present invention includes a function information storage means that stores in advance a function value of each section in which a predetermined section is arbitrarily subdivided based on the curvature of the predetermined function and slope information of the function corresponding to this 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. It is.

(作用) この発明においては、任意点における関数値を内挿演算
が指示されると、関数情報記憶手段に所定関数の曲率に
基づいて所定区間が任意に細分割される各区間の関数値
とこの各区間関数値に対応する関数の傾き情報を演算処
理手段が読み出して、任意点における関数値を内挿演算
する。
(Operation) In the present invention, when an interpolation operation is instructed for a function value at an arbitrary point, the function information storage means stores the function value of each interval in which the predetermined interval is arbitrarily subdivided based on the curvature of the predetermined function. An arithmetic processing means reads the slope information of the function corresponding to each interval function value, and interpolates the function value at an arbitrary point.

(実施例) 第1図はこの発明の一実施例を示す演算処理回路の構成
を説明するブロック図であり、1はこの発明の関数情報
記憶手段を兼ねるROMで、制御プログラムおよび所定
関数の曲率に基づいて所定区間が任意に細分割される各
区間の関数値情報が記憶されている。2はCPUで、人
力部4から演算開始および数値データ(引数)が入力さ
れると、ROMIに記憶された制御プログラムに従って
各区間関数値とこの各区間関数値に対応する関数の傾き
(微分係数情報)情報のうち、必要となる特定の内挿情
報を読み出し演算部3に出力する。演算部3はこの発明
の演算処理手段を構成し、CPU2から出力された内挿
情報に従って下記第(1)式に従った内挿演算を実行し
、演算結果をCPU2に転送する。5は出力部で、例え
ばプリント部5a、表示部5bから構成され、演算部3
の演算値、演算に関する数値およびI制御情報を出力す
ることが可能となっている。
(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 a function information storage means of the present invention, and a ROM containing a control program and a curvature of a predetermined function. Function value information for each section in which the predetermined section is arbitrarily subdivided based on is stored. 2 is a CPU, and when calculation is started and numerical data (arguments) are input from the human power section 4, each interval function value and the slope (differential coefficient) of the function corresponding to each interval function value are calculated according to the control program stored in the ROMI. Information) Among the information, necessary specific interpolation information is read out and output to the calculation unit 3. The calculation unit 3 constitutes the calculation processing means of the present invention, and executes an interpolation calculation according to the following equation (1) according to the interpolation information output from the CPU 2, and transfers the calculation result to the CPU 2. Reference numeral 5 denotes an output section, which includes, for example, a print section 5a, a display section 5b, and a calculation section 3.
It is possible to output calculated values, numerical values related to calculations, and I 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) との距離が最大となる。そこで、こ
の距離が一定となるように区間a ONa n−1を関
数f (X)の曲率に従って区切った細い刻みに応じた
関数値f (Xl)が内挿情報としてROM 1に記憶
されている。
The distance between the straight line connecting the two points f (a)) and (b, f (b)) and the function f (X) is the maximum. Therefore, the function value f (Xl) corresponding to the fine increments obtained by dividing the interval a ONa n-1 according to the curvature of the function f (X) so that this distance is constant is stored in ROM 1 as interpolation information. .

次に第2図を参照しながら第1図に示した演算部3の内
挿演算処理について説明する。
Next, with reference to FIG. 2, the interpolation calculation process of the calculation section 3 shown in FIG. 1 will be explained.

第2図はこの発明による内挿演算する処理手順の一例を
説明するフローチャートである。なお、(1)〜(3)
は各ステップを示す。
FIG. 2 is a flowchart illustrating an example of a processing procedure for interpolation calculation according to the present invention. In addition, (1) to (3)
indicates each step.

まず、人力部4から指示された引数Xに対してal<X
<a+*t となるaiを決定する(1) 、次いで、
ROM1よりf (at )とf (aHl )を読み
出し、その内容をCPU2のレジスタA、  Bにセッ
トする(2)。
First, for the argument X instructed by the human resources department 4, al<X
Determine ai such that <a+*t (1), then,
Read f (at) and f (aHl) from ROM1 and set their contents in registers A and B of CPU2 (2).

次いで、レジスタA、レジスタBの内容に従って、((
f (at)−f (at、+)) /(ai −at
−+)x (x−al ) +f (as ) )を演
算し、レジスタYにセットしく3)、処理を終了する。
Next, according to the contents of register A and register B, ((
f (at) - f (at, +)) / (ai - at
-+)x(x-al)+f(as)) and set it in register Y3), and the process ends.

このため、曲率に応じた関数近似演算を実行でき、任意
の区間における関数値の誤差は一定の範囲に収束するこ
ととなる。
Therefore, a function approximation calculation can be performed according to the curvature, and the error in the function value in an arbitrary interval converges to a certain range.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、この発明は所定関数の曲率に基づ
いて所定区間が任意に細分割される各区間の関数値とこ
の関数値に対応する関数の傾き情報をあらかじめ記憶す
る耐数情報記憶手段と、関数情報記1.(!手段に記憶
される所定関数の各区間関数値とこの各区間関数値に対
応する関数の傾き情報に基づいて任意点における関数値
を内挿演算する演算処理手段とを設けたので、関数の曲
率に左右されない関数近似演算が実行でき、常に演算誤
差を一定に抑えることがで齢る。従って、任意の引数に
対して精度が一定な関数値を得ることが可能となる優れ
た効果を発揮する。
As explained above, the present invention provides durability information storage means for storing in advance the function value of each section in which a predetermined section is arbitrarily subdivided based on the curvature of the predetermined function and the slope information of the function corresponding to this function value. and function information 1. (! 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 stored in the means and the slope information of the function corresponding to each interval function value, the function It is possible to perform function approximation calculations that are not affected by the curvature of Demonstrate.

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

第1図はこの発明の一実施例を示す演算処理回路の構成
を説明するブロック図、第2図はこの発明による内挿演
算する処理手順の一例を説明するフローチャートである
。 図中、1はROM、2はCPU、3は演算部、4は入力
部、5は出力部である。 第1図
FIG. 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

Claims (1)

【特許請求の範囲】[Claims]  所定の四則演算処理をあらかじめ記憶されるプログラ
ムに従って実行する演算処理回路において、所定関数の
曲率に基づいて所定区間が任意に細分割される各区間の
関数値とこの関数値に対応する関数の傾き情報をあらか
じめ記憶する関数情報記憶手段と、前記関数情報記憶手
段に記憶される所定関数の各区間関数値とこの各区間関
数値に対応する前記関数の傾き情報に基づいて任意点に
おける関数値を内挿演算する演算処理手段とを具備した
ことを特徴とする演算処理回路。
In an arithmetic processing circuit that executes predetermined four arithmetic operations according to a pre-stored program, a predetermined interval is arbitrarily subdivided based on the curvature of the predetermined function, and the function value of each interval and the slope of the function corresponding to this function value are calculated. a function information storage means for storing information in advance; and a function value at an arbitrary point based on 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. 1. An arithmetic processing circuit comprising arithmetic processing means for performing interpolation calculations.
JP30758187A 1987-12-07 1987-12-07 Arithmetic processing circuit Pending JPH01149174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30758187A JPH01149174A (en) 1987-12-07 1987-12-07 Arithmetic processing circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30758187A JPH01149174A (en) 1987-12-07 1987-12-07 Arithmetic processing circuit

Publications (1)

Publication Number Publication Date
JPH01149174A true JPH01149174A (en) 1989-06-12

Family

ID=17970791

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30758187A Pending JPH01149174A (en) 1987-12-07 1987-12-07 Arithmetic processing circuit

Country Status (1)

Country Link
JP (1) JPH01149174A (en)

Similar Documents

Publication Publication Date Title
JPH0792789B2 (en) Graph display device
US4535416A (en) Electronic compact function calculator
KR920003479B1 (en) Method and apparatus for piecewise curve approximation
JPH01149174A (en) Arithmetic processing circuit
JP2961121B2 (en) Curve approximation device
US6005988A (en) Method and apparatus for rapid digital image resizing
JPH01149175A (en) Arithmetic processing circuit
JP2538645B2 (en) Curved line approximation device
JP2670088B2 (en) Design support device and design support method
JPS6275211A (en) Digital controller
JP2560344Y2 (en) Small electronic calculator
JPH05108593A (en) Neuro development supporting device
JP2795047B2 (en) Analysis input data creation processing device
SU997029A1 (en) Device for determining numbers nearest to the given one
JPS62229362A (en) Character processor
JP3696307B2 (en) Product-sum operation unit
SU962973A1 (en) Device for computing polynomial values
JPH01222328A (en) Data processing system
JPH04222019A (en) Storage device
JPS63103388A (en) Representation system of ellipse by arc approximation
JPH02220132A (en) Cpu type deciding device
JPS62276669A (en) Interpolation device
JPH036785A (en) Clipping circuit
JPS63250785A (en) Arithmetic processing circuit
JPH04338874A (en) Display system for analysis result of finite element method