JP2001350731A - Computing device and storage medium - Google Patents
Computing device and storage mediumInfo
- Publication number
- JP2001350731A JP2001350731A JP2000172147A JP2000172147A JP2001350731A JP 2001350731 A JP2001350731 A JP 2001350731A JP 2000172147 A JP2000172147 A JP 2000172147A JP 2000172147 A JP2000172147 A JP 2000172147A JP 2001350731 A JP2001350731 A JP 2001350731A
- Authority
- JP
- Japan
- Prior art keywords
- differential
- calculated
- graph
- derivative
- differential value
- 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
Landscapes
- Calculators And Similar Devices (AREA)
- Complex Calculations (AREA)
Abstract
(57)【要約】
【課題】 本発明の課題は、本来微分可能な点におい
て、微分値が算出できないというエラーを無くすことが
可能な計算装置、及び記憶媒体を提供することである。
【解決手段】 入力されたグラフ式を登録する際に、自
動的にその導関数を数式処理によって算出してRAM6
の導関数メモリ6bに記憶しておき、トレースポインタ
PによってグラフG1上の任意の点が指示されると、そ
の点におけるX座標値をRAM6の導関数メモリ6bに
記憶されている導関数に代入して微分値を算出し、算出
結果を退避するとともに表示部4に表示させる。
(57) [Summary] An object of the present invention is to provide a calculation device and a storage medium that can eliminate an error that a differential value cannot be calculated at a point that can be differentiated. SOLUTION: When an input graph formula is registered, its derivative is automatically calculated by mathematical processing, and RAM6 is registered.
When an arbitrary point on the graph G1 is designated by the trace pointer P, the X coordinate value at that point is substituted into the derivative stored in the derivative memory 6b of the RAM 6. Then, the differential value is calculated, and the calculation result is saved and displayed on the display unit 4.
Description
【0001】[0001]
【発明の属する技術分野】本発明は計算装置、及び記憶
媒体に係り、詳細には、微分演算を実行する計算装置、
及び記憶媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computing device and a storage medium, and more particularly, to a computing device for performing a differential operation,
And a storage medium.
【0002】[0002]
【従来の技術】従来より、グラフ作成表示機能を備えた
グラフ関数電卓が教育の現場やエンジニアの技術計算用
に利用されている。グラフ関数電卓は様々な関数演算プ
ログラムを内蔵しており、入力された式に基づくグラフ
作成表示、入力された数表に基づくグラフ作成表示等が
可能である。2. Description of the Related Art Conventionally, a graph scientific calculator having a function of creating and displaying a graph has been used for educational sites and technical calculations of engineers. The graph scientific calculator has various built-in function calculation programs, and is capable of displaying and displaying a graph based on an input equation, displaying a graph based on an input numerical table, and the like.
【0003】また、プログラム機能、統計計算機能、数
式処理機能等も備え、プログラム機能を利用した複雑な
くり返し演算や、統計計算機能を利用したデータ解析、
数式処理機能を利用した数式の演算や簡略化等の処理が
可能となり、数学のみならず物理や化学の分野でも学習
効果を発揮する[0003] It also has a program function, a statistical calculation function, a formula processing function, etc., and performs a complex repetitive operation using a program function, a data analysis using a statistical calculation function, and the like.
Processing of mathematical formulas and simplification, etc. using the mathematical formula processing function can be performed, and learning effects are exhibited not only in mathematics but also in the fields of physics and chemistry.
【0004】上述のグラフ関数電卓では、描画したグラ
フ上でトレースポインタを移動させ、グラフ上の任意の
位置を指定するトレース機能を有するものがある。そし
て、トレース機能によって指定した点における微分値を
求めることもできる。Some of the above-mentioned graph scientific calculators have a trace function of moving a trace pointer on a drawn graph and designating an arbitrary position on the graph. Then, a differential value at a point designated by the trace function can be obtained.
【0005】以下、従来のグラフ関数電卓における微分
演算において、本来微分可能であるにも関わらず微分値
が得られない場合について説明する。図7は従来の関数
電卓における微分演算実行中に表示される表示画面例を
示している。[0005] In the following, a description will be given of a case where a differential operation in a conventional graph scientific calculator cannot obtain a differential value even though it is inherently differentiable. FIG. 7 shows an example of a display screen displayed during execution of a differential operation in a conventional scientific calculator.
【0006】まず、表示画面の表示範囲を設定するた
め、図7(A)に示すように、ウィンドウ値設定画面1
01を表示する。ウィンドウ値設定画面101では、表
示画面左下の座標値(Xmin,Ymin)と表示画面右上の
座標値(Xmax,Ymax)とが指定可能であり、この図の
例では、Xmin=「−1.E−96(−1×1
0-96)」、Xmax=「2.E−95(2×1
0-95)」、Ymin=「−1.E−48(−1×1
0-48)」、Xmax=「4.E−48(4×10-48)」
が設定されている。なお、“SCALE”はX座標とY
座標との比率であり、ここでは「1:1」に設定されて
いる。First, in order to set the display range of the display screen, as shown in FIG.
01 is displayed. In the window value setting screen 101, a coordinate value (Xmin, Ymin) at the lower left of the display screen and a coordinate value (Xmax, Ymax) at the upper right of the display screen can be designated. In the example of this figure, Xmin = “− 1.E. -96 (-1 x 1
0 -96 ) ", Xmax =" 2.E-95 (2x1
0 −95 ) ”, Ymin =“ − 1.E−48 (−1 × 1)
0 -48 ) ", Xmax =" 4.E-48 (4 x 10 -48 ) "
Is set. Note that “SCALE” represents the X coordinate and Y
This is a ratio with the coordinates, and is set to “1: 1” here.
【0007】次に、描画するグラフの式(以下、グラフ
式と呼ぶ。)を入力するため、図7(B)に示すよう
に、グラフ式入力画面102を表示する。グラフ式入力
画面102では任意の式が入力でき、この図の例では、
「Y1=√X」が入力されている。Next, as shown in FIG. 7B, a graph-type input screen 102 is displayed to input a graph expression to be drawn (hereinafter, referred to as a graph type). An arbitrary expression can be input on the graph expression input screen 102. In the example of FIG.
"Y1 = @ X" is input.
【0008】その後、グラフ描画指示を入力すると、図
7(C)に示すように、入力されたグラフ式「Y1=√
X」に対応するグラフG10がグラフ表示画面103上
に表示される。Thereafter, when a graph drawing instruction is input, as shown in FIG. 7C, the input graph expression “Y1 = √
A graph G10 corresponding to “X” is displayed on the graph display screen 103.
【0009】このグラフ表示画面103でトレース機能
を実行するとグラフG10上の任意の点にトレースポイ
ンタPが表示される。トレースポインタPをカーソル移
動キー「←」、「→」、「↑」、「↓」の操作によって
移動し、「EXE」キーの操作で指定点を決定すると、
指定点におけるX座標値103bとY座標値103cと
が算出されグラフ表示画面103上に表示される。そし
て、微分値を表示させる指示が予め設定されている、或
いは微分値を表示する指示が入力されると、指定点にお
ける微分値「dY/dX」を演算して演算結果を表示す
る。When the trace function is executed on the graph display screen 103, a trace pointer P is displayed at an arbitrary point on the graph G10. When the trace pointer P is moved by operating the cursor moving keys “←”, “→”, “↑”, “↓” and the designated point is determined by operating the “EXE” key,
The X coordinate value 103b and the Y coordinate value 103c at the designated point are calculated and displayed on the graph display screen 103. Then, when an instruction to display the differential value is set in advance or an instruction to display the differential value is input, the differential value “dY / dX” at the designated point is calculated, and the calculation result is displayed.
【0010】[0010]
【発明が解決しようとする課題】しかしながら、従来の
グラフ関数電卓では図7(D)に示す例のように、指定
点の位置によっては本来微分可能な点であるにも関わら
ず微分値を算出できない場合がある。この場合は、演算
結果として「ERROR」を表示する。これは従来の微
分演算の方法に中間差分法がとられ、指定点の両側から
数値微分により微分値を演算するために起こる。図7
(E)や図7(F)でも同様に微分値はエラーとなる。
従来の微分演算式を次式(1)に示す。However, in the conventional graph scientific calculator, as shown in the example of FIG. 7 (D), the differential value is calculated although the point is originally differentiable depending on the position of the designated point. It may not be possible. In this case, “ERROR” is displayed as the calculation result. This occurs because an intermediate difference method is used as a conventional differential calculation method, and a differential value is calculated by numerical differentiation from both sides of a designated point. FIG.
Similarly, in (E) and FIG. 7 (F), the differential value becomes an error.
The following equation (1) shows a conventional differential operation equation.
【0011】[0011]
【数1】 (Equation 1)
【0012】上述の例では、グラフ式が「Y=√X」で
あるので、式(1)の第2項「f(x−Δx)」の引数
が負となり演算にエラーが発生する。そのため、本来微
分可能な点でエラーが発生し、演算精度を低下させてし
まうという問題があった。In the above example, since the graph expression is “Y = √X”, the argument of the second term “f (x−Δx)” in expression (1) becomes negative, and an error occurs in the operation. For this reason, there is a problem that an error occurs at a point that can be differentiated, and the calculation accuracy is reduced.
【0013】また、従来のグラフ関数電卓において微分
値が算出できる場合であっても、トレースポインタPを
移動する都度、トレース位置での微分値を表示させるよ
う設定(微分値表示設定)した場合には、トレースポイ
ンタPの移動毎に上記式(1)の演算を実行しているた
めトレース速度が遅くなってしまうという問題があっ
た。[0013] Even if the differential value can be calculated by the conventional graph scientific calculator, when the setting is made to display the differential value at the trace position every time the trace pointer P is moved (differential value display setting). However, since the calculation of the above equation (1) is performed every time the trace pointer P is moved, there is a problem that the tracing speed is reduced.
【0014】本発明の課題は、本来微分可能な点におい
て、微分値が算出できないというエラーを無くすことが
可能な計算装置、及び記憶媒体を提供することである。An object of the present invention is to provide a calculation device and a storage medium that can eliminate an error that a differential value cannot be calculated at a point that can be differentiated.
【0015】また、本発明の課題は、微分値表示設定時
のトレース速度を速くすることが可能な計算装置、及び
記憶媒体を提供することである。It is another object of the present invention to provide a calculation device and a storage medium capable of increasing the tracing speed when setting the differential value display.
【0016】[0016]
【課題を解決するための手段】本発明は、このような課
題を達成するために、次のような特徴を備えている。な
お、次に示す手段の説明中、括弧書きにより実施の形態
に対応する構成を1例として例示する。符号等は、後述
する図面参照符号等である。The present invention has the following features in order to achieve the above object. In the following description of the means, a configuration corresponding to the embodiment will be exemplified by parentheses as an example. Reference numerals and the like are reference numerals and the like in the drawings described later.
【0017】請求項1記載の発明は、微分演算を実行す
る計算装置であって、演算対象となる式の導関数を数式
処理によって算出する導関数算出手段(例えば、図1に
示すCPU2;図3のS3)と、前記導関数算出手段に
より算出された導関数に所定の点の座標値を代入するこ
とによって、その点における微分値を算出する微分値算
出手段(例えば、図1に示すCPU2;図4のS15)
と、を備えることを特徴としている。According to a first aspect of the present invention, there is provided a calculating device for performing a differential operation, wherein a derivative calculating means (for example, CPU 2 shown in FIG. 1; FIG. 3) and a differential value calculating means (for example, CPU 2 shown in FIG. 1) for calculating a differential value at the point by substituting the coordinate value of a predetermined point into the derivative calculated by the derivative calculating means. ; S15 in FIG. 4)
And characterized in that:
【0018】この請求項1記載の計算装置によれば、微
分演算を実行する計算装置において、導関数算出手段に
よって演算対象となる式の導関数を数式処理によって算
出し、微分値算出手段によって、前記導関数算出手段に
より算出された導関数に所定の点の座標値を代入するこ
とによって、その点における微分値を算出する。According to the first aspect of the present invention, there is provided a computing device for performing a differential operation, wherein a derivative of an expression to be operated is calculated by a mathematical expression process by a derivative calculating means, and the derivative value calculating means calculates the derivative of the expression. By substituting the coordinate value of a predetermined point into the derivative calculated by the derivative calculating means, a differential value at that point is calculated.
【0019】従って、本来微分可能な点で微分値が求ま
らないというエラーを無くし、演算精度を向上すること
ができる。Accordingly, it is possible to eliminate an error that a differential value cannot be obtained at a point which can be differentiated, thereby improving the calculation accuracy.
【0020】また、請求項2記載の発明のように、請求
項1記載の計算装置において、前記導関数算出手段は、
前記演算対象となる式を登録する際に自動的に前記導関
数を算出して記憶する記憶手段(例えば、図3のS1〜
S3)を備えることが有効である。According to a second aspect of the present invention, in the computing device according to the first aspect, the derivative calculating means includes:
Storage means for automatically calculating and storing the derivative when registering the expression to be operated on (for example, S1 to S1 in FIG. 3)
It is effective to provide S3).
【0021】この請求項2記載の発明によれば、記憶手
段によって、前記演算対象となる式を登録する際に自動
的に前記導関数を算出して記憶しておくので、数式処理
によって導関数を算出する指示をわざわざ入力する必要
もなく、従来と同様の操作手順で微分値を算出できる。
また、記憶されている導関数に基づいて微分値を算出す
るので、微分点を変更する都度導関数を算出する必要が
なく、繰り返し微分演算する際の演算スピードを向上さ
せることができる。According to the second aspect of the present invention, the derivative is automatically calculated and stored at the time of registering the expression to be operated by the storage means. The differential value can be calculated by the same operation procedure as in the related art without having to input an instruction for calculating the differential value.
Further, since the differential value is calculated based on the stored derivative, it is not necessary to calculate the derivative every time the derivative point is changed, and the calculation speed at the time of repeatedly performing the differential calculation can be improved.
【0022】請求項3記載の発明は、微分演算を実行す
る計算装置であって、演算対象となる式の所定の点にお
ける微分値を両側微分(式(1))によって算出可能か
否かを判別する判別手段(例えば、図1に示すCPU
2;図6のS36〜S37)と、この判別手段により両
側微分によって微分値が算出できないと判別された場合
に、片側微分(式(2)または式(3))によって前記
微分値を算出する算出手段(例えば、図1に示すCPU
2;図6のS38〜S40)と、を備えることを特徴と
している。According to a third aspect of the present invention, there is provided a calculating device for executing a differential operation, wherein it is determined whether or not a differential value at a predetermined point of an expression to be operated can be calculated by a two-sided differential (expression (1)). Determining means (for example, the CPU shown in FIG. 1)
2; S36 to S37 in FIG. 6), and when the discriminating means determines that the differential value cannot be calculated by the two-sided differential, the differential value is calculated by the one-sided differential (formula (2) or (3)). Calculation means (for example, the CPU shown in FIG. 1)
2; S38 to S40 in FIG. 6).
【0023】この請求項3記載の計算装置によれば、微
分演算を実行する計算装置において、判別手段によっ
て、演算対象となる式の所定の点における微分値を両側
微分によって算出可能か否かを判別し、両側微分によっ
て微分値が算出できないと判別された場合に、算出手段
は片側微分によって前記微分値を算出する。According to a third aspect of the present invention, there is provided a calculating device for performing a differential operation, wherein the determining means determines whether or not the differential value at a predetermined point of the expression to be operated can be calculated by the two-sided differential. If it is determined that the differential value cannot be calculated by the two-sided differentiation, the calculating means calculates the differential value by the one-sided differentiation.
【0024】従って、両側微分(中心差分法)によって
微分値を算出できない場合でも片側微分により微分値を
求めることができるようになる。つまり、本来微分可能
な点で微分値が求まらないというエラーを無くすことが
でき、演算精度を向上することができる。Therefore, even when the differential value cannot be calculated by the two-sided differential (central difference method), the differential value can be obtained by the one-sided differential. That is, it is possible to eliminate an error that a differential value cannot be obtained at a point that can be differentiated, thereby improving the calculation accuracy.
【0025】また、請求項4記載の発明のように、請求
項1から3のいずれかに記載の計算装置において、前記
演算対象となる式に対応するグラフを描画するグラフ描
画手段(例えば、図3のS4)と、このグラフ描画手段
によって描画されたグラフ上でトレースによって任意の
点を指定するトレース指定手段(例えば、図3のS5)
と、を更に備え、前記所定の点はこのトレース指定手段
によって指定された点とすることが有効である。According to a fourth aspect of the present invention, in the computing device according to any one of the first to third aspects, a graph drawing means (for example, a figure drawing means) for drawing a graph corresponding to the expression to be operated on. 3 (S4) and a trace designating unit (for example, S5 in FIG. 3) for designating an arbitrary point by tracing on the graph drawn by the graph drawing unit.
It is effective that the predetermined point is a point specified by the trace specifying means.
【0026】この請求項4記載の発明によれば、グラフ
描画手段によって、前記演算対象となる式に対応するグ
ラフを描画し、トレース指定手段によって、描画された
グラフ上でトレースによって任意の点を指定すると、こ
のトレース指定手段によって指定された点における微分
値を算出するので、微分点をトレースにより容易に指定
して微分値を算出することができる。また、数式処理に
よって算出された導関数を記憶しておく場合は、トレー
スにより微分点を移動する都度導関数をする必要がな
く、微分値表示設定時のトレース速度を向上させること
ができる。According to the fourth aspect of the present invention, the graph drawing means draws a graph corresponding to the expression to be operated on, and the trace designating means allows an arbitrary point to be traced on the drawn graph. When specified, the differential value at the point specified by the trace specifying means is calculated, so that the differential point can be easily specified by tracing to calculate the differential value. When the derivative calculated by the mathematical processing is stored, it is not necessary to change the derivative each time the derivative point is moved by tracing, and the tracing speed at the time of setting the differential value display can be improved.
【0027】[0027]
【発明の実施の形態】以下、図を参照して本発明に係る
計算装置の実施の形態を詳細に説明する。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a computer according to the present invention.
【0028】〔第1の実施の形態〕第1の実施の形態で
は、数式処理機能が搭載された、例えば小型電子計算機
(関数電卓)等の計算装置1に本発明を適用した例を説
明することとする。[First Embodiment] In the first embodiment, an example will be described in which the present invention is applied to a calculation device 1 such as a small electronic calculator (scientific calculator) equipped with a mathematical formula processing function. It shall be.
【0029】まず構成を説明する。図1は本発明に係る
計算装置1の構成を示すブロック図である。図1に示す
ように、計算装置1はCPU(Central Processing Uni
t)2、入力部3、表示部4、表示駆動回路5、RAM
(Random Access Memory)6、ROM(Read Only Memo
ry)7、記憶装置8、及び記憶媒体9によって構成され
ている。First, the configuration will be described. FIG. 1 is a block diagram showing a configuration of a computing device 1 according to the present invention. As shown in FIG. 1, the computing device 1 includes a CPU (Central Processing Uniform).
t) 2, input unit 3, display unit 4, display drive circuit 5, RAM
(Random Access Memory) 6, ROM (Read Only Memo)
ry) 7, a storage device 8, and a storage medium 9.
【0030】CPU2は、入力部3を介して入力される
指示に基づいて、ROM7または記憶装置8から所定の
プログラムを読み出してRAM6に一時格納し、当該プ
ログラムに基づく各種処理を実行して計算装置1の各部
を集中制御する。すなわち、CPU2は、前記読み出し
た所定プログラムに基づいて各種処理を実行し、その処
理結果をRAM6内のワークメモリに格納するととも
に、表示駆動回路5により表示データを生成し、表示部
4に表示させる。また、入力部3を介して入力される指
示に基づいて、前記処理結果を記憶装置8を介して記憶
媒体9に保存させる。The CPU 2 reads a predetermined program from the ROM 7 or the storage device 8 based on an instruction input through the input unit 3 and temporarily stores the read program in the RAM 6, executes various processes based on the program, and executes various processes based on the program. Centralized control of each unit. That is, the CPU 2 executes various processes based on the read predetermined program, stores the process results in the work memory in the RAM 6, generates display data by the display drive circuit 5, and causes the display unit 4 to display the display data. . Further, based on an instruction input through the input unit 3, the processing result is stored in the storage medium 9 via the storage device 8.
【0031】本実施の形態の計算装置1において関数演
算を実行する場合は、CPU2はROM7または記憶装
置8に記憶されているグラフ式登録処理プログラムに基
づいて後述するグラフ式登録処理(図3参照)を実行
し、トレース機能の実行指示が入力されるとトレース処
理プログラムに従って後述するトレース処理(図4参
照)を実行する。When performing a function operation in the computing device 1 of the present embodiment, the CPU 2 executes a graph-type registration process (to be described later) based on a graph-type registration process program stored in the ROM 7 or the storage device 8 (see FIG. 3). ) Is executed, and when an instruction to execute the trace function is input, a trace process (see FIG. 4) described later is executed in accordance with the trace processing program.
【0032】グラフ式登録処理(図3参照)において、
CPU2は描画するグラフの式(以下、グラフ式と呼
ぶ。)の入力を受け付け、入力されたグラフ式を登録す
る際に、数式処理によって該グラフ式についての導関数
を求め、RAM6のグラフ式メモリ6aにグラフ式を格
納するとともに、算出した導関数をRAM6の導関数メ
モリ6bに格納する。そして入力されたグラフ式に対応
するグラフG1を描画し、更にトレース実行指示が入力
されるとトレース処理へ移行する。In the graph type registration process (see FIG. 3),
The CPU 2 receives an input of a graph expression to be drawn (hereinafter, referred to as a graph expression), and when registering the input graph expression, obtains a derivative of the graph expression by mathematical processing, and stores a graph expression memory in the RAM 6. In addition to storing the graph formula in 6a, the calculated derivative is stored in the derivative memory 6b of the RAM 6. Then, a graph G1 corresponding to the input graph expression is drawn, and when a trace execution instruction is input, the process proceeds to a trace process.
【0033】トレース処理(図4参照)において、CP
U2はトレースポインタPにより指示される位置のX座
標値及びY座標値を求め、更に、RAM6の導関数メモ
リ6bに記憶されている導関数を呼び出して前記X座標
値を代入することによりトレース指定された点における
微分値を算出し、RAM6の微分値メモリ6cに格納す
るとともに表示部4に表示する。In the trace processing (see FIG. 4), the CP
U2 obtains the X coordinate value and the Y coordinate value of the position indicated by the trace pointer P, further calls a derivative stored in the derivative memory 6b of the RAM 6, and substitutes the X coordinate value to specify the trace. The differential value at the specified point is calculated, stored in the differential value memory 6c of the RAM 6, and displayed on the display unit 4.
【0034】入力部3は、数値キー、文字キー、各種演
算キー群から構成されるデータ入力キー、カーソルやト
レースポインタPを移動させる際に操作されるカーソル
移動キー「←」、「→」、「↑」、「↓」、選択を確定
したり、演算を実行させる際に操作される「EXE」キ
ー、トレース機能を実行開始する際に操作されるトレー
スキー、実行中の処理を終了または中止する際に操作さ
れる「ESC」キー等の各種キー群によって構成され、
押下されたキーの押下信号をCPU2に出力する。The input unit 3 includes numerical keys, character keys, data input keys composed of various operation keys, cursor movement keys "←", "→", which are operated when moving the cursor and the trace pointer P. "↑", "↓", "EXE" key operated to confirm selection or execute calculation, trace key operated to start execution of trace function, end or stop processing being executed It is composed of various key groups such as “ESC” key operated when
A signal for pressing the pressed key is output to the CPU 2.
【0035】表示部4は、LCD(Liquid Crystal Dis
play)等により構成され、表示駆動回路5から入力され
る駆動信号に基づく各種表示を行う。表示駆動回路5
は、CPU2から入力される表示データに基づく駆動信
号を生成して、表示部4の表示制御を行う。The display unit 4 is a liquid crystal display (LCD).
play), and performs various displays based on a drive signal input from the display drive circuit 5. Display drive circuit 5
Generates a drive signal based on display data input from the CPU 2 and controls display of the display unit 4.
【0036】図2は、RAM6に設定されるメモリ領域
の構成を示す図である。RAM6は、本発明の計算装置
1において指定されたアプリケーションプログラム、入
力指示、入力データ、及び処理結果等を一時格納するワ
ークメモリ等の他、図2に示すように、入力されたグラ
フ式を記憶するグラフ式メモリ6a、数式処理によって
算出された導関数を記憶する導関数メモリ6b、算出さ
れた微分値を記憶する微分値メモリ6c等の各種メモリ
領域を有する。FIG. 2 is a diagram showing a configuration of a memory area set in the RAM 6. The RAM 6 stores an input graph formula as shown in FIG. 2, in addition to a work memory for temporarily storing an application program, an input instruction, input data, a processing result, and the like designated in the computer 1 of the present invention. It has various memory areas such as a graph-type memory 6a, a derivative memory 6b for storing derivatives calculated by mathematical processing, and a differential value memory 6c for storing calculated differential values.
【0037】ROM7は、本発明に係る計算装置1に対
応する基本プログラム、及び当該基本プログラムに対応
するアプリケーションプログラムを複数記憶している。
すなわち、計算装置1の電源がON状態にされた際に実
行する初期表示プログラム、メニュー選択プログラム、
各種関数演算プログラム、統計演算処理プログラム、及
びグラフ描画プログラム等の書き換え不要な基本プログ
ラムの他、本発明の計算装置1において実行する処理プ
ログラムを格納している。The ROM 7 stores a basic program corresponding to the computer 1 according to the present invention and a plurality of application programs corresponding to the basic program.
That is, an initial display program, a menu selection program executed when the power of the computing device 1 is turned on,
In addition to basic programs that do not need to be rewritten, such as various function calculation programs, statistical calculation processing programs, and graph drawing programs, processing programs to be executed in the calculation device 1 of the present invention are stored.
【0038】記憶装置8は、プログラムやデータ等が予
め記憶されている記憶媒体9を有しており、この記憶媒
体9は磁気的、光学的記憶媒体、若しくは半導体メモリ
で構成されている。この記憶媒体9は記憶装置8に固定
的に設けたもの、若しくは着脱自在に装着するものであ
り、この記憶媒体9には上記基本プログラム、当該計算
装置1に対応する各種処理に対応したアプリケーション
プログラム、及び当該各種処理プログラムで処理された
データ等を記憶する。The storage device 8 has a storage medium 9 in which programs, data and the like are stored in advance, and this storage medium 9 is constituted by a magnetic or optical storage medium or a semiconductor memory. The storage medium 9 is fixedly provided in the storage device 8 or is detachably mounted. The storage medium 9 includes the basic program and application programs corresponding to various processes corresponding to the computing device 1. And data processed by the various processing programs.
【0039】また、この記憶媒体9に記憶するプログラ
ム、データ等は、その一部若しくは全部をサーバやクラ
イアント等の他の機器からネットワーク回線等の伝送媒
体を介して伝送制御部(図示省略)から受信して記憶す
る構成にしてもよく、更に、記憶媒体9はネットワーク
上に構築されたサーバの記憶媒体であってもよい。更
に、前記プログラムをネットワーク回線等の伝送媒体を
介してサーバやクライアントへ伝送してこれらの機器に
インストールするように構成してもよい。A part or all of the programs, data, and the like stored in the storage medium 9 are transmitted from a transmission control unit (not shown) from another device such as a server or a client via a transmission medium such as a network line. It may be configured to receive and store, and the storage medium 9 may be a storage medium of a server constructed on a network. Further, the program may be transmitted to a server or a client via a transmission medium such as a network line and installed in these devices.
【0040】次に、第1の実施の形態における動作を説
明する。図3はグラフ式登録処理を説明するフローチャ
ートであり、図4はトレース処理を説明するフローチャ
ートであり、図5はグラフ式登録処理及びトレース処理
において表示部4に表示される表示画面の具体例であ
る。Next, the operation of the first embodiment will be described. FIG. 3 is a flowchart illustrating the graph type registration process, FIG. 4 is a flowchart illustrating the trace process, and FIG. 5 is a specific example of a display screen displayed on the display unit 4 in the graph type registration process and the trace process. is there.
【0041】ここで、これらのフローチャートに含まれ
る各機能を実現するためのプログラムは、読み取り可能
なプログラムコードの形態でROM7または記憶媒体9
に格納されており、CPU2はこのプログラムコードに
したがった動作を逐次実行する。また、CPU2は伝送
媒体を介して伝送されてきた上述のプログラムコードに
したがった動作を逐次実行することもできる。すなわ
ち、記憶媒体9の他、伝送媒体を介して外部供給された
プログラム/データを利用してこの実施形態特有の動作
を実行することもできる。Here, a program for realizing each function included in these flowcharts is stored in the form of a readable program code in the ROM 7 or the storage medium 9.
, And the CPU 2 sequentially executes the operation according to the program code. Further, the CPU 2 can also sequentially execute the operation according to the above-described program code transmitted via the transmission medium. That is, an operation specific to this embodiment can be executed using a program / data externally supplied via a transmission medium in addition to the storage medium 9.
【0042】まず、メニュー画面(図示省略)において
グラフ描画機能が選択され、実行指示が入力されると、
CPU2は従来と同様に、図5(A)に示すようなウィ
ンドウ値設定画面41を表示部4に表示し、表示画面の
大きさ(左下座標及び右上座標)の設定を受け付ける。
この図の例では、Xmin=「−1.E−96」(−1×
10-96)、Xmax=「2.E−95」(2×1
0-95)、Ymin=「−1.E−48」(−1×1
0-48)、Xmax=「4.E−48」(4×10-48)が
設定されている。First, when a graph drawing function is selected on a menu screen (not shown) and an execution instruction is input,
The CPU 2 displays a window value setting screen 41 as shown in FIG. 5A on the display unit 4 and accepts the setting of the size (lower left coordinates and upper right coordinates) of the display screen as in the conventional case.
In the example of this figure, Xmin = “− 1.E−96” (−1 ×
10 −96 ), Xmax = “2.E−95” (2 × 1
0 −95 ), Ymin = “− 1.E−48” (−1 × 1)
0 -48), Xmax = "4.e-48" (4 × 10 -48) is set.
【0043】次に、グラフ式を入力するため、従来と同
様に図5(B)に示すようなグラフ式入力画面42を表
示する。グラフ式入力画面42では任意の式が入力で
き、この例では、「Y1=√X」が入力されるものとす
る。Next, in order to input a graph formula, a graph formula input screen 42 as shown in FIG. An arbitrary expression can be input on the graph expression input screen 42. In this example, it is assumed that "Y1 = @ X" is input.
【0044】このように、グラフ式が入力され、登録す
る指示が入力されると、まず、CPU2は当該グラフ式
「Y=√X」について数式処理によって導関数を算出す
る(ステップS1)。ここでは導関数「Y’=1/2√
X」が算出される。そして、グラフ式「Y=√X」をR
AM6のグラフ式メモリ6aに格納する(ステップS
2)とともに、算出した導関数「Y’=1/2√X」を
導関数メモリ6bに格納する(ステップS3)。As described above, when a graph formula is input and an instruction to register is input, first, the CPU 2 calculates a derivative of the graph formula "Y = $ X" by mathematical processing (step S1). Here, the derivative "Y '= 1 / 2√"
X ”is calculated. Then, the graph expression “Y = √X” is represented by R
The data is stored in the graph memory 6a of the AM 6 (step S
Along with 2), the calculated derivative "Y '= 1/2 @ X" is stored in the derivative memory 6b (step S3).
【0045】その後、グラフ描画指示が入力されると、
CPU2は従来と同様にグラフ式に対応するグラフG1
を図5(C)に示すようにグラフ表示画面43上に表示
する(ステップS4)。グラフ表示画面43の大きさは
前記ウィンドウ値設定画面41で設定された大きさであ
る。なお、図5(C)中、43xはX軸、43yはY軸
を示す。Thereafter, when a graph drawing instruction is input,
The CPU 2 generates a graph G1 corresponding to the graph expression as in the related art.
Is displayed on the graph display screen 43 as shown in FIG. 5C (step S4). The size of the graph display screen 43 is the size set on the window value setting screen 41. In FIG. 5C, 43x indicates the X axis, and 43y indicates the Y axis.
【0046】グラフ表示画面43でトレース実行指示が
入力されると(ステップS5;Yes)、CPU2はグ
ラフG1上の任意の点にトレースポインタPを表示して
トレース処理へ移行する。When a trace execution instruction is input on the graph display screen 43 (step S5; Yes), the CPU 2 displays a trace pointer P at an arbitrary point on the graph G1 and shifts to trace processing.
【0047】図4に示すようにトレース処理において、
トレースポインタPがカーソル移動キー「←」、
「→」、「↑」、「↓」の操作によって移動されると、
CPU2は従来と同様に、トレースポインタPによって
指示される点についてX座標値43bを算出し(ステッ
プS10)、更にX座標値43bからグラフ式に基づい
てY座標値43cを算出する(ステップS11)。In the trace processing as shown in FIG.
When the trace pointer P is the cursor movement key "←",
When moved by "→", "↑", "↓",
The CPU 2 calculates an X coordinate value 43b for the point indicated by the trace pointer P (step S10), and further calculates a Y coordinate value 43c from the X coordinate value 43b based on a graph formula (step S11), as in the related art. .
【0048】このときエラーが発生すれば(ステップS
12;Yes)、エラーメッセージを表示して処理を終
了する。またエラーが発生しなければ(ステップS1
2;No)、算出したX座標値43b及びY座標値43
cを、グラフ表示画面43上に表示する(ステップS1
3)。At this time, if an error occurs (step S
12; Yes), an error message is displayed, and the process ends. If no error occurs (step S1)
2; No), the calculated X coordinate value 43b and Y coordinate value 43
c is displayed on the graph display screen 43 (step S1).
3).
【0049】その後、CPU2は微分値を表示させる設
定(微分値表示設定)がなされているか否かを判断し、
微分値を表示させる設定がなされている場合は(ステッ
プS14;On)、RAM6の導関数メモリ6bに記憶
されている導関数「Y’=1/2√X」に前記X座標値
を代入して微分値43dを算出する(ステップS1
5)。そして、算出した微分値43dをRAM6の微分
値メモリ6cに退避するともに、グラフ表示画面43に
表示する(ステップS16;図5(D))。Thereafter, the CPU 2 determines whether or not the setting for displaying the differential value (differential value display setting) has been made.
If the setting for displaying the differential value has been made (step S14; On), the X coordinate value is substituted for the derivative "Y '= 1/2 @ X" stored in the derivative memory 6b of the RAM 6. To calculate the differential value 43d (step S1).
5). Then, the calculated differential value 43d is saved in the differential value memory 6c of the RAM 6 and displayed on the graph display screen 43 (step S16; FIG. 5D).
【0050】図5(D)は本実施の形態の計算装置1に
よって、トレースされた点における微分値を表示したグ
ラフ表示画面43の例を示している。この例では、X座
標値43b「X=5.E−97(5×10-97)」、Y
座標値43c「Y=7.0710678E−49(7.
0710678×10-49)」の点がトレースされてい
る際に、微分値43dとして「dY/dX=7.071
0E47(7.0710×1047)」が算出されて、表
示されている。FIG. 5D shows an example of a graph display screen 43 displaying the differential value at a traced point by the computing device 1 of the present embodiment. In this example, the X coordinate value 43b “X = 5.E−97 (5 × 10 −97 )”, Y
The coordinate value 43c “Y = 7.0710678E-49 (7.
0710678 × 10 −49 ) ”, the differential value 43d is calculated as“ dY / dX = 7.071 ”.
0E47 (7.0710 × 10 47 ) ”is calculated and displayed.
【0051】以上説明したように、本実施の形態の計算
装置1は、前記入力されたグラフ式を登録する際に、自
動的にその導関数を数式処理によって算出してRAM6
の導関数メモリ6bに記憶しておき、トレースポインタ
PによってグラフG1上の任意の点が指示されると、そ
の点におけるX座標値をRAM6の導関数メモリ6bに
記憶されている導関数に代入して微分値を算出し、算出
結果をRAM6に退避するとともに表示部4に表示させ
る。As described above, when registering the input graph formula, the calculation device 1 of the present embodiment automatically calculates its derivative by a mathematical process and registers it in the RAM 6.
When an arbitrary point on the graph G1 is designated by the trace pointer P, the X coordinate value at that point is substituted into the derivative stored in the derivative memory 6b of the RAM 6. Then, the differential value is calculated, and the calculation result is saved in the RAM 6 and displayed on the display unit 4.
【0052】従って、中心差分法に代えて数式処理によ
って予め導関数を算出しておき、指定点のX座標値を代
入することによって微分値を算出するので、従来のよう
な微分演算時のエラーを無くし、演算精度を向上するこ
とができる。また、グラフ式登録時に自動的に導関数を
算出してRAM6に格納しておくので、数式処理によっ
て導関数を算出する指示をわざわざ入力する必要もな
く、使用者は従来と同様の操作手順で微分値を算出でき
る。また、トレース時に微分値表示設定がなされている
場合は予め算出され、記憶されている導関数に基づいて
トレースポインタPにより指示される点における微分値
を算出して表示するので、トレースポインタPの移動の
都度導関数を算出する必要がなく、演算スピードが向上
するとともに、トレース速度も向上する。Therefore, the derivative is calculated in advance by mathematical processing instead of the central difference method, and the differential value is calculated by substituting the X coordinate value of the designated point. Can be eliminated, and the calculation accuracy can be improved. Further, since the derivative is automatically calculated and stored in the RAM 6 at the time of registering the graph formula, there is no need to input an instruction to calculate the derivative by mathematical processing, and the user can perform the same operation procedure as before. Differential values can be calculated. In addition, when the differential value display setting is made at the time of tracing, the differential value at the point indicated by the trace pointer P is calculated and displayed in advance based on the stored derivative. There is no need to calculate the derivative every time the movement is performed, so that the calculation speed is improved and the tracing speed is also improved.
【0053】〔第2の実施の形態〕第1の実施の形態の
計算装置1では数式処理機能を搭載した計算装置1につ
いて説明したが、第2の実施の形態では数式処理機能を
持たない計算装置1について説明する。[Second Embodiment] In the first embodiment, the calculation apparatus 1 having a mathematical processing function has been described. However, in the second embodiment, calculation having no mathematical processing function is performed. The device 1 will be described.
【0054】本第2の実施の形態の計算装置1の構成
は、数式処理機能を搭載していない点を除き、第1の実
施の形態の計算装置1の構成と同一であるので各部の詳
細な説明を省略し、同一の各部は同一の符号で説明す
る。以下、第2の実施の形態の計算装置1における動作
を説明する。The configuration of the computing device 1 according to the second embodiment is the same as that of the computing device 1 according to the first embodiment except that it does not have a mathematical formula processing function. A detailed description will be omitted, and the same components will be described with the same reference numerals. Hereinafter, the operation of the computing device 1 according to the second embodiment will be described.
【0055】図6は第2の実施の形態におけるトレース
処理を説明するフローチャートである。FIG. 6 is a flow chart for explaining the trace processing in the second embodiment.
【0056】まず、メニュー画面(図示省略)において
グラフ描画機能が選択され、実行指示が入力されると、
CPU2は従来と同様に、図5(A)に示すようなウィ
ンドウ値設定画面41を表示部4に表示し、表示画面の
大きさ(左下座標及び右上座標)の設定を受け付ける。
具体例については第1の実施の形態において説明したの
で説明を省略する。First, when a graph drawing function is selected on a menu screen (not shown) and an execution instruction is input,
The CPU 2 displays a window value setting screen 41 as shown in FIG. 5A on the display unit 4 and accepts the setting of the size (lower left coordinates and upper right coordinates) of the display screen as in the conventional case.
Since a specific example has been described in the first embodiment, the description is omitted.
【0057】次に、グラフ式を入力するため、従来と同
様に図5(B)に示すようなグラフ式入力画面42を表
示する。具体例として第1の実施の形態と同様に、「Y
1=√X」が入力されるものとする。Next, in order to input a graph formula, a graph formula input screen 42 as shown in FIG. As a specific example, similarly to the first embodiment, “Y
1 = と す る X ”is input.
【0058】このようにグラフ式が入力され、登録する
指示が入力されると、第1の実施の形態とは異なり、当
該グラフ式「Y=√X」をRAM6のグラフ式メモリ6
aに格納する。When the graph expression is input and the registration instruction is input in this way, unlike the first embodiment, the graph expression "Y = $ X" is stored in the graph expression memory 6 of the RAM 6.
Stored in a.
【0059】その後、グラフ描画指示が入力されると、
CPU2は従来と同様に図5(C)に示すような入力さ
れたグラフ式に対応するグラフG1をグラフ表示画面4
3上に描画する。Thereafter, when a graph drawing instruction is input,
The CPU 2 displays a graph G1 corresponding to the input graph formula as shown in FIG.
3. Draw on top.
【0060】このグラフ表示画面43でトレース実行指
示が入力されると、CPU2はグラフG1上の任意の点
にトレースポインタPを表示して図6に示すトレース処
理へ移行する。When a trace execution instruction is input on the graph display screen 43, the CPU 2 displays a trace pointer P at an arbitrary point on the graph G1 and proceeds to the trace processing shown in FIG.
【0061】トレース処理において、トレースポインタ
Pがカーソル移動キー「←」、「→」、「↑」、「↓」
の操作によって移動されると、CPU2は従来と同様
に、トレースポインタPによって指示される点について
X座標値43bを算出し(ステップS31)、更にX座
標値43bからグラフ式に基づいてY座標値43cを算
出する(ステップS32)。In the trace processing, the trace pointer P is moved by the cursor movement keys "←", "→", "↑", "↓".
The CPU 2 calculates the X coordinate value 43b for the point indicated by the trace pointer P (step S31), as in the conventional case, and further calculates the Y coordinate value from the X coordinate value 43b based on a graph formula. 43c is calculated (step S32).
【0062】このときエラーが発生すれば(ステップS
33;Yes)、エラーコードをセットして(ステップ
S42)、処理を終了する。エラーが発生しなければ
(ステップS33;No)、算出したX座標値43b及
びY座標値43cをグラフ表示画面43上に表示する
(ステップS34;図5(D)参照)。If an error occurs at this time (step S
33; Yes), an error code is set (step S42), and the process ends. If no error occurs (Step S33; No), the calculated X coordinate value 43b and Y coordinate value 43c are displayed on the graph display screen 43 (Step S34; see FIG. 5D).
【0063】その後、CPU2は微分値を表示させる設
定(微分値表示設定)がなされているか否かを判断し、
微分値を表示させる設定がなされている場合は(ステッ
プS35;On)、まず、トレースポインタPにおいて
指定されている点を微分点として両側微分演算(中心差
分法)を実行する(ステップS36)。両側微分演算は
従来の微分演算と同様に、次の式(1)に基づいて実行
される。Thereafter, the CPU 2 determines whether or not the setting for displaying the differential value (differential value display setting) has been made.
If the setting for displaying the differential value has been made (Step S35; On), first, a two-sided differential operation (central difference method) is executed using the point designated by the trace pointer P as a differential point (Step S36). The two-sided differential operation is executed based on the following equation (1), similarly to the conventional differential operation.
【0064】[0064]
【数2】 (Equation 2)
【0065】CPU2はステップS36における両側微
分演算においてエラーが発生したか否かを判定し、エラ
ーが発生せず微分値を算出できた場合は(ステップS3
7;Yes)、算出した微分値をRAM6の微分値メモ
リ6cに退避するとともに、グラフ表示画面43に表示
する(ステップS43)。The CPU 2 determines whether or not an error has occurred in the two-sided differential operation in step S36. If the error has not occurred and the differential value can be calculated (step S3).
7; Yes), the calculated differential value is saved in the differential value memory 6c of the RAM 6, and displayed on the graph display screen 43 (step S43).
【0066】ステップS36における両側微分演算にお
いてエラーが発生し、微分値を算出できない場合は(ス
テップS37;No)、次に微分点左側からの片側微分
で微分値を計算する(ステップS38)。微分点左側か
らの片側微分は次式(2)に基づいて求められる。If an error occurs in the two-sided differential operation in step S36 and the differential value cannot be calculated (step S37; No), then the differential value is calculated by one-sided differentiation from the left side of the differential point (step S38). One-sided differentiation from the left side of the differentiation point is obtained based on the following equation (2).
【0067】[0067]
【数3】 (Equation 3)
【0068】ステップS38における片側微分演算にお
いてエラーが発生し、微分結果を得ることができない場
合は(ステップS39;No)、次に微分点右側からの
片側微分で微分値を計算する(ステップS40)。微分
点右側からの片側微分は次式(3)に基づいて求められ
る。If an error occurs in the one-sided differentiation operation in step S38 and the differentiation result cannot be obtained (step S39; No), then a differential value is calculated by one-sided differentiation from the right side of the differentiation point (step S40). . The one-sided differential from the right side of the differential point is obtained based on the following equation (3).
【0069】[0069]
【数4】 (Equation 4)
【0070】両側微分(式(1))、片側微分(式
(2)または式(3))のいずれにおいてもエラーが発
生し、微分値を算出できない場合は(ステップS41;
Yes)、エラーコードをセットして(ステップS4
3)、処理を終了する。If an error occurs in either of the two-sided differentiation (Equation (1)) or one-sided differentiation (Equation (2) or Equation (3)) and the differential value cannot be calculated (step S41;
Yes), set an error code (step S4)
3), end the process.
【0071】また、ステップS36における両側微分演
算、ステップS38における片側(左側)微分演算、ま
たはステップS40における片側(右側)微分演算のい
ずれかにおいて微分値が算出できた場合は、算出した微
分値43dをRAM6の微分値メモリ6cに退避させる
とともに、グラフ表示画面43に表示する(ステップS
43;図5(D)参照)。If the differential value can be calculated in one of the two-sided differential operation in step S36, the one-side (left) differential operation in step S38, and the one-side (right) differential operation in step S40, the calculated differential value 43d is calculated. Is saved in the differential value memory 6c of the RAM 6 and displayed on the graph display screen 43 (step S
43; see FIG. 5 (D)).
【0072】以上説明したように、計算装置1は、トレ
ースポインタPによってグラフG1上の任意の点が指示
されると、その点におけるX座標値を求めて上記式
(1)に基づいて両側微分を実行する。そして両側微分
の演算ができない場合は、次に上記式(2)に基づい
て、微分点左側からの片側微分を実行する。そして微分
点左側からの片側微分の演算ができない場合は、更に、
上記式(3)に基づいて、微分点右側からの片側微分を
実行する。両側微分または片側微分(右側または左側)
のいずれかによって微分値が算出されると、算出された
微分値をRAM6に退避するとともに表示部4に表示さ
せる。As described above, when an arbitrary point on the graph G1 is indicated by the trace pointer P, the calculation device 1 obtains the X coordinate value at that point and calculates the X-coordinate value based on the above equation (1). Execute If the calculation of the two-sided differentiation is not possible, the one-sided differentiation from the left side of the differentiation point is executed based on the above equation (2). If the one-sided differential operation cannot be performed from the left side of the differential point,
Based on the above equation (3), one-sided differentiation from the right side of the differentiation point is executed. Two-sided or one-sided differential (right or left)
When the differential value is calculated by any one of the above, the calculated differential value is saved in the RAM 6 and displayed on the display unit 4.
【0073】従って、中心差分法(両側微分)で微分演
算が実行可能か否かを判定して、実行可能でない場合は
片側微分により微分値を算出するので、両側微分が不可
能な場合でも片側微分により微分値を求めることができ
るようになる。つまり、本来微分可能な点で微分値が求
まらないというエラーを無くすことができ、演算精度を
向上することができる。Therefore, it is determined whether or not the differential operation can be performed by the central difference method (two-sided differential). If the differential operation cannot be performed, the differential value is calculated by one-sided differential. Differentiation can be obtained by differentiation. That is, it is possible to eliminate an error that a differential value cannot be obtained at a point that can be differentiated, thereby improving the calculation accuracy.
【0074】なお、第2の実施の形態において両側微分
でエラーが発生した際に片側微分により微分値を求める
ようにしたが、微分の式(1)〜式(3)の「△X」の
値を小さく設定しておけば微分演算時にエラーの発生を
少なくすることができ、演算速度、及び演算精度を更に
向上させることもできる。In the second embodiment, when an error occurs in the two-sided differential, the differential value is obtained by the one-sided differential. However, the differential value of “△ X” in the differential equations (1) to (3) is obtained. If the value is set to a small value, the occurrence of errors during the differential operation can be reduced, and the operation speed and the operation accuracy can be further improved.
【0075】また、上述の第1及び第2の実施の形態で
は、グラフ式に対応するグラフのトレース処理実行時に
おける微分演算について例示したが、本発明はこれに限
定されるものではなく、通常の微分演算についても適用
可能であることは勿論である。通常の微分演算の場合
は、第1の実施の形態では入力された式を登録する際に
導関数の値を求めてRAM6に記憶しておき、微分点の
座標値が入力されると、その微分点のX座標値をRAM
6に記憶されている導関数に代入して微分値を求める。
第2の実施の形態では式及び微分点を入力すると、その
微分点において両側微分を行って微分値が算出できるか
否かを調べ、微分値が算出できない場合は次に左側から
の片側微分演算を実行し、更に微分値が算出できない場
合は右側からの片側微分演算を実行する。In the above-described first and second embodiments, the differential operation at the time of executing the trace processing of the graph corresponding to the graph expression has been exemplified. However, the present invention is not limited to this. Of course, it is also applicable to the differential operation of. In the case of a normal differential operation, in the first embodiment, when registering an input expression, the value of a derivative is obtained and stored in the RAM 6, and when the coordinate value of the differential point is input, RAM of X coordinate value of differential point
Substituting into the derivative stored in 6 to obtain a differential value.
In the second embodiment, when an equation and a differential point are input, it is checked whether a differential value can be calculated by performing a two-sided differentiation at the differential point. If the differential value cannot be calculated, then a one-sided differential operation from the left side is performed. And if a differential value cannot be calculated, a one-sided differential operation from the right side is performed.
【0076】更に、上記第1及び第2の実施の形態で
は、演算対象とする式は入力部3から入力されるものと
して説明したが、これに限定されるものではなく、例え
ば記憶媒体9やROM7から読み出されるものでもよ
く、また通信回線を介して外部から伝送されてきたもの
であってもよい。Further, in the first and second embodiments, the expression to be operated is described as being input from the input unit 3, but the present invention is not limited to this. The data may be read from the ROM 7 or may be transmitted from outside via a communication line.
【0077】[0077]
【発明の効果】請求項1及び5記載の発明によれば、本
来微分可能な点で微分値が求まらないというエラーを無
くし、演算精度を向上することができる。According to the first and fifth aspects of the present invention, it is possible to eliminate the error that a differential value cannot be obtained at a point that can be differentiated, thereby improving the calculation accuracy.
【0078】請求項2記載の発明によれば、記憶手段に
よって、前記演算対象となる式を登録する際に自動的に
前記導関数を算出して記憶しておくので、数式処理によ
って導関数を算出する指示をわざわざ入力する必要もな
く、従来と同様の操作手順で微分値を算出できる。ま
た、記憶されている導関数に基づいて微分値を算出する
ので、微分点を変更する都度導関数を算出する必要がな
く、繰り返し微分演算する際の演算スピードを向上させ
ることができる。According to the second aspect of the present invention, the derivative is automatically calculated and stored by the storage means when the expression to be operated is registered. There is no need to input a calculation instruction, and the differential value can be calculated by the same operation procedure as in the related art. Further, since the differential value is calculated based on the stored derivative, it is not necessary to calculate the derivative every time the derivative point is changed, and the calculation speed at the time of repeatedly performing the differential calculation can be improved.
【0079】請求項3及び6記載の発明によれば、両側
微分(中心差分法)によって微分値を算出できない場合
でも片側微分により微分値を求めることができるように
なる。つまり、本来微分可能な点で微分値が求まらない
というエラーを無くすことができ、演算精度を向上する
ことができる。According to the third and sixth aspects of the present invention, even when the differential value cannot be calculated by the two-sided differential (central difference method), the differential value can be obtained by the one-sided differential. That is, it is possible to eliminate an error that a differential value cannot be obtained at a point that can be differentiated, thereby improving the calculation accuracy.
【0080】請求項4記載の発明によれば、微分点をト
レースにより容易に指定して微分値を算出することがで
きる。また、数式処理によって算出された導関数を記憶
しておく場合は、トレースにより微分点を移動する都度
導関数をする必要がなくトレース速度を向上させること
ができる。According to the fourth aspect of the present invention, the differential value can be calculated by easily specifying the differential point by tracing. In addition, when the derivative calculated by the mathematical processing is stored, it is not necessary to change the derivative every time the differential point is moved by tracing, so that the tracing speed can be improved.
【図1】本発明に係る計算装置1の構成を示すブロック
図である。FIG. 1 is a block diagram showing a configuration of a computing device 1 according to the present invention.
【図2】RAM6に設定されるメモリ領域の構成を示す
図である。FIG. 2 is a diagram showing a configuration of a memory area set in a RAM 6;
【図3】グラフ式登録処理を説明するフローチャートで
ある。FIG. 3 is a flowchart illustrating a graph type registration process.
【図4】第1の実施の形態におけるトレース処理を説明
するフローチャートである。FIG. 4 is a flowchart illustrating a trace process according to the first embodiment.
【図5】グラフ式登録処理及びトレース処理において表
示部4に表示される表示画面の具体例である。FIG. 5 is a specific example of a display screen displayed on a display unit 4 in a graph type registration process and a trace process.
【図6】第2の実施の形態におけるトレース処理を説明
するフローチャートである。FIG. 6 is a flowchart illustrating a trace process according to the second embodiment.
【図7】従来の関数電卓における微分演算実行中に表示
される表示画面例である。FIG. 7 is an example of a display screen displayed during execution of a differential operation in a conventional scientific calculator.
1 計算装置 2 CPU 3 入力部 4 表示部 41 ウィンドウ値設定画面 42 グラフ式入力画面 43 グラフ表示画面 43a グラフ式 43b トレースポインタのX座標値 43c トレースポインタのY座標値 43d 微分値 43x X座標 43y Y座標 G1 グラフ 5 表示駆動回路 6 RAM 6a グラフ式メモリ 6b 導関数メモリ 6c 微分値メモリ 7 ROM 8 記憶装置 9 記憶媒体 DESCRIPTION OF SYMBOLS 1 Computing device 2 CPU 3 Input part 4 Display part 41 Window value setting screen 42 Graph type input screen 43 Graph display screen 43a Graph type 43b X coordinate value of trace pointer 43c Y coordinate value of trace pointer 43d Derivative value 43x X coordinate 43y Y Coordinate G1 Graph 5 Display drive circuit 6 RAM 6a Graphical memory 6b Derivative memory 6c Differential value memory 7 ROM 8 Storage device 9 Storage medium
Claims (6)
導関数算出手段と、 前記導関数算出手段により算出された導関数に所定の点
の座標値を代入することによって、その点における微分
値を算出する微分値算出手段と、 を備えることを特徴とする計算装置。1. A calculating device for performing a differential operation, comprising: a derivative calculating means for calculating a derivative of an expression to be operated on by mathematical processing; and a derivative calculated by the derivative calculating means. A differential value calculating means for calculating a differential value at the point by substituting the coordinate value of the point.
る式を登録する際に自動的に前記導関数を算出して記憶
する記憶手段を備えることを特徴とする請求項1記載の
計算装置。2. The calculation according to claim 1, wherein said derivative calculating means includes a storage means for automatically calculating and storing the derivative when registering the expression to be operated on. apparatus.
によって算出可能か否かを判別する判別手段と、 この判別手段により両側微分によって微分値が算出でき
ないと判別された場合に、片側微分によって前記微分値
を算出する算出手段と、 を備えることを特徴とする計算装置。3. A computing device for performing a differential operation, comprising: a discriminating means for discriminating whether or not a differential value at a predetermined point of an expression to be computed can be calculated by a two-sided differentiation; A calculating means for calculating the differential value by one-sided differentiation when it is determined that the differential value cannot be calculated by the calculation device.
描画するグラフ描画手段と、 このグラフ描画手段によって描画されたグラフ上でトレ
ースによって任意の点を指定するトレース指定手段と、 を更に備え、 前記所定の点はこのトレース指定手段によって指定され
た点とすることを特徴とする請求項1から3のいずれか
に記載の計算装置。4. A graph drawing means for drawing a graph corresponding to the expression to be operated, and trace specifying means for specifying an arbitrary point by tracing on the graph drawn by the graph drawing means. 4. The computing device according to claim 1, wherein the predetermined point is a point specified by the trace specifying unit.
納した記憶媒体であって、 微分演算を実行するためのコンピュータが実行可能なプ
ログラムコードと、 演算対象となる式の導関数を数式処理によって算出する
ためのコンピュータが実行可能なプログラムコードと、 算出された導関数に所定の点の座標値を代入することに
よって、その点における微分値を算出するためのコンピ
ュータが実行可能なプログラムコードと、 を含むプログラムを格納したことを特徴とする記憶媒
体。5. A storage medium storing a computer-executable program, wherein a computer-executable program code for performing a differential operation and a derivative of an expression to be operated are calculated by mathematical processing. Computer-executable program code, and computer-executable program code for calculating a differential value at a point by substituting a coordinate value of a predetermined point into the calculated derivative. A storage medium storing a program.
納した記憶媒体であって、 微分演算を実行するためのコンピュータが実行可能なプ
ログラムコードと、 演算対象となる式の所定の点における微分値を両側微分
によって算出可能か否かを判別するためのコンピュータ
が実行可能なプログラムコードと、 両側微分によって微分値が算出できないと判別された場
合に、片側微分によって前記微分値を算出するためのコ
ンピュータが実行可能なプログラムコードと、 を含むプログラムを格納したことを特徴とする記憶媒
体。6. A storage medium storing a computer-executable program, comprising: a computer-executable program code for executing a differential operation; and a differential value at a predetermined point of an expression to be operated. A computer code that can be executed by a computer for determining whether or not the differential value can be calculated, and a computer for calculating the differential value by one-sided differential when it is determined that the differential value cannot be calculated by the two-sided differential. A storage medium storing a program code capable of being stored, and a program including:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000172147A JP2001350731A (en) | 2000-06-08 | 2000-06-08 | Computing device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000172147A JP2001350731A (en) | 2000-06-08 | 2000-06-08 | Computing device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2001350731A true JP2001350731A (en) | 2001-12-21 |
Family
ID=18674593
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000172147A Pending JP2001350731A (en) | 2000-06-08 | 2000-06-08 | Computing device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2001350731A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150187106A1 (en) * | 2013-12-27 | 2015-07-02 | Casio Computer Co., Ltd. | Graph display control apparatus, electronic device, graph display method, and storage medium storing graph display control process program |
| JP2015210598A (en) * | 2014-04-24 | 2015-11-24 | カシオ計算機株式会社 | Graph display control device, graph display control method, and program |
| US10061498B2 (en) | 2013-04-22 | 2018-08-28 | Casio Computer Co., Ltd. | Graph display device, graph display method and computer-readable medium recording control program |
| US10061741B2 (en) | 2014-08-07 | 2018-08-28 | Casio Computer Co., Ltd. | Graph display apparatus, graph display method and program recording medium |
| US10353557B2 (en) | 2014-03-19 | 2019-07-16 | Casio Computer Co., Ltd. | Graphic drawing device and recording medium storing graphic drawing program |
-
2000
- 2000-06-08 JP JP2000172147A patent/JP2001350731A/en active Pending
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10061498B2 (en) | 2013-04-22 | 2018-08-28 | Casio Computer Co., Ltd. | Graph display device, graph display method and computer-readable medium recording control program |
| US20150187106A1 (en) * | 2013-12-27 | 2015-07-02 | Casio Computer Co., Ltd. | Graph display control apparatus, electronic device, graph display method, and storage medium storing graph display control process program |
| US9805485B2 (en) * | 2013-12-27 | 2017-10-31 | Casio Computer Co., Ltd. | Electronic device having graph display function in which user can set coefficient variation range for fine coefficient value adjustment, and graph display method, and storage medium storing graph display control process program having the same |
| US10353557B2 (en) | 2014-03-19 | 2019-07-16 | Casio Computer Co., Ltd. | Graphic drawing device and recording medium storing graphic drawing program |
| JP2015210598A (en) * | 2014-04-24 | 2015-11-24 | カシオ計算機株式会社 | Graph display control device, graph display control method, and program |
| DE102015206965B4 (en) * | 2014-04-24 | 2017-02-09 | Casio Computer Co., Ltd. | Curve display control device, curve display control method and curve display control program |
| US10061741B2 (en) | 2014-08-07 | 2018-08-28 | Casio Computer Co., Ltd. | Graph display apparatus, graph display method and program recording medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8514227B2 (en) | Electronic computer and method of controlling the same | |
| KR100285399B1 (en) | Data processing method and apparatus | |
| EP2237230B1 (en) | Graph display control apparatus and graph display control method | |
| JPH0719240B2 (en) | Small electronic calculator with graph display function | |
| CN114022604A (en) | Model drawing method and device, electronic equipment and storage medium | |
| JP4720607B2 (en) | Graph display device and graph display control program | |
| JP2001350731A (en) | Computing device and storage medium | |
| JP3485406B2 (en) | Function calculator with graph function | |
| JP4547774B2 (en) | Graph display control device and storage medium | |
| JP2003288486A (en) | Graph display device | |
| JPH01260507A (en) | Process display device | |
| JP3309115B2 (en) | Graph display control device and graph display control method | |
| JP2001357021A (en) | Graph display control device and storage medium | |
| JP4811177B2 (en) | Graph display device and graph display processing program | |
| JP3194217B2 (en) | Arithmetic device and arithmetic method | |
| JP3975595B2 (en) | Electronic computing device and recording medium recording computer processing program | |
| JP2807950B2 (en) | Graphic drawing apparatus and its graphic drawing method | |
| JPH04235658A (en) | Compact electronic computer with graph display function | |
| JP2004118447A (en) | Logarithmic axis graph drawing apparatus and logarithmic axis graph drawing processing program | |
| JPH04219858A (en) | Graph display control device and graph display control method | |
| JP3577554B2 (en) | Function calculator, graph display control device, and graph display control method | |
| JP2008250438A (en) | Formula arithmetic device and formula calculation program | |
| JP2000132516A (en) | Computing device and storage medium | |
| US20240265596A1 (en) | Storage medium storing graph drawing program and server | |
| JPH04436Y2 (en) |