JPH11143835A - Electronic computation device, graph display method and storage medium - Google Patents

Electronic computation device, graph display method and storage medium

Info

Publication number
JPH11143835A
JPH11143835A JP30266697A JP30266697A JPH11143835A JP H11143835 A JPH11143835 A JP H11143835A JP 30266697 A JP30266697 A JP 30266697A JP 30266697 A JP30266697 A JP 30266697A JP H11143835 A JPH11143835 A JP H11143835A
Authority
JP
Japan
Prior art keywords
graph
sum
symbol
function
data
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
JP30266697A
Other languages
Japanese (ja)
Inventor
Tomohiro Sudo
智浩 須藤
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP30266697A priority Critical patent/JPH11143835A/en
Publication of JPH11143835A publication Critical patent/JPH11143835A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make it possible to simply display a graph indicating a function equation including a sum symbol. SOLUTION: A CPU 11 judges if a sum symbol is included in a function equation of an object for graph display stored in an equation register 14b and, when it is judged by this judgment that the sum symbol is included, a sum of the function equation from an initial value to a final value of a variable corresponding to the sum symbol is obtained, data for indicating a graph so as to indicate this sum is calculated, is stored in a graph register 14c and, at the same time, a display part 16 is made to display it. Also, a sum of each function equation is obtained for each value from the initial value to the final value of the variable corresponding to the sum symbol of the function equation, data for indicating the graph in order to indicate each sum is calculated, the graph register 14c (g1 to gn ) is made to store it and a graph corresponding to each value of the variable is made to selectively display it on the basis of these stored data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、関数式をもとにし
てグラフ表示を行なう電子計算装置、グラフ表示方法、
グラフ表示制御プログラムが記録された記録媒体に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic computer for displaying a graph based on a functional expression, a graph display method,
The present invention relates to a recording medium on which a graph display control program is recorded.

【0002】[0002]

【従来の技術】従来、関数計算機能を備えた電子計算装
置において、関数式を入力してグラフの表示を指示する
と、入力された関数式に対応するグラフが表示されるも
のが実用化されている。
2. Description of the Related Art Conventionally, in an electronic computer having a function calculating function, when a function formula is input and a display of a graph is instructed, a graph corresponding to the input function formula is displayed. I have.

【0003】電子計算装置では、例えば複数の数値デー
タが指定されると共に、グラフ表示の対象とする関数が
指定されることにより、グラフを表示するための座標デ
ータを算出して、予め設定されたXY座標範囲にグラフ
を表示する。
In an electronic computer, for example, by specifying a plurality of numerical data and a function to be displayed in a graph, coordinate data for displaying a graph is calculated and set in advance. A graph is displayed in the XY coordinate range.

【0004】ところが従来のグラフ表示が可能な電子計
算装置では、例えば図4(a)に示すような総和記号
(Σ記号)を含む関数式、例えば電気系の分野で良く用
いられる「フーリエ変換」や「ラプラス変換」等の概念
を表す関数式については、そのままグラフ表示すること
ができない。
However, in a conventional electronic computer capable of displaying a graph, for example, a function formula including a sum symbol (Σ symbol) as shown in FIG. 4A, for example, a “Fourier transform” often used in the field of electric systems And a function expression representing a concept such as “Laplace transform” cannot be displayed as a graph.

【0005】例えば、図4(a)に示す関数式につい
て、そのままグラフの表示を指示すると、関数式につい
ての書式エラーとなってしまう。また、書式エラーとな
らないようにするためには、総和記号(Σ記号)の書式
内を予め演算して定数とした後にグラフ表示を行なう
か、あるいは図4(b)に示すように、総和記号を含む
関数式と同等の関数式に展開して、グラフ表示用の数式
を入力する必要がある。
For example, if the display of a graph is directly instructed for the function expression shown in FIG. 4A, a format error occurs for the function expression. Further, in order to prevent a format error, a graph display is performed after calculating a constant in the format of the summation symbol (定 数 symbol) in advance, or as shown in FIG. It is necessary to expand to a function expression equivalent to a function expression including and enter a mathematical expression for displaying a graph.

【0006】例えば、図4(b)に示すように、総和記
号を含む関数式を展開して、グラフ表示を指示すること
により、図4(c)に示すように、総和記号を含む関数
式を表すグラフを表示させることができる。すなわち、
図4(c)に示すグラフは、図4(a)に示す関数式の
総和記号に対する変数nについて、初期値n=1から最
終値n=10までの各値での数式の総和を表すグラフと
なっている。
For example, as shown in FIG. 4B, by expanding a function expression including a summation symbol and instructing a graph display, a function expression including a summation symbol is obtained as shown in FIG. Can be displayed. That is,
The graph shown in FIG. 4C is a graph showing the sum of mathematical expressions at each value from the initial value n = 1 to the final value n = 10 for the variable n for the sum symbol of the function expression shown in FIG. It has become.

【0007】[0007]

