JPH0512743B2 - - Google Patents

Info

Publication number
JPH0512743B2
JPH0512743B2 JP1121388A JP12138889A JPH0512743B2 JP H0512743 B2 JPH0512743 B2 JP H0512743B2 JP 1121388 A JP1121388 A JP 1121388A JP 12138889 A JP12138889 A JP 12138889A JP H0512743 B2 JPH0512743 B2 JP H0512743B2
Authority
JP
Japan
Prior art keywords
coordinate
data
register
graph
display
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.)
Expired - Lifetime
Application number
JP1121388A
Other languages
Japanese (ja)
Other versions
JPH0214352A (en
Inventor
Kazuyoshi Watanabe
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 JP1121388A priority Critical patent/JPH0214352A/en
Publication of JPH0214352A publication Critical patent/JPH0214352A/en
Publication of JPH0512743B2 publication Critical patent/JPH0512743B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Calculators And Similar Devices (AREA)
  • Digital Computer Display Output (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】 [発明の技術分野] この発明は関数式をグラフ表示できるグラフ表
示装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a graph display device capable of displaying a functional expression in a graph.

[従来技術] 従来、任意の関数式をグラフ表示できる小型電
子式計算機が考えられているが、この計算機で関
数式をグラフ表示する場合、その関数式の変数
X、Yの範囲をキー入力操作により予め1つ1つ
設定してそれに基づきグラフを表示するようにし
ている。
[Prior Art] Conventionally, small electronic calculators have been developed that can display any functional formula in a graph, but when displaying a functional formula in a graph using this calculator, the range of variables Each item is set in advance and a graph is displayed based on it.

[従来技術の問題点] 然るに上述した計算機の場合、上記変数X、Y
の範囲による表示領域を越えた座標に対しては線
を結ぶようにしていないから、表示領域周辺のグ
ラフが寸切れになつて表示され、完全なグラフの
表示ではなくなつて視覚的に妙な感じを与えるも
のとなつている。
[Problems with the prior art] However, in the case of the above-mentioned calculator, the above variables X, Y
Because lines are not connected to coordinates that exceed the display area, the graph around the display area is displayed in pieces, and the graph is not displayed completely, which creates a strange visual effect. It has become something that gives a feeling.

[発明の目的] この発明は表示領域を越えた座標点に対しても
線を結んで完全な形のグラフの表示ができるよう
にしたグラフ表示装置を提供することを目的とす
る。
[Object of the Invention] An object of the present invention is to provide a graph display device that can display a complete graph by connecting lines even to coordinate points beyond the display area.

[発明の要点] この発明は関数式のグラフ表示を行う場合、前
回の座標点と今回の座標点との位置関係に応じ
て、両座標点を線で結ぶか否かを制御するように
したことを要点とする。
[Key Points of the Invention] When displaying a graph of a functional formula, this invention controls whether or not to connect the previous coordinate point and the current coordinate point with a line, depending on the positional relationship between the previous coordinate point and the current coordinate point. The main point is that.

[実施例] 以下、図面を参照して、この発明の一実施例を
説明する。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図はグラフ表示機能を備えた小型電子式計
算機の回路図である。図中、1はキー入力部であ
り、このキー入力部1には通常の計算機に設けら
れているテンキー1A、フアンクシヨンキー1
B、関数の計算式を入力するための関数キー1
C、関数式のグラフ表示モードを指定するグラフ
キー1D、関数式に含まれる独立変数X、従属変
数Yの各範囲データの入力モードを指定するレン
ジキー1E、関数計算等の実行指示を行うための
EXE(実行)キー1Fが少なくとも設けてあり、
各キーからの信号は制御部2に送られて処理され
る。
FIG. 1 is a circuit diagram of a small electronic calculator equipped with a graph display function. In the figure, 1 is a key input section, and this key input section 1 includes a numeric keypad 1A and a function key 1, which are provided in a normal calculator.
B. Function key 1 for inputting the function formula
C, Graph key 1D for specifying the graph display mode of the function formula, Range key 1E for specifying the input mode for each range data of independent variable X and dependent variable Y included in the function formula, for issuing execution instructions for function calculations, etc. of
At least an EXE (execution) key 1F is provided,
Signals from each key are sent to the control section 2 and processed.

制御部2はこの計算機のすべての動作を制御す
るプログラムを記憶するROM(リードオンリメ
モリ)、インストラクシヨン・デコーダなどから
成り、メモリ部3、実行ポインタ4、演算部5、
表示バツフア部6に各種制御信号を与える。
The control unit 2 consists of a ROM (read only memory) that stores programs that control all operations of this computer, an instruction decoder, etc., and includes a memory unit 3, an execution pointer 4, an arithmetic unit 5,
Various control signals are given to the display buffer section 6.

メモリ部3はRAM(ランダムアクセスメモ
リ)、アドレスデコーダなどから成り、関数演算
を行うとき実行ポインタ4に制御部2によつてセ
ツトされる実行ポインタ4が一時退避されるポイ
ンタレジスタ3A、カーソルポインタ3B、ワー
クレジスタ3C、後述する3つのフラグが各々に
セツトされるフラグレジスタ3D、関数演算実行
時のグラフ表示のための前回の座標(x0、y0)が
夫々セツトされるx0レジスタ3E、y0レジスタ3
F、今回の座標(x、y)が夫々セツトされるx
レジスタ3G、yレジスタ3H、独立変数xの範
囲データの最小値、最大値が夫々セツトされる
xminレジスタ3I、xmaxレジスタ3J、従属
変数yの範囲データの最小値、最大値が夫々セツ
トされるyminレジスタ3K、ymaxレジスタ3
L、グラフ表示を行うための座標(x、y)にお
ける実際の数値が書込まれるxmemoレジスタ3
M、ymemoレジスタ3N、後述するテキスト表
示、グラフ表示の何れかを行うときに、上記表示
バツフア部6を構成するグラフ表示バツフア6
A、テキスト表示バツフア6Bから各表示データ
が一時退避のために夫々転送されてくる退避エリ
アA,3P、退避エリアB,3Qを夫々有してい
る。
The memory unit 3 consists of a RAM (random access memory), an address decoder, etc., and includes a pointer register 3A and a cursor pointer 3B in which the execution pointer 4 set by the control unit 2 when performing a function operation is temporarily saved. , a work register 3C, a flag register 3D in which three flags to be described later are set, an x 0 register 3E in which the previous coordinates (x 0 , y 0 ) for displaying a graph when executing a function are respectively set; y 0 register 3
F, the current coordinates (x, y) are set respectively x
Register 3G, y register 3H, and the minimum and maximum values of the range data of independent variable x are set, respectively.
xmin register 3I, xmax register 3J, ymin register 3K, ymax register 3 where the minimum and maximum values of the range data of dependent variable y are set, respectively.
L, xmemo register 3 where the actual values at the coordinates (x, y) for graphical display are written;
M, ymemo register 3N, graph display buffer 6 that constitutes the display buffer section 6 when performing either text display or graph display, which will be described later.
It has evacuation areas A, 3P, and evacuation areas B, 3Q, respectively, to which display data is transferred from text display buffer 6B for temporary evacuation.

キー入力部1から入力される関数式の各データ
は実行ポインタ4によつて指示される数式バツフ
ア7の各アドレスに書込まれ、次いで演算時には
演算部5に読込まれる。
Each data of the function formula inputted from the key input unit 1 is written to each address of the formula buffer 7 indicated by the execution pointer 4, and then read into the calculation unit 5 at the time of calculation.

演算部5は上記数式バツフア7から出力される
関数式の演算を制御部2の制御下にメモリ部3の
上記の各レジスタ3A〜3Qは使つて実行する。
そして演算部5は関数演算実行時にそのグラフ表
示のためのデータをメモリ部3から読出して表示
バツフア部6内のグラフ表示バツフア6Aに送
り、また通常の数値表示等を行うときにはそのた
めのデータをテキスト表示バツフア6Bに送り、
それらの表示データは表示部8に送られて、グラ
フまたは数値等の表示が行われる。
The arithmetic unit 5 executes the calculation of the functional formula output from the formula buffer 7 under the control of the control unit 2 using the registers 3A to 3Q of the memory unit 3.
When executing a function calculation, the calculation unit 5 reads data for displaying the graph from the memory unit 3 and sends it to the graph display buffer 6A in the display buffer unit 6, and when performing normal numerical display etc., the data for that purpose is read out as text. Send to display buffer 6B,
These display data are sent to the display section 8 and displayed as graphs or numerical values.

表示部8は例えば液晶表示装置から成り、X方
向に96ドツト、Y方向に64ドツトの各ドツト表示
体(座標点)を有してデータの表示を行う。尚、
上記フラグレジスタ3Dは、レンジキー1Eの操
作に応じてフラグがセツトされるレンジフラグ、
カーソルが行末にないときにテンキー1Aによる
置数がなされたときフラグ“1”がセツトされる
置数フラグ、カーソルが行末になく、且つ置数後
カーソルを移動させるときフラグ“1”がセツト
される更新フラグを有している。
The display section 8 is composed of, for example, a liquid crystal display device, and has dot displays (coordinate points) of 96 dots in the X direction and 64 dots in the Y direction to display data. still,
The flag register 3D includes a range flag, which is set according to the operation of the range key 1E;
The numeric value flag is set to "1" when the cursor is not at the end of the line and a numeric value is entered using the numeric keypad 1A, and the flag is set to "1" when the cursor is not at the end of the line and the cursor is moved after the numeric value is set. It has an update flag.

次に第2図ないし第7図を参照して動作を説明
する。いま例えば、次の関数式 Y=tanx ……(1) の演算を行う場合を例とする。
Next, the operation will be explained with reference to FIGS. 2 to 7. For example, let us consider a case where the following functional formula Y=tanx (1) is calculated.

この場合、キー入力部1のレンジキー1E、テ
ンキー1Aを予め操作してxminレジスタ3
Ixmaxレジスタ3Fに独立変数xに対する範囲
データの最小値と最大値の各データをプリセツト
し、またyminレジスタ3K、ymaxレジスタ3L
にも同様に、従属変数yに対する範囲データの最
小値と最大値の各データをプリセツトしておく。
In this case, operate the range key 1E and numeric keypad 1A of the key input section 1 in advance to input the xmin register 3.
Preset the minimum and maximum range data for the independent variable x in the Ixmax register 3F, and also preset the ymin register 3K and ymax register 3L.
Similarly, the minimum value and maximum value of the range data for the dependent variable y are preset.

次いで上記(1)式の関数式をグラフキー1D、関
数キー1C、フアンクシヨンキー1B、EXEキ
ー1Fを操作して入力すると、数式バツフア7の
アドレス0〜3には、第2図に示すように、実行
ポインタ4によつてアドレスされて(1)式の関数式
の各データが書込まれる。なお、実行ポインタ
「3」のデータ「END」はEXEキー1Fの操作時
に書込まれるENDコードデータである。そして
第4図ないし第6図のフローチヤートによる動作
にしたがつて、演算部5によつて(1)式の関数演算
が行われ、その結果のグラフが表示部8に表示さ
れる。
Next, when the above formula (1) is input by operating the graph key 1D, function key 1C, function key 1B, and EXE key 1F, addresses 0 to 3 of the formula buffer 7 will contain the information as shown in Figure 2. , each data of the function equation (1) is written by being addressed by the execution pointer 4. Note that the data "END" of the execution pointer "3" is END code data written when the EXE key 1F is operated. Then, in accordance with the operations shown in the flowcharts of FIGS. 4 to 6, the function calculation of equation (1) is performed by the calculation unit 5, and a graph of the result is displayed on the display unit 8.

即ち、第4図に示すメインフローチヤートにお
いて、先ず、ステツプM1において、実行ポイン
タ4の先頭のポインタ(アドレス「0」)がポイ
ンタレジスタ3Aに転送退避されると共に、y0
ジスタ3Fにデータ「FF」(16進コード)が書込
まれ、更にxレジスタ3Gがクリアされる。
That is, in the main flowchart shown in FIG. 4, first, in step M1, the first pointer (address "0") of the execution pointer 4 is transferred and saved to the pointer register 3A, and data "FF" is stored in the y0 register 3F. ” (hexadecimal code) is written, and x register 3G is further cleared.

次にステツプM2では、xminレジスタ3I、
xmaxレジスタ3Jにプリセツトされている前記
範囲データと、いまは「0」のxレジスタのデー
タとを使つて図示する数式の演算が実行され、x
座標が「0」のときの独立変数Xの実際の数値を
示すデータ(いまはxminレジスタ3Iにプリセ
ツトされているデータとなる)が得られてそれが
xmemoレジスタ3Mにセツトされる。即ち、こ
れによつてX座標方向の1番目の表示ドツトの座
標(x=0)における数値が求まる。
Next, in step M2, xmin register 3I,
Using the range data preset in the xmax register 3J and the data in the x register, which is currently "0", the calculation of the formula shown in the figure is executed, and x
Obtain the data (currently the data preset in xmin register 3I) that shows the actual value of the independent variable
Set in xmemo register 3M. That is, the numerical value at the coordinate (x=0) of the first display dot in the X-coordinate direction is determined by this.

次にステツプM3ではポインタレジスタ3Aに
退避しておいたアドレス「0」が実行ポインタ4
に戻され、また次のステツプM4によりこのアド
レス「0」から「3」までの数式バツフア7内の
(1)式の関数演算が実行され、1番目の答えが
ymemoレジスタ3Nにセツトされる。次いでス
テツプM5ではその答が演算エラーか否かが判断
され、而してYESのときにはステツプM6に進ん
でyレジスタ3Hにエラーデータを示す16進コー
ド「FF」が書込まれたのち、ステツプM9に進
む。
Next, in step M3, the address "0" saved in pointer register 3A becomes execution pointer 4.
Then, in the next step M4, the contents of the formula buffer 7 from this address "0" to "3" are returned to
The functional operation of equation (1) is executed, and the first answer is
Set in ymemo register 3N. Next, in step M5, it is determined whether the answer is a calculation error or not. If YES, the process proceeds to step M6, where a hexadecimal code "FF" indicating error data is written in the y register 3H, and then step M9 is performed. Proceed to.

一方、ステツプM5においてNOとなつたとき
には、ステツプM7、M8が実行され、第5図と第
6図に示すフローチヤートによりY座標計算(い
まの場合、Y座標方向の1番目の表示ドツトの座
標を得る計算)とその(X、Y)の1番目の座標
の表示ドツトのデータをグラフ表示バツフア6A
に送り、表示部8にて点灯表示させる処理が実行
される。そして上記ステツプM9に進む。
On the other hand, when the answer is NO in step M5, steps M7 and M8 are executed, and the Y coordinate is calculated (in this case, the coordinate of the first display dot in the Y coordinate direction) according to the flowcharts shown in FIGS. (calculation to obtain) and the data of the display dot of the first coordinate of that (X, Y) is displayed in a graph buffer 6A
, and a process of lighting and displaying on the display section 8 is executed. Then proceed to step M9 above.

ステツプM9ではxレジスタ3Gからx0レジス
タ3Eに対し今回の演算結果データが前回の演算
結果データとして転送退避され、また同様に、y
レジスタ3Hからy0レジスタ3Fに今回の演算デ
ータが前回の演算データとして転送退避される。
In step M9, the current operation result data is transferred and saved from the x register 3G to the x0 register 3E as the previous operation result data, and similarly, the y
The current calculation data is transferred and saved from the register 3H to the y0 register 3F as the previous calculation data.

次にステツプM10ではxレジスタ3Gのデータ
が+1され、またステツプM11ではその結果デー
タがX方向の最大の表示ドツト「95」より大きい
「96」以上となつたか否かが判断され、而してい
まの場合は当然NOとなつてステツプM2に戻り、
2番目以下の(X、Y)の各座標が、ステツプ
M2〜M11の繰返しによつて実行され、而してス
テツプM11にてYESとなつたときには演算を終
了し、結果的に第3図に示すグラフが表示部8に
おいて表示される。
Next, in step M10, the data in the x register 3G is incremented by 1, and in step M11, it is determined whether or not the resulting data is greater than or equal to "96", which is larger than the maximum display dot in the X direction, "95". In this case, of course the answer is NO and we return to step M2.
The second and subsequent (X, Y) coordinates are each step
The calculation is executed by repeating steps M2 to M11, and when the answer is YES in step M11, the calculation is completed, and as a result, the graph shown in FIG. 3 is displayed on the display unit 8.

次に第5図により、上記ステツプM7のY座標
計算を具体的に説明する。先ず、ステツプY1で
は、図示するY座標の値を求める式の計算が
ymemoレジスタ3N、yminレジスタ3K、
ymaxレジスタ3Lに夫々セツトされているデー
タにしたがつて実行され、その結果データがy座
標データとしてyレジスタ3Hにセツトされる。
Next, referring to FIG. 5, the Y coordinate calculation in step M7 will be explained in detail. First, in step Y1, the formula for calculating the value of the Y coordinate shown in the diagram is calculated.
ymemo register 3N, ymin register 3K,
The execution is performed according to the data set in the ymax register 3L, and the resulting data is set in the y register 3H as y coordinate data.

次にステツプY2ではそのセツトされたデータ
の四捨五入法による整数化が行われ、次いでステ
ツプY3では、その整数化したデータがY座標方
向の最小位置座標の「0」より小か否かが判断さ
れる。そしてYESのときにはyレジスタ3Hに
オーバーレンジのデータがセツトされ(ステツプ
Y5)、終る。即ち、今回求めた座標点が表示領域
外に出たことを判断して第6図で説明する処理を
次に行う。他方、NOのときには更にステツプY4
に進み、上記整数化したデータがY座標方向の最
大座標の「63」より大きい「64以上」か否かが判
断される。そしてYESのときにはステツプY6に
進んでyレジスタ3Hにアンダーレンジのデータ
をセツトし、今回求めた座標点が表示領域外のも
のとする。そのため上記ステツプY5のとき同様、
次の第6図のフローチヤートで対応する表示処理
を受ける。
Next, in step Y2, the set data is rounded off to an integer, and in step Y3, it is determined whether the integer data is smaller than "0", the minimum position coordinate in the Y coordinate direction. Ru. When YES, overrange data is set in y register 3H (step
Y5), ends. That is, it is determined that the coordinate point found this time has gone outside the display area, and the process described in FIG. 6 is then performed. On the other hand, if NO, further step Y4
Then, it is determined whether the data converted into an integer is "64 or more" which is larger than the maximum coordinate "63" in the Y coordinate direction. If YES, the process proceeds to step Y6, where underrange data is set in the y register 3H, and the coordinate point found this time is set outside the display area. Therefore, as in step Y5 above,
The corresponding display processing is performed in the flowchart shown in FIG. 6 below.

他方、ステツプY4でNOとなると今回のフロー
は終了し、第6図のフローチヤートに進んで前回
の座標点と線を結び、グラフを表示する処理を受
ける。
On the other hand, if the answer at step Y4 is NO, the current flow ends, and the process proceeds to the flowchart of FIG. 6, where a line is connected to the previous coordinate point and a graph is displayed.

次に第6図により、上記ステツプM8に示す
「Draw処理」の動作を具体的に説明する。先ず、
ステツプD1ではy0レジスタ3Fのデータがエラ
ーデータ「FF」か否かが判断され、而してYES
のときにはこのフローは終了し、この座標に対す
る表示動作は実行されない。
Next, referring to FIG. 6, the operation of the "Draw processing" shown in step M8 will be specifically explained. First of all,
In step D1, it is determined whether the data in the y0 register 3F is error data "FF", and the result is YES.
When this happens, this flow ends and no display operation is performed for this coordinate.

他方、NOとなるとステツプD2に進み、y0レジ
スタ3Fのデータは「レンジオーバー」か否かが
判断され、NOであれば更にステツプD3に進んで
yレジスタ3Hのデータは「レンジオーバー」か
否かが判断される。そしてYESであるとこの場
合は第7図Aに示すような場合であつて、今回の
座標点が表示領域外のもので、しかも前回の座標
点は表示領域内のものである。このような場合、
更にステツプD4に進んで前回座標点(x0、y0)
と今回座標点(x0、y)を結ぶ処理が行われる。
この際yはステツプY6でアンダーレンジデータ
がセツトされているため、第7図Aの斜線部に示
すごとく前回座標点から同一のX座標を有する画
素が表示境界まで点灯される。つまり、第7図A
で斜線で示したドツトが、従来では点灯されなか
つたのに点灯されることになり、したがつてグラ
フは表示領域の境界線までいつぱいに描かれ、非
常に見やすいものとなる。
On the other hand, if NO, the process proceeds to step D2, where it is determined whether the data in the y0 register 3F is "over range" or not; if NO, the process further proceeds to step D3, where it is determined whether the data in the y register 3H is "over the range" or not. will be judged. If YES, the case is as shown in FIG. 7A, and the current coordinate point is outside the display area, and the previous coordinate point is within the display area. In such a case,
Further, proceed to step D4 and obtain the previous coordinate point (x0, y0)
Processing is performed to connect the current coordinate point (x0, y).
At this time, since underrange data is set for y in step Y6, pixels having the same X coordinate from the previous coordinate point are lit up to the display boundary, as shown by the hatched area in FIG. 7A. In other words, Figure 7A
The dots indicated by diagonal lines are now lit, although they would not be lit in the past, and the graph is drawn to the fullest extent to the border of the display area, making it very easy to see.

一方、ステツプD3でNOとなつた場合には、前
回も今回もレンジオーバーではないからステツプ
D5に結んで両座標点間を結び普通に表示する。
On the other hand, if step D3 returns NO, the step is not overranged either last time or this time.
Connect to D5 and connect both coordinate points and display normally.

更にステツプD2にてYESとなるとステツプD6
に進んでyレジスタ3Hのデータが「レンジオー
バー」か否かが判断され、NOであると、これは
前回の座標点が表示領域外で且つ、今回の座標点
は表示領域内という、第7図Aとは逆の場合であ
るから、ステツプD7に進んでステツプD4と同様
に今回座標点(x、y)からこの点と同一X座標
を有する画素を点灯し、表示領域の境界線までグ
ラフを描く処理を行う。
Furthermore, if step D2 becomes YES, step D6
It is determined whether the data in the y register 3H is "over range" or not. If NO, this means that the previous coordinate point is outside the display area and the current coordinate point is within the display area. Since this is the opposite case from Figure A, proceed to step D7 and similarly to step D4, light up pixels having the same X coordinates as this point from the coordinate point (x, y) this time, and graph the display area to the boundary line. Performs the process of drawing.

他方、ステツプD6でYESであると、これは前
回も今回も表示領域外という、第7図Bに示す場
合であり、この場合は両座標点間を結ばず、グラ
フの表示は行わない。
On the other hand, if YES in step D6, this means that both the previous time and this time are outside the display area, as shown in FIG. 7B, and in this case, the two coordinate points are not connected and the graph is not displayed.

尚、上記実施例では、変数xの上記範囲データ
を基準にして変数yの座標を求めたが、勿論、こ
の関係は逆であつてもよい。
In the above embodiment, the coordinates of the variable y are determined based on the range data of the variable x, but of course, this relationship may be reversed.

[発明の効果] 以上説明したように、この発明は、関数中の変
数の各範囲データとその関係式とから演算によつ
て自動的にそのグラフ表示データを作成すると
き、前回の座標点と今回の座標点との位置関係に
応じて、両座標点が表示領域にある場合は2点間
を結び、1つの座標が表示領域外にある場合は、
表示領域内にある座標データと同一のX座標値を
有する画素を、該座標データが示す画素から表示
されない座標点が存在する表示領域境界まで表示
するようにしたグラフ表示装置であるから、グラ
フ上の点が表示範囲を外れた場合も常に表示領域
の境界までグラフが表示され、非常に見やすいグ
ラフ表示が行える利点がある。
[Effects of the Invention] As explained above, the present invention enables the automatic creation of graph display data by calculation from each range data of variables in a function and their relational expressions. Depending on the positional relationship with the current coordinate point, if both coordinate points are in the display area, connect the two points, and if one coordinate is outside the display area,
This is a graph display device that displays pixels that have the same X coordinate value as the coordinate data in the display area, from the pixel indicated by the coordinate data to the display area boundary where the coordinate point that is not displayed exists. Even if the point deviates from the display range, the graph is always displayed up to the boundary of the display area, which has the advantage of providing a very easy-to-read graph display.

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

第1図はこの発明の一実施例の回路構成図、第
2図は入力した一例の関数式と実行ポインタ4と
の関係を示す図、第3図は上記関数式を演算表示
したそのグラフを示す図、第4図ないし第6図は
動作を説明するフローチヤート、第7図は今回と
前回の各座標点間の対応位置関係によつて表示さ
れる場合と表示されない場合とを示す図である。 1A……テンキー、1B……フアンクシヨンキ
ー、1C……関数キー、1D……グラフキー、1
E……レンジキー、1F……EXE(実行)キー、
2……制御部、3A……ポインタレジスタ、3B
……カーソルポインタ、3C……ワークレジス
タ、3D……レンジフラグ、3E……x0レジス
タ、3F……y0レジスタ、3G……xレジスタ、
3H……yレジスタ、3I……xminレジスタ、
3J……xmaxレジスタ、3K……yminレジス
タ、3L……ymaxレジスタ、3M……xmemo
レジスタ、3N……ymemoレジスタ、3P,3
Q……退避エリア、4……実行ポインタ、5……
演算部、6A……グラフ表示バツフア、7……数
式バツフア、8……表示部。
Fig. 1 is a circuit configuration diagram of an embodiment of the present invention, Fig. 2 is a diagram showing the relationship between an example of an input function formula and the execution pointer 4, and Fig. 3 is a graph showing the calculation and display of the above function formula. Figures 4 to 6 are flowcharts explaining the operation, and Figure 7 is a diagram showing when the coordinate points are displayed and when they are not displayed depending on the corresponding positional relationship between the current and previous coordinate points. be. 1A...Numeric keypad, 1B...Function key, 1C...Function key, 1D...Graph key, 1
E...Range key, 1F...EXE (execution) key,
2...Control unit, 3A...Pointer register, 3B
...Cursor pointer, 3C...Work register, 3D...Range flag, 3E...x 0 register, 3F...y 0 register, 3G...x register,
3H...y register, 3I...xmin register,
3J...xmax register, 3K...ymin register, 3L...ymax register, 3M...xmemo
Register, 3N...ymemo register, 3P, 3
Q...Evacuation area, 4...Execution pointer, 5...
Arithmetic unit, 6A...graph display buffer, 7...mathematical formula buffer, 8...display unit.

Claims (1)

【特許請求の範囲】 1 マトリクス型表示手段と、関数式を入力する
入力手段と、上記関数式を記憶する記憶手段と、
X、Yにかかる変数の範囲を示す範囲データを入
力する範囲データ入力手段と、上記範囲データを
記憶する範囲データ記憶手段と、 上記Xにかかる変数の範囲データから上記マト
リクス型表示手段のX方向の各画素に対応する値
を算出し、このX値を上記関数式に順次代入する
ことで該関数式のグラフを構成する座標データを
順次算出する演算手段と、 この演算手段が算出した座標データを記憶する
第1の座標記憶手段と、 上記演算手段が算出した1つ前の座標データを
記憶する第2の座標記憶手段と、 上記第1の座標記憶手段と上記第2の座標記憶
手段の記憶した座標データが上記マトリクス型表
示手段の表示領域内にあるか否かを判断する判断
手段と、 この判断手段が双方の座標データが表示領域内
にあると判断した場合に、該座標データに対応す
る画素間を結ぶ表示を行うグラフ作成手段と、 上記判断手段が一方の座標データのみが表示領
域内にあると判断した場合に、表示領域内にある
と判断された座標データと同一のX座標値を有す
る画素を、該座標データに対応する画素から表示
されない座標点が存在する上記マトリクス型表示
手段の表示領域境界まで表示させるグラフ補正手
段とを具備したことを特徴とするグラフ表示装
置。
[Claims] 1. A matrix type display means, an input means for inputting a functional formula, and a storage means for storing the functional formula,
Range data input means for inputting range data indicating the range of variables related to X and Y, range data storage means for storing the range data, and range data of the variables related to X in the X direction of the matrix type display means a calculation means for calculating a value corresponding to each pixel of and sequentially substituting the X value into the above-mentioned function formula to sequentially calculate coordinate data forming a graph of the function formula; and coordinate data calculated by the calculation means. a first coordinate storage means for storing the previous coordinate data calculated by the calculation means; and a first coordinate storage means for storing the previous coordinate data calculated by the calculation means; determining means for determining whether or not the stored coordinate data is within the display area of the matrix type display means; and when the determining means determines that both coordinate data are within the display area, graph creation means for displaying connections between corresponding pixels; and when the determination means determines that only one coordinate data is within the display area, an X that is the same as the coordinate data determined to be within the display area; A graph display device comprising graph correction means for displaying pixels having coordinate values from the pixel corresponding to the coordinate data to the display area boundary of the matrix type display means where there is a coordinate point that is not displayed.
JP1121388A 1989-05-17 1989-05-17 Electronic calculator with graph display function Granted JPH0214352A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1121388A JPH0214352A (en) 1989-05-17 1989-05-17 Electronic calculator with graph display function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1121388A JPH0214352A (en) 1989-05-17 1989-05-17 Electronic calculator with graph display function

Publications (2)

Publication Number Publication Date
JPH0214352A JPH0214352A (en) 1990-01-18
JPH0512743B2 true JPH0512743B2 (en) 1993-02-18

Family

ID=14809964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1121388A Granted JPH0214352A (en) 1989-05-17 1989-05-17 Electronic calculator with graph display function

Country Status (1)

Country Link
JP (1) JPH0214352A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4811177B2 (en) * 2006-07-31 2011-11-09 カシオ計算機株式会社 Graph display device and graph display processing program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52116050A (en) * 1976-03-25 1977-09-29 Sharp Corp Small size computer with graph display unit
JPS5469031A (en) * 1977-11-12 1979-06-02 Sharp Corp Electronic desk computer
JPS5532112A (en) * 1978-08-28 1980-03-06 Seiko Instr & Electronics Ltd Vector clipping system in graphic information processing device
JPS58225473A (en) * 1982-06-24 1983-12-27 Yokogawa Hokushin Electric Corp Clipping circuit of graphic display

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52116050A (en) * 1976-03-25 1977-09-29 Sharp Corp Small size computer with graph display unit
JPS5469031A (en) * 1977-11-12 1979-06-02 Sharp Corp Electronic desk computer
JPS5532112A (en) * 1978-08-28 1980-03-06 Seiko Instr & Electronics Ltd Vector clipping system in graphic information processing device
JPS58225473A (en) * 1982-06-24 1983-12-27 Yokogawa Hokushin Electric Corp Clipping circuit of graphic display

Also Published As

Publication number Publication date
JPH0214352A (en) 1990-01-18

Similar Documents

Publication Publication Date Title
JPH0792789B2 (en) Graph display device
JPH0719240B2 (en) Small electronic calculator with graph display function
JP3358809B2 (en) Graph display control device and graph display control method
JPH0512743B2 (en)
JPH04235658A (en) Compact electronic computer with graph display function
JP2560344Y2 (en) Small electronic calculator
JP2715405B2 (en) Graph display control device and graph display control method
JPH04251371A (en) Small-sized electronic computer with graph displaying function
JP3577554B2 (en) Function calculator, graph display control device, and graph display control method
JP3162095B2 (en) Image display control device
JPH06168104A (en) Electronic computer
JPS61275960A (en) Electronic calculator with graphic display function
JPH04223545A (en) Compact electronic computer equipped with graphic display function
JP2672940B2 (en) Document processing device
JPH02111995A (en) Input data processing and displaying method by plural cursors
JP3082940B2 (en) Character processing apparatus and method
JP2526181Y2 (en) Small electronic calculator
JPH0124660Y2 (en)
JP3091116B2 (en) XY coordinate display method
JPH10260998A (en) Cad device
JPH0724048B2 (en) Small electronic calculator with graph display function
JP2003150563A (en) Calculator and calculation processing program
JPH0638250B2 (en) Small electronic calculator with graph display function
JPS63103363A (en) Desk-top electronic calculator
JPH058657U (en) Small computer

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term