【発明が解決しようとする課題】このように従来の電子
計算装置では、総和記号を含む関数式のグラフを表示す
る場合には、グラフの変数X,Yの他に総和記号(Σ)
の変数nを含むグラフを表示することができず、総和記
号の書式内を予め演算して定数とした後にグラフ表示を
行なうか、あるいは総和記号を含む関数式と同等の関数
式に展開した上でグラフ表示させなければならなかっ
た。
As described above, in the conventional electronic computer, when displaying a graph of a function formula including a summation symbol, the summation symbol (Σ) is used in addition to the variables X and Y of the graph.
Cannot display the graph containing the variable n of the sum, and then display the graph after calculating the sum symbol format in advance and converting it to a constant, or expand it into a function formula equivalent to a function formula containing the sum symbol. Had to be displayed as a graph.

【0008】このため例えば、電気系の分野で良く用い
られる「フーリエ変換」や「ラプラス変換」等の概念を
表すグラフイメージを捉えることが難しく、またf(n
x)の形式(nは総和記号の変数)で表現される関数式
を入力するために、y=x+2x+3x+…+10xの
ように、関数式を展開するしなければならず非常に多く
の手間がかかってしまっていた。
For this reason, for example, it is difficult to capture graph images representing concepts such as “Fourier transform” and “Laplace transform” which are often used in the field of electric systems, and f (n
In order to input a function expression expressed in the form of x) (n is a variable of a sum symbol), the function expression must be expanded as y = x + 2x + 3x +... + 10x, which takes a great deal of trouble. Had been lost.

【0009】本発明は前記のような事情を考慮してなさ
れたもので、総和記号を含む関数式を表すグラフを簡単
に表示することが可能な電子計算装置、グラフ表示方
法、グラフ表示制御プログラムが記録された記録媒体を
提供することを目的とする。
The present invention has been made in view of the above circumstances, and has an electronic computer, a graph display method, and a graph display control program capable of easily displaying a graph representing a function expression including a summation symbol. It is intended to provide a recording medium on which is recorded.

【0010】[0010]

【課題を解決するための手段】本発明は、関数式をもと
にしてグラフ表示を行なう電子計算装置において、グラ
フ表示の対象となる関数式に総和記号が含まれているか
を判別する判別手段と、前記判別手段によって総和記号
が含まれていると判別された場合、前記総和記号に対す
る変数の初期値から最終値までの前記関数式の総和を求
め、この総和を表すグラフを表示するためのデータを算
出する算出手段と、前記算出手段によって算出されたデ
ータを記憶するためのグラフ記憶手段と、前記グラフ記
憶手段によって記憶されたデータをもとにして、総和記
号を含む関数式を表すグラフを表示する表示手段とを具
備したことを特徴とする。
SUMMARY OF THE INVENTION The present invention relates to an electronic computing device for displaying a graph based on a function expression, and a determination means for determining whether or not the function expression to be displayed on the graph includes a sum symbol. And when the discriminating means determines that the summation symbol is included, obtains a summation of the functional expressions from an initial value to a final value of a variable for the summation symbol, and displays a graph representing the summation. Calculating means for calculating data, a graph storing means for storing the data calculated by the calculating means, and a graph representing a functional expression including a summation symbol based on the data stored by the graph storing means And a display means for displaying

【0011】このような構成によれば、関数式に総和記
号が含まれていた場合であっても、総和記号に対する変
数の初期値から最終値までの関数式の総和が求められ、
グラフを表示するためのデータが算出される。従って、
総和記号を含む関数式を同等の関数式に予め展開してお
くといった作業が不要となる。
According to such a configuration, even when the summation symbol is included in the function expression, the summation of the function expression from the initial value to the final value of the variable for the summation symbol is obtained.
Data for displaying the graph is calculated. Therefore,
This eliminates the need to pre-expand a function formula including the summation symbol into an equivalent function formula.

【0012】また、前記算出手段は、前記関数式の総和
記号に対する変数の初期値から最終値までの各値毎に、
それぞれの前記関数式の総和を求め、それぞれの総和を
表すグラフを表示するためのデータを算出して、前記グ
ラフ記憶手段に記憶させ、前記表示手段は、前記グラフ
記憶手段に記憶された、前記総和記号に対する変数の各
値に応じたグラフを選択的に表示させることを特徴とす
る。
[0012] The calculating means may include, for each value from the initial value to the final value of the variable for the summation symbol of the function formula,
The sum of each of the functional expressions is determined, data for displaying a graph representing each sum is calculated and stored in the graph storage unit, and the display unit is stored in the graph storage unit. It is characterized in that a graph corresponding to each value of the variable for the sum symbol is selectively displayed.

【0013】このような構成によれば、総和記号を含む
関数式の総和記号に対する変数の初期値から最終値まで
の総和を表すグラフだけでなく、変数の初期値から各値
までのそれぞれの総和を表すグラフを任意に選択して表
示させることができる。
According to such a configuration, not only the graph representing the sum from the initial value to the final value of the variable with respect to the sum symbol of the function formula including the sum symbol, but also the sum of the respective variables from the initial value to each value. Can be arbitrarily selected and displayed.

【0014】[0014]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。図1は本実施形態に係わる
電子計算装置のシステム構成を示すブロック図である。
本実施形態における電子計算装置は、例えばCD−RO
M、DVD、磁気ディスク等の記録媒体に記録されたプ
ログラムを読み込み、このプログラムによって動作が制
御されるコンピュータによって実現される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the system configuration of the electronic computer according to the present embodiment.
The electronic computer according to the present embodiment is, for example, a CD-RO
It is realized by a computer which reads a program recorded on a recording medium such as an M, DVD, or magnetic disk, and whose operation is controlled by the program.

【0015】図1に示すように、本実施形態における電
子計算装置は、CPU11、キー入力部12、ROM1
3、RAM14、表示駆動回路15、表示部16、及び
記録媒体読取り部20によって構成されている。
As shown in FIG. 1, an electronic computer according to this embodiment includes a CPU 11, a key input unit 12, a ROM 1
3, a RAM 14, a display drive circuit 15, a display unit 16, and a recording medium reading unit 20.

【0016】CPU11は、装置全体の制御を司るもの
で、キー入力部12からのキー操作信号に応じて、RO
M13に予め記憶されているシステムプログラムを起動
させ、このシステムプログラムに従ってグラフ表示処理
を実行するものである。CPU11には、キー入力部1
2、ROM13の他、RAM14が接続されると共に、
表示駆動回路15を介して表示部16が接続され、また
記録媒体読取り部20が接続される。
The CPU 11 controls the overall operation of the apparatus. In response to a key operation signal from the key input unit 12, the CPU 11
A system program stored in advance in M13 is started, and a graph display process is executed according to the system program. The CPU 11 has a key input unit 1
2. In addition to the ROM 13, the RAM 14 is connected,
The display unit 16 is connected via the display drive circuit 15, and the recording medium reading unit 20 is connected.

【0017】なお、CPU11は、ROM13に記憶さ
れたプログラムに限らず、記録媒体読取り部20によっ
て記録媒体21に記録されているプログラムを読み込
み、RAM14に記憶させて実行することもできる。
Note that the CPU 11 is not limited to the program stored in the ROM 13, and may read the program recorded in the recording medium 21 by the recording medium reading unit 20 and store the program in the RAM 14 for execution.

【0018】キー入力部12は、装置の動作を規定する
指示やデータを入力するもので、数値キー、文字キー、
記号キー等が含まれるデータ入力キー12a、関数式の
グラフを表示させる「グラフ」キー12b、各種選択や
指定を行なうためのカーソルキー12cが設けられてい
る。なお、図示していないが、各種の機能を実行するた
めのファンクションキーの他、各種のキーが設けられて
いるものとする。
The key input unit 12 is for inputting instructions and data for defining the operation of the apparatus, and includes numerical keys, character keys,
A data input key 12a including a symbol key and the like, a "graph" key 12b for displaying a graph of a function expression, and a cursor key 12c for performing various selections and designations are provided. Although not shown, it is assumed that various keys are provided in addition to the function keys for executing various functions.

【0019】ROM13は、電子計算装置の全体の制御
を司るシステムプログラムの他、各種の動作モードに対
応した制御処理プログラム等が予め記憶される。RAM
14は、電子計算装置において扱われる各種のデータを
記憶するもので、表示レジスタ14a、式レジスタ14
b、グラフレジスタ14c等が設けられている。
The ROM 13 stores, in advance, a system processing program for controlling the entire electronic computer, a control processing program corresponding to various operation modes, and the like. RAM
Numeral 14 stores various data handled in the electronic computer, and includes a display register 14a, an expression register 14
b, a graph register 14c, and the like.

【0020】表示レジスタ14aには、表示部16に表
示すべき表示データ、例えば関数式や関数式を表すグラ
フなどの表示データがビットマップデータとして展開さ
れて記憶される。
In the display register 14a, display data to be displayed on the display unit 16, for example, display data such as a function expression or a graph representing the function expression is developed and stored as bitmap data.

【0021】式レジスタ14bは、関数計算を行なうた
めの関数式のデータが記憶される。式レジスタ14bに
記憶された関数式のデータは、関数計算処理と共に、関
数式を表すグラフ表示を行なう際に参照される。グラフ
表示の対象とする関数式には、総和記号(Σ記号)を含
むことができる。
The expression register 14b stores data of a function expression for performing a function calculation. The data of the function expression stored in the expression register 14b is referred to when performing a graph display representing the function expression together with the function calculation processing. The function expression to be displayed in the graph can include a sum symbol (Σ symbol).

【0022】グラフレジスタ14cは、式レジスタ14
bに記憶されたデータが示す関数式に応じたグラフのデ
ータが記憶されるもので、総和記号が含まれている場合
には、関数式の初期値から最終値までの各値毎の総和に
応じたグラフのデータが記憶される。
The graph register 14c is an expression register 14
The data of the graph corresponding to the function expression indicated by the data stored in b is stored. When the sum symbol is included, the sum of each value from the initial value to the final value of the function expression is calculated. The corresponding graph data is stored.

【0023】表示駆動回路15は、CPU11の制御の
もとでRAM14に記憶された各種データに基づいて、
表示部16におけるグラフ等の表示を駆動制御する。表
示部16は、例えばカラー表示が可能な液晶ディスプレ
イで構成され、表示駆動回路15の制御のもとで各種表
示を行なう。
The display drive circuit 15 is controlled by the CPU 11 based on various data stored in the RAM 14 to
The display of a graph or the like on the display unit 16 is drive-controlled. The display unit 16 is composed of, for example, a liquid crystal display capable of color display, and performs various displays under the control of the display drive circuit 15.

【0024】記録媒体読取り部20は、記録媒体21に
対してプログラムやデータの書き込み/読出しを行な
う。記録媒体21としては、例えばフロッピーディス
ク、ハードディスク、CD−ROM、DVDなどの各種
のものが利用できる。
The recording medium reading unit 20 writes / reads a program or data to / from the recording medium 21. As the recording medium 21, for example, various media such as a floppy disk, a hard disk, a CD-ROM, and a DVD can be used.

【0025】次に、本実施形態における電子計算装置の
動作について、図2に示すフローチャートを参照しなが
ら説明する。まず、電子計算装置のシステム電源が投入
されると、CPU11は、ROM13に記憶された制御
処理プログラムを起動してグラフ処理を実行する。グラ
フ処理では、任意に関数式を入力して、この関数式を表
すグラフを表示部16において表示させることができ
る。
Next, the operation of the electronic computer according to this embodiment will be described with reference to the flowchart shown in FIG. First, when the system power supply of the electronic computer is turned on, the CPU 11 activates a control processing program stored in the ROM 13 to execute graph processing. In the graph processing, a function expression can be arbitrarily input, and a graph representing the function expression can be displayed on the display unit 16.

【0026】ここで、キー入力部12のデータ入力キー
12aが押下されると、CPU11は、グラフ表示の対
象とする関数式を表すデータとして入力し、RAM14
の式レジスタ14bに記憶させる(ステップS1,S
2)。
Here, when the data input key 12a of the key input section 12 is pressed, the CPU 11 inputs as data representing a function expression to be displayed in a graph,
(Steps S1, S1)
2).

【0027】本実施形態では、例えば図3(a)に示す
ように、グラフ表示の対象とする関数式として、総和記
号を含む関数式が入力されたものとする。図3(a)に
示す関数式は、総和記号に対する変数nを初期値1から
最終値10までの各値とした時の数式の総和Yを求める
ものである。
In this embodiment, as shown in FIG. 3A, for example, it is assumed that a function expression including a sum symbol is input as a function expression to be displayed in a graph. The function expression shown in FIG. 3A is for obtaining the sum Y of the mathematical expression when the variable n for the sum symbol is set to each value from the initial value 1 to the final value 10.

【0028】図3(a)に示すように、グラフ表示の対
象とする関数式が入力された後、キー入力部12の「グ
ラフ」キー12bが押下されると(ステップS11)、
CPU11は、式レジスタ14bに格納された関数式を
表すグラフを表示処理を開始する。
As shown in FIG. 3A, when a "graph" key 12b of the key input unit 12 is pressed after a function expression to be displayed in a graph is input (step S11).
The CPU 11 starts displaying a graph representing the function expression stored in the expression register 14b.

【0029】CPU11は、RAM14の式レジスタ1
4bに記憶された関数式を表すデータを参照して、総和
記号(Σ記号)が含まれているか否かを判別する(ステ
ップS12)。ここで、関数式に総和記号が含まれてい
ないと判別された場合、CPU11は、入力された関数
式に応じたグラフを表示するための座標データを算出
し、RAM14のグラフレジスタ14cに記憶させる
(ステップS13)。
The CPU 11 stores the expression register 1 in the RAM 14
With reference to the data representing the function expression stored in 4b, it is determined whether or not a sum symbol (Σ symbol) is included (step S12). If it is determined that the function expression does not include the summation symbol, the CPU 11 calculates coordinate data for displaying a graph corresponding to the input function expression and stores the coordinate data in the graph register 14c of the RAM 14. (Step S13).

【0030】CPU11は、表示駆動回路15により、
グラフレジスタ14cに記憶されたグラフのデータをも
とに表示部16において関数式を表すグラフを表示させ
る(ステップS14)。
The CPU 11 controls the display drive circuit 15
Based on the graph data stored in the graph register 14c, a graph representing a function expression is displayed on the display unit 16 (step S14).

【0031】一方、関数式に総和記号が含まれていると
判別された場合、CPU11は、入力された関数式につ
いて、総和記号に付加された変数nに初期値1を代入
し、関数式に応じたグラフを表示するための座標データ
を算出し、RAM14のグラフレジスタ14c(g1)
に記憶させる(ステップS3)。
On the other hand, if it is determined that the function expression includes the summation symbol, the CPU 11 substitutes an initial value 1 for a variable n added to the summation symbol for the input function expression, and The coordinate data for displaying the corresponding graph is calculated, and the graph register 14c (g1) of the RAM 14 is calculated.
(Step S3).

【0032】図3(a)に示す関数式の例では、n=1
の時のy=1/n(sin x)のグラフの座標データ
を記憶しておく。また、CPU11は、関数式の総和Y
のグラフを算出するための後段の処理用に、グラフの座
標データをg1として設定する(ステップS4)。
In the example of the function formula shown in FIG.
The coordinate data of the graph of y = 1 / n (sin x) at the time of is stored. Further, the CPU 11 calculates the sum Y of the function formulas.
The coordinate data of the graph is set as g1 for the subsequent processing for calculating the graph (step S4).

【0033】次に、CPU11は、関数式の変数nの値
に1を加えて更新し(ステップS5)、この更新後のn
の値を代入し、関数式に応じたグラフを表示するための
座標データを算出する(ステップS6)。すなわち、図
3(a)に示す関数式の例では、n=2の時のy=2/
n(sin 2x)のグラフの座標データを計算して求
める。
Next, the CPU 11 adds 1 to the value of the variable n of the function expression to update it (step S5), and updates the updated n.
And the coordinate data for displaying the graph according to the function formula is calculated (step S6). That is, in the example of the function expression shown in FIG. 3A, when n = 2, y = 2 /
The coordinate data of the graph of n (sin 2x) is calculated and obtained.

【0034】CPU11は、前段の処理において設定し
た座標データg1に、今回の変数nが2である時のグラ
フの座標データを加えてg2として設定する(ステップ
S7)。また、CPU11は、グラフの座標データg2
をRAM14のグラフレジスタ14c(g2)に記憶さ
せる(ステップS8)。従って、グラフレジスタ14c
(g2)に記憶される座標データg2は、y=1/n
(sin x)+2/n(sin 2x)の関数式のグ
ラフを表すデータとなる。
The CPU 11 adds the coordinate data of the graph at the time when the variable n is 2 to the coordinate data g1 set in the preceding process, and sets the result as g2 (step S7). The CPU 11 also calculates the coordinate data g2 of the graph.
Is stored in the graph register 14c (g2) of the RAM 14 (step S8). Therefore, the graph register 14c
The coordinate data g2 stored in (g2) is y = 1 / n
This is data representing a graph of a function formula of (sin x) + 2 / n (sin 2x).

【0035】ここで、総和記号に付加された変数nの値
が指定された値(図3(a)に示す例では10)になっ
ていなければ、CPU11は、ステップS5の処理に戻
り、関数式の変数nの値に1を加えて更新し、以下、前
述と同様の処理を実行する。
Here, if the value of the variable n added to the summation symbol is not the specified value (10 in the example shown in FIG. 3A), the CPU 11 returns to the processing of step S5 and The value of the variable n in the expression is updated by adding 1, and thereafter, the same processing as described above is executed.

【0036】従って、前述した処理を変数nに対して指
定された最終値まで繰り返し実行することで、初期値
(1)から最終値(10)までの各値毎の関数式のグラ
フのデータがRAM14のグラフレジスタ14c(g1
〜g10)に記憶される。
Accordingly, by repeatedly executing the above-described processing up to the final value designated for the variable n, the data of the graph of the function formula for each value from the initial value (1) to the final value (10) is obtained. The graph register 14c (g1
To g10).

【0037】こうして、変数nの最終値までの処理が行
なわれると(ステップS9)、CPU11は、最終値
(10)でのグラフ、すなわち総和記号を含む関数式を
表すグラフを、表示駆動回路15により、グラフレジス
タ14c(g10)に記憶されたグラフのデータをもと
に表示部16において関数式を表すグラフを表示させる
(ステップS10)。図3(b)には、図3(a)に示
す関数式を表すグラフの表示例を示している。図3
(b)に示す例では、変数nの値(n=10)を共に表
示している。
When the processing up to the final value of the variable n is performed (step S9), the CPU 11 renders the graph at the final value (10), that is, the graph representing the function formula including the summation symbol, into the display drive circuit 15 Thus, a graph representing a functional expression is displayed on the display unit 16 based on the graph data stored in the graph register 14c (g10) (step S10). FIG. 3B shows a display example of a graph representing the function formula shown in FIG. FIG.
In the example shown in (b), the value of the variable n (n = 10) is displayed together.

【0038】さらに、本実施形態における電子計算装置
では、図3(b)に示すように、関数式の総和Yを表す
グラフが表示された状態では、変数nの各値に応じたグ
ラフの表示に変更させることができる。
Further, in the electronic computer according to the present embodiment, as shown in FIG. 3B, when a graph representing the sum Y of the function formulas is displayed, a graph corresponding to each value of the variable n is displayed. Can be changed.

【0039】図3(b)に示す状態において、キー入力
部12のカーソルキー12cが押下されると、CPU1
1は、例えば上方向あるいは下方向を示すカーソルキー
であった場合、RAM14に総和記号を含む関数式に関
するグラフのデータ(g1〜g10)が記憶されている
か否かを判別する(ステップS16)。
When the cursor key 12c of the key input section 12 is pressed in the state shown in FIG.
For example, when the cursor key indicates an upward direction or a downward direction, it is determined whether or not the RAM 14 stores graph data (g1 to g10) relating to a function expression including a summation symbol (step S16).

【0040】ここで、グラフが記憶されている場合、C
PU11は、カーソルキーによる指示に応じたグラフの
データを読み出し(ステップS17)、表示駆動回路1
5により表示部16において変数nの値と共に表示させ
る(ステップS18)。
Here, if a graph is stored, C
The PU 11 reads the data of the graph according to the instruction by the cursor key (step S17), and the display drive circuit 1
5 is displayed together with the value of the variable n on the display unit 16 (step S18).

【0041】例えば、下方向を示すカーソルキーが、変
数nの値が小さいグラフの表示を指示するために割り当
てられている場合、変数n=10の時のグラフが表示さ
れている状態で下方向のカーソルキーを押下すること
で、変数n=9の時のグラフの表示に切替えることがで
きる。
For example, when the cursor key indicating the downward direction is assigned to instruct the display of the graph in which the value of the variable n is small, the downward direction is displayed while the graph when the variable n = 10 is displayed. Can be switched to the graph display when the variable n = 9.

【0042】同様にして、下方向のカーソルキーを任意
の回数、押下することで、各変数値でのグラフを表示さ
せることができる。図3(c)(d)(e)には、それ
ぞれn=5の時、n=3の時、n=1の時のグラフが表
示された状態を示している。
Similarly, by pressing the down cursor key an arbitrary number of times, a graph for each variable value can be displayed. FIGS. 3C, 3D, and 3E show states where graphs are displayed when n = 5, n = 3, and n = 1, respectively.

【0043】また、逆に、上方向のカーソルキーが、変
数nの値が大きいグラフの表示を指示するために割り当
てられている場合、上方向のカーソルキーを押下するこ
とで、現在表示しているグラフに対応する変数nの値の
次の値のグラフの表示に切替えることができる。
Conversely, if the upward cursor key is assigned to instruct the display of a graph having a large value of the variable n, pressing the upward cursor key causes the current display to be performed. The display can be switched to a graph of a value next to the value of the variable n corresponding to the current graph.

【0044】このようにして、本実施形態における電子
計算装置では、総和記号を含む関数式であっても、総和
記号の書式内を予め演算して定数化したり、総和記号を
含む関数式と同等の式に展開することなく、そのままグ
ラフ表示させることができるため、何等手間を必要とせ
ず、作業負担を軽減することができる。
As described above, in the electronic computing device according to the present embodiment, even if the function formula includes the summation symbol, the format of the summation symbol is calculated in advance and converted into a constant, or the same as the function formula including the summation symbol. Since the graph can be displayed as it is without expanding to the above equation, no labor is required and the work load can be reduced.

【0045】また、総和記号に付加された変数nの最終
値(図3(a)に示す例ではn=10))までの総和Y
のグラフだけでなく、初期値から最終値までの各値での
グラフを、例えばカーソルキー12cの操作による任意
の指示によって表示させることができる。従って、例え
ば電気系の分野で用いられる「フーリエ変換」や「ラプ
ラス変換」等のグラフイメージを容易に把握することが
できる。
The sum Y up to the final value of the variable n added to the sum symbol (n = 10 in the example shown in FIG. 3A)
In addition to the graph, the graph at each value from the initial value to the final value can be displayed by an arbitrary instruction by operating the cursor key 12c, for example. Therefore, for example, a graph image such as “Fourier transform” or “Laplace transform” used in the field of electric systems can be easily grasped.

【0046】なお、前述した処理は、コンピュータに実
行させることのできるプログラムとして、例えば磁気デ
ィスク、光ディスク、さらに半導体メモリなどの記録媒
体に記録させて提供させることができる。本装置を実現
するコンピュータは、記録媒体に記録されたプログラム
を読み込み、このプログラムによって動作が制御される
ことにより、上述した処理を実行する。
The above-described processing can be provided as a program that can be executed by a computer by recording the program on a recording medium such as a magnetic disk, an optical disk, and a semiconductor memory. A computer that realizes the present apparatus reads the program recorded on the recording medium, and executes the above-described processing by controlling the operation of the program.

【0047】[0047]

【発明の効果】以上詳述したように本発明によれば、グ
ラフ表示の対象となる関数式に総和記号が含まれている
かを判別し、この判別によって総和記号が含まれている
と判別された場合、総和記号に対する変数の初期値から
最終値までの前記関数式の総和を求め、この総和を表す
グラフを表示するためのデータを算出し、この算出され
たデータをもとにして総和記号を含む関数式を表すグラ
フを表示することができるので、総和記号を含む関数式
であっても、総和記号の書式内を予め演算して定数化し
たり、総和記号を含む関数式と同等の式に展開すること
なく、そのままグラフ表示させることができ、作業負担
を軽減することができる。
As described above in detail, according to the present invention, it is determined whether or not a summation symbol is included in a function expression to be displayed in a graph, and by this determination, it is determined that the summation symbol is included. In this case, the sum of the function formula from the initial value to the final value of the variable for the sum symbol is obtained, data for displaying a graph representing the sum is calculated, and the sum symbol is calculated based on the calculated data. Can be displayed as a graph that represents a function expression that includes the summation symbol, so even if it is a function expression that includes the summation symbol, it is calculated in advance in the format of the summation symbol and converted into a constant, or an expression equivalent to the function expression that includes the summation symbol The graph can be displayed as it is without expanding the data, and the work load can be reduced.

【0048】また、関数式の総和記号に対する変数の初
期値から最終値までの各値毎に、それぞれの関数式の総
和を求め、それぞれの総和を表すグラフを表示するため
のデータを算出して記憶させ、この記憶された総和記号
に対する変数の各値に応じたグラフを選択的に表示させ
ることができるので、総和記号に対する変数値の違いに
よる関数式を表すグラフの変化を容易に把握することが
できる。
Further, for each value from the initial value to the final value of the variable for the sum symbol of the function formula, the sum of each function formula is obtained, and data for displaying a graph representing each sum is calculated. Since it is possible to memorize and selectively display a graph corresponding to each value of the variable for the stored sum symbol, it is easy to grasp the change of the graph representing the function formula due to the difference in the variable value for the sum symbol. Can be.

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

【図1】本発明の実施形態に係わる電子計算装置のシス
テム構成を示すブロック図。
FIG. 1 is an exemplary block diagram showing the system configuration of an electronic computing device according to an embodiment of the present invention.

【図2】本実施形態における電子計算装置のグラフ表示
処理の動作について説明するためのフローチャート。
FIG. 2 is a flowchart for explaining the operation of a graph display process of the electronic computer according to the embodiment.

【図3】本実施形態におけるグラフ表示の具体例を説明
するための図。
FIG. 3 is a view for explaining a specific example of graph display according to the embodiment.

【図4】従来におけるグラフ表示の具体例を説明するた
めの図。
FIG. 4 is a diagram for explaining a specific example of a conventional graph display.

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

11…CPU11 12…キー入力部 13…ROM 14…RAM 15…表示駆動回路 16…表示部 20…記録媒体読取り部 21…記録媒体 DESCRIPTION OF SYMBOLS 11 ... CPU11 12 ... Key input part 13 ... ROM14 ... RAM15 ... Display drive circuit 16 ... Display part 20 ... Recording medium reading part 21 ... Recording medium

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 関数式をもとにしてグラフ表示を行なう
電子計算装置において、 グラフ表示の対象となる関数式に総和記号が含まれてい
るかを判別する判別手段と、 前記判別手段によって総和記号が含まれていると判別さ
れた場合、前記総和記号に対する変数の初期値から最終
値までの前記関数式の総和を求め、この総和を表すグラ
フを表示するためのデータを算出する算出手段と、 前記算出手段によって算出されたデータを記憶するため
のグラフ記憶手段と、 前記グラフ記憶手段によって記憶されたデータをもとに
して、総和記号を含む関数式を表すグラフを表示する表
示手段とを具備したことを特徴とする電子計算装置。
1. An electronic computing device for displaying a graph based on a function expression, wherein a discriminating means for discriminating whether or not the function expression to be displayed on the graph includes a summation symbol; When it is determined that is included, calculating means for calculating the sum of the functional formula from the initial value to the final value of the variable for the sum symbol, and calculating data for displaying a graph representing the sum, Graph storage means for storing the data calculated by the calculation means, and display means for displaying a graph representing a function expression including a summation symbol based on the data stored by the graph storage means. An electronic computing device, comprising:
【請求項2】 前記算出手段は、前記関数式の総和記号
に対する変数の初期値から最終値までの各値毎に、それ
ぞれの前記関数式の総和を求め、それぞれの総和を表す
グラフを表示するためのデータを算出して、前記グラフ
記憶手段に記憶させ、 前記表示手段は、前記グラフ記憶手段に記憶された、前
記総和記号に対する変数の各値に応じたグラフを選択的
に表示させることを特徴とする請求項1記載の電子計算
装置。
2. The calculating means obtains the sum of the function formulas for each value from the initial value to the final value of the variable for the sum symbol of the function formula, and displays a graph representing the sum of the function formulas. Calculating the data for the sum, and storing the calculated data in the graph storage means.The display means selectively displays a graph corresponding to each value of the variable for the sum symbol stored in the graph storage means. The electronic computing device according to claim 1, wherein:
【請求項3】 関数式をもとにしてグラフ表示を行なう
グラフ表示方法であって、 グラフ表示の対象となる関数式に総和記号が含まれてい
るかを判別し、 この判別によって総和記号が含まれていると判別された
場合、前記総和記号に対する変数の初期値から最終値ま
での前記関数式の総和を求め、この総和を表すグラフを
表示するためのデータを算出し、 この算出されたデータをもとにして、総和記号を含む関
数式を表すグラフを表示することを特徴とするグラフ表
示方法。
3. A graph display method for displaying a graph based on a function expression, wherein it is determined whether or not the function expression to be displayed on the graph includes a summation symbol. If it is determined that the sum has been calculated, the sum of the function formula from the initial value to the final value of the variable for the sum symbol is calculated, and data for displaying a graph representing the sum is calculated. A graph representing a function expression including a summation symbol based on the graph.
【請求項4】 前記関数式の総和記号に対する変数の初
期値から最終値までの各値毎に、それぞれの前記関数式
の総和を求め、それぞれの総和を表すグラフを表示する
ためのデータを算出して記憶させ、 この記憶された前記総和記号に対する変数の各値に応じ
たグラフを選択的に表示させることを特徴とする請求項
3記載のグラフ表示方法。
4. For each value from the initial value to the final value of a variable for the sum symbol of the function formula, obtain the sum of each of the function formulas, and calculate data for displaying a graph representing each sum. 4. The graph display method according to claim 3, wherein a graph corresponding to each value of a variable for the stored sum symbol is selectively displayed.
【請求項5】 コンピュータを、 グラフ表示の対象となる関数式に総和記号が含まれてい
るかを判別し、 この判別によって総和記号が含まれていると判別された
場合、前記総和記号に対する変数の初期値から最終値ま
での前記関数式の総和を求め、この総和を表すグラフを
表示するためのデータを算出し、 この算出されたデータをもとにして、総和記号を含む関
数式を表すグラフを表示するように機能させるためのプ
ログラムが記録されたコンピュータ読取り可能な記録媒
体。
5. A computer determines whether or not a summation symbol is included in a function expression to be displayed in a graph, and when it is determined that the summation symbol is included in the function expression, a variable of the variable corresponding to the summation symbol is determined. A total sum of the functional expressions from an initial value to a final value is obtained, data for displaying a graph representing the total is calculated, and a graph representing a functional expression including a sum symbol is calculated based on the calculated data. A computer-readable recording medium on which a program for causing a computer to function as a computer is displayed.
JP30266697A 1997-11-05 1997-11-05 Electronic computation device, graph display method and storage medium Pending JPH11143835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30266697A JPH11143835A (en) 1997-11-05 1997-11-05 Electronic computation device, graph display method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30266697A JPH11143835A (en) 1997-11-05 1997-11-05 Electronic computation device, graph display method and storage medium

Publications (1)

Publication Number Publication Date
JPH11143835A true JPH11143835A (en) 1999-05-28

Family

ID=17911735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30266697A Pending JPH11143835A (en) 1997-11-05 1997-11-05 Electronic computation device, graph display method and storage medium

Country Status (1)

Country Link
JP (1) JPH11143835A (en)

Similar Documents

Publication Publication Date Title
WO1989002114A1 (en) Data processing system
JPH10214171A (en) Information processor
JPH11143835A (en) Electronic computation device, graph display method and storage medium
JP3639970B2 (en) GRAPH DISPLAY DEVICE, GRAPH DISPLAY METHOD, AND RECORDING MEDIUM CONTAINING GRAPH DISPLAY CONTROL PROGRAM
JPH0755635Y2 (en) Small electronic calculator
JPH10222472A (en) Device, method for electronic calculation and recording medium recording calculating processing program
JP3941265B2 (en) Computing device and storage medium
JPH11184822A (en) Graph display device/method and record medium where graph display processing program is recorded
JP2000132516A (en) Calculation device and storage medium
JPH11161613A (en) Electronic computer, computing method, and record medium storing computing process program
JP3858129B2 (en) Set computing device and recording medium recording set computation processing program
JP2000122980A (en) Calculating device and storage medium
JP3633249B2 (en) Graph display device and graph display control method
JPH11184823A (en) Calculation device, vector calculation method and record medium recording vector calculation control program
JP3358113B2 (en) Program creation device for programmable controller
JP3711671B2 (en) Electronic computing device
JPH063468Y2 (en) Small electronic calculator
JP3826556B2 (en) Electronic calculation apparatus and storage medium storing calculation processing program
JPH10222471A (en) Device, method for plotting graph and recording medium recording graph plotting processing program
JP2000057101A (en) Calculating device and recording medium having recorded calculation processing program thereon
JP2686167B2 (en) Circuit drawing display device
JPH0683405A (en) Programming device of programmable controller
JPH11212924A (en) Graph display device and method and record medium recording graph display program
JPH0962855A (en) Information processor, information processing method and storage medium
JPH09128206A (en) Information processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20031211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040706

A521 Written amendment

Effective date: 20040906

Free format text: JAPANESE INTERMEDIATE CODE: A523

A02 Decision of refusal

Effective date: 20041130

Free format text: JAPANESE INTERMEDIATE CODE: A02