JPS61275959A - Electronic calculator with graphic display function - Google Patents

Electronic calculator with graphic display function

Info

Publication number
JPS61275959A
JPS61275959A JP60117741A JP11774185A JPS61275959A JP S61275959 A JPS61275959 A JP S61275959A JP 60117741 A JP60117741 A JP 60117741A JP 11774185 A JP11774185 A JP 11774185A JP S61275959 A JPS61275959 A JP S61275959A
Authority
JP
Japan
Prior art keywords
register
data
display
coordinate
graph
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.)
Granted
Application number
JP60117741A
Other languages
Japanese (ja)
Other versions
JP2715405B2 (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 JP60117741A priority Critical patent/JP2715405B2/en
Publication of JPS61275959A publication Critical patent/JPS61275959A/en
Application granted granted Critical
Publication of JP2715405B2 publication Critical patent/JP2715405B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To make a displayed graph easy to see by providing the function which calculates positions of axes of coordinates and measures in accordance with a preliminarily set range of a variable and displays axes of coordinates and measures on a graph display part. CONSTITUTION:A memory part 3 consists of a RAM and has registers 3A-3P. Each data of a functional formula inputted from a key input part 1 is written in an address of a numerical formula buffer 7 indicated by an execution pointer 4 and is read into an calculation part 5. The part 5 uses registers 3A-3P of the memory part 3 to execute the calculation under the control of a control part 2. Data for graph display and display of axes of coordinates and measures are read out from the memory part 3 and are sent to a graph display buffer 6A of a display buffer part 6 when the functional calculation is executed, and data for display of normal numerical values are sent to a text display buffer 6B in case of display of normal numerical values, and a graph or numerical values or the like are displayed.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は関数式をグラフ表示する機能を備えた小型電
子式計算機に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a small electronic calculator having a function of displaying a functional formula in a graph.

〔従来技術] 従来、関数式に対応するグラフを表示できる小型電子式
計算機が考えられている。この種の計算機では、ある関
数式y=f(x)をグラフ表示する場合は独立変数Xと
関数式y=f(’x)を順次キー人力し、従属変数yの
値をその都度演算するものである。
[Prior Art] Conventionally, small electronic calculators capable of displaying graphs corresponding to functional formulas have been considered. In this type of calculator, when displaying a certain functional formula y=f(x) as a graph, the independent variable It is something.

そして、この計算機は表示部には関数式のグラフだけを
表示している。
This calculator displays only the graph of the functional formula on the display.

[従来技術の問題点] 然るに、上述した従来の計算機の場合、座標軸は表示さ
れなかったので、表示されたグラフの根やその個数など
が分からず、大変不便であった。
[Problems with the Prior Art] However, in the case of the conventional calculator described above, the coordinate axes were not displayed, so it was difficult to know the roots of the displayed graph and the number of roots, which was very inconvenient.

[発明の目的] 座標軸とその目盛とが表示でき、グラフが見易くなるよ
うにしたグラフ表示機能を備えた小型電子式計算機を提
供することを目的とする。
[Objective of the Invention] It is an object of the present invention to provide a small electronic calculator having a graph display function that can display coordinate axes and their scales and make graphs easier to see.

[発明の要点] 予め設定された変数のレンジに応じて座標軸(X軸、Y
軸)の位置と目盛位置とを計算し、座標軸と目盛とをグ
ラフ表示部に表示するようにしたことである。
[Key Points of the Invention] Coordinate axes (X-axis, Y-axis,
The coordinate axes and scale positions are calculated and the coordinate axes and scales are displayed on the graph display section.

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

第1図はグラフ表示機能を備えた小型電子式計算機の回
路図である0図中、1のキー人力部には通常の計算機に
設けられているテンキーIA、ファンクションキーIB
、関数の計算式を入力するための関数キーIC1関数式
のグラフ表示モードを指定するグラフキーID、関数式
に含まれる変数X、Yの各範囲データの入力モードを指
定するレンジキーIE、関数計算等の実行指示を行うた
めのEXE C実行)キーIFが少なくとも設けられて
おり、各キーからの信号は制御部2に送られて処理され
る。
Figure 1 is a circuit diagram of a small electronic calculator equipped with a graph display function. In Figure 0, keys numbered 1 include the numeric keypad IA and function keys IB, which are provided on a normal calculator.
, Function key IC1 for inputting the function formula, Graph key ID to specify the graph display mode of the function formula, Range key IE to specify the input mode for each range data of variables X and Y included in the function formula, Function At least an EXE C execution) key IF for instructing execution of calculations, etc. is provided, and signals from each key are sent to the control unit 2 and processed.

制御部2はこの計算機のすべての動作を制御するプログ
ラムを記憶するROM (リードオンリメモリ)から成
り、メモリ部3、実行ポインタ4、演算部5、表示バッ
ファ部6に各種制御信号を与える。
The control section 2 consists of a ROM (read only memory) that stores programs for controlling all operations of this computer, and provides various control signals to the memory section 3, execution pointer 4, calculation section 5, and display buffer section 6.

メモリ部3はRAM(ランダムアクセスメモリ)から成
り、Aレジスタ3A、Bレジスタ3B、関数演算を行う
とき実行ポインタ4に制御部2によってセットされる実
行ポインタが一時退避されるポインタレジスタ3C1関
数演算実行時のグラフ表示のための前回の座標(xo 
、 Vo )が夫々セットされるXo  レジスタ3D
、  yo レジスタ3E、今回の座標(x、y)が夫
々セットされるXレジスタ3F、Vレジスタ3G、変数
Xの範囲の最小値、最大値が夫々セットされるX5ln
 レジスタ3H,X5ax レジスタ3I、変数yの範
囲の最小値、最大値が夫々セットされるV sin レ
ジスタ3J、ymax レジスタ3K、目盛処理時に用
いられるxScL レジスタ3L、ysct レグ2フ
3ドツトの大きさが書込まれるX sea。レジスタ3
N.  (/+ie*oレジスタ3Pを夫々有している
The memory unit 3 consists of a RAM (random access memory), which includes an A register 3A, a B register 3B, and a pointer register 3C1 in which the execution pointer set by the control unit 2 in the execution pointer 4 when performing a function operation is temporarily saved. Previous coordinates (xo
, Vo ) are set respectively in the Xo register 3D.
, yo register 3E, X register 3F where the current coordinates (x, y) are set, V register 3G, X5ln where the minimum and maximum values of the range of variable X are set, respectively.
Register 3H, X5ax Register 3I, where the minimum and maximum values of the range of variable y are set, respectively. X sea written. register 3
N. (Each has a /+ie*o register 3P.

キー人力部1から入力される関数式の各データは実行ポ
インタ4によって指示される数式バッファ7の各アドレ
スに書込まれ1次いで演算部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.

演算部5は上記数式バッファ7からの関数式の演算を制
御部2の制御下にメモリ部3の上記の各レジスタ3A〜
3Pを使って実行する。そして演算部5は関数演算実行
時にそのグラフ表示と座標軸及びその目盛表示のための
データをメモリ部3から読出して表示バッファ部6内の
グラフ表示八ツファ6Aに送り、また通常の数値表示等
を行うときにはそのためのデータをテキスト表示バッフ
ァ6Bに送り、それらの表示データは表示部7に送られ
て、グラフまたは数値等の表示が行われる。
The calculation unit 5 calculates the function formula from the formula buffer 7 through each of the registers 3A to 3A of the memory unit 3 under the control of the control unit 2.
Execute using 3P. When executing a function calculation, the calculation unit 5 reads data for displaying the graph, coordinate axes, and scale from the memory unit 3 and sends it to the graph display eight buffer 6A in the display buffer unit 6, and also displays normal numerical values, etc. When performing this, the data for that purpose is sent to the text display buffer 6B, and the display data is sent to the display section 7, where graphs, numerical values, etc. are displayed.

表示部8は例えば液晶表示装置から成り、X方向に96
ドツト、Y方向に64ドツトのマトリクス型の各ドツト
表示体(座標点)を有してデータの表示を行う。
The display unit 8 consists of a liquid crystal display device, for example, and has 96 pixels in the X direction.
Data is displayed using a matrix type dot display (coordinate points) of 64 dots in the Y direction.

次に上記実施例の動作を関数式 %式%(1) の演算を行ってその結果をグラフ表示する場合を例とし
、また第2図ないし第12図を参照して説明する。
Next, the operation of the above embodiment will be explained by taking as an example the case where the function formula % formula % (1) is calculated and the result is displayed in a graph, and with reference to FIGS. 2 to 12.

この場合、キー人力部1のレンジキーIE、テンキーI
Aを予め操作して第5図に見られる様にX +IIn 
レジスタ3H.X5ax レジスタ3Iに変数Xに対す
る範囲の最小値と最大値の各データ例えば、−180と
180をプリセットし、またysin レジスタ3J,
Vmax レジスタ3Kにも同様に、変数yに対する変
化範囲の最小値と最大値の各データ例えば、−2.2さ
らにX SCL レジスタ:13I−、ysct レジ
スタ3Mにそれぞれスケールデータ、例えば90.0.
5をプリセットしておく。
In this case, the range key IE and numeric keypad I of the key manual section 1 are
By manipulating A in advance, as shown in Figure 5, X +IIn
Register 3H. Preset the minimum and maximum values of the range for variable X in the X5ax register 3I, for example, -180 and 180, and in the ysin register 3J,
Similarly, in the Vmax register 3K, each data of the minimum value and maximum value of the change range for the variable y, for example, -2.2, and in the X SCL register: 13I- and the ysct register 3M, scale data, for example, 90.0.
5 is preset.

次いで上記(1)式の関数式をグラフキーID、関数キ
ー1c、ファンクションキーlB、テンキーLA、EX
EキーIFを操作して入力すると、数式バッファ7のア
ドレスO〜4には、第3図に示すように、実行ポインタ
4によりアドレスされて(1)式の関数式の各データが
書込まれる。なお、実行ポインタ「4」のデータrEN
D」はEXEキーIFの操作時に書込まれるENDコー
ドデータである。そして第7図ないし第12図のフロー
チャートによる動作にしたがって、演算部5によって(
1)式の関数演算とその座標軸およびその目盛を表示す
るための演算が行われ、その結果のグラフが第2図に見
られるように表示部8に表示される 即ち、第7図のメインフローにおいて、グラフ命令が入
力されると先ず、グラフ表示バッファ6Aのデータの有
無の判断動作が実行され、而して、今データ無しである
からステップG2に進み、’leeロレジスタ3Pがク
リアされ、次いでステップG3によってY座標計算が実
行される。次にステップG4によりyレジスタ3G内の
データがrFFJか否かが判断される。而して、今はN
OであるからステップG5に進み、座標(0、y)、(
95、y)の2点間に線を引く、なお。
Next, enter the function formula (1) above using the graph key ID, function key 1c, function key 1B, numeric keypad LA, and EX.
When input by operating the E key IF, each data of the function formula of formula (1) is written into addresses O to 4 of the formula buffer 7, addressed by the execution pointer 4, as shown in FIG. . In addition, the data rEN of execution pointer "4"
D" is END code data written when the EXE key IF is operated. Then, according to the operations according to the flowcharts of FIGS. 7 to 12, the calculation unit 5 (
1) Functional calculation of the equation and calculation for displaying its coordinate axis and its scale are performed, and the resulting graph is displayed on the display section 8 as shown in Fig. 2. In other words, the main flow shown in Fig. 7 , when a graph command is input, first, an operation to determine whether there is data in the graph display buffer 6A is executed, and since there is currently no data, the process advances to step G2, where the 'lee register 3P is cleared, and then Y coordinate calculation is executed in step G3. Next, in step G4, it is determined whether the data in the y register 3G is rFFJ. So now N
Since it is O, proceed to step G5 and set the coordinates (0, y), (
95, draw a line between the two points in y).

第5図の例ではy座標は第8図の演算から「32」とな
る。次にステップG6によってX1eロレジスタ3Nを
クリアし、次いで、ステップG7によるX座標計算を実
行し、次いでステップG8に進み・Xレジスタ3F内の
データがrFFJか否かを判断し、NOであるからステ
ップG9に進み、座標(X、0)、(X、63)+7)
2点間に線を引く。なお、第5図の例では第9図の演算
からX座標は「48」となる。
In the example shown in FIG. 5, the y coordinate becomes "32" from the calculation shown in FIG. Next, the X1e register 3N is cleared in step G6, the X coordinate calculation is executed in step G7, and the process then proceeds to step G8. It is determined whether the data in the X register 3F is rFFJ, and if NO, step Proceed to G9, coordinates (X, 0), (X, 63) + 7)
Draw a line between the two points. In the example shown in FIG. 5, the X coordinate is "48" from the calculation shown in FIG.

次に、ステップG10に進み第10図に示す目盛処理を
行って目盛を計算し、ステップGllに進み第11図に
示すグラフ処理を行って、ステップG12に進みグラフ
画面表示を行う。
Next, the process proceeds to step G10, where the scale processing shown in FIG. 10 is performed to calculate the scale, the process proceeds to step Gll, where the graph processing shown in FIG. 11 is performed, and the process proceeds to step G12, where a graph screen is displayed.

なお、ステップG4において、yレジスタ3G内のデー
タがrFFJの場合はエラーであるので、ステップG6
に進む、またステップG8において、Xレジスタ3F内
のデータがrFF」の時には、エラーであるので、ステ
ップG10に進む。
Note that in step G4, if the data in the y register 3G is rFFJ, it is an error, so step G6
If the data in the X register 3F is "rFF" in step G8, it is an error, and the process proceeds to step G10.

次に、上記ステップG3のY座標計算につき、第8図の
フローチャートを参照して説明する。
Next, the Y coordinate calculation in step G3 will be explained with reference to the flowchart of FIG.

先ず、ステップY1では、図示するY座標の値を求める
式の計算がymemoレジスタ3P、  Ysinレジ
スタ3J、7sax レジスタ3Kに夫々セットされて
いるデータにしたがって実行され、その結果データがy
レジスタ3Hにセットされる。
First, in step Y1, calculation of the formula for determining the value of the Y coordinate shown in the figure is executed according to the data set in the ymemo register 3P, the Ysin register 3J, and the 7sax register 3K, and the resulting data is y.
Set in register 3H.

次にステップY2ではそのセットされたデータの四捨五
入法による整数化が行われ、次いでステップY3では、
その整数化したデータがY座標方向の最小位置座標のr
OJより小か否かが判断される。そしてYESのときに
は一ステップY4に進みyレジスタ3Gに16進データ
「80H」がセットされ(ステ・ツブY4)、終る。な
お、この16進データr80++Jの意味は、yレジス
タ3G等のデータ構成が第4図に見られるように、8ビ
ツト構成であり、而してその最上位ビットは0VERR
ANGE/UNDERRANGEフラグ用であり、今の
場合そのフラグビットにUNDERRANGEを示すフ
ラグ“1″が書込まれたことになる。また、y・レジス
タ3Gの下位7ビツトには最小座標データrQJが書込
まれる。
Next, in step Y2, the set data is rounded off to an integer, and then in step Y3,
The integer data is r of the minimum position coordinate in the Y coordinate direction.
It is determined whether or not it is smaller than OJ. If YES, the process advances to step Y4, where hexadecimal data "80H" is set in the y register 3G (step Y4), and the process ends. The meaning of this hexadecimal data r80++J is that the data structure of the y register 3G, etc. is an 8-bit structure, as shown in FIG. 4, and its most significant bit is 0VERR.
This is for the ANGE/UNDERRANGE flag, and in this case, the flag "1" indicating UNDERRANGE is written in that flag bit. Furthermore, minimum coordinate data rQJ is written into the lower 7 bits of the y register 3G.

他方、ステップY3においてNOのときには更にステッ
プY5に進み、上記整数化したデータがY座標方向の最
大位置座標の「63」より大か否かが判断され、YES
のときにはステップY6に進んでyレジスタ3Gに16
進データrBFnJを書込み、0VERRANGEを示
すフラグ” 1 ”と最大座標データ「63」を書込み
終了する。更に、ステップY5でNOであれば今回のY
座標計算の結界はレンジオーバーではないから終了する
On the other hand, if NO in step Y3, the process further advances to step Y5, where it is determined whether the above-mentioned integer data is larger than the maximum position coordinate "63" in the Y coordinate direction, and YES.
When , proceed to step Y6 and set 16 to y register 3G.
The decimal data rBFnJ is written, and the flag "1" indicating 0VERRANGE and the maximum coordinate data "63" are written and completed. Furthermore, if NO in step Y5, this Y
The coordinate calculation barrier does not exceed the range, so it ends.

次に、第9図のフローチャートにより上記ステップG7
のX座標計算を説明する。
Next, according to the flowchart of FIG. 9, the step G7 is
The calculation of the X coordinate will be explained.

まず、ステップXiではx se鴎oレジスタ3N内の
データ、X5Ln レジスタ3H,X++ax レジス
タ3Iにセットされているデータを使って図示する数式
の演算が実行され、その結果がXレジスタ3Fにセット
される。
First, in step Xi, the calculation of the formula shown in the figure is executed using the data in the x seo register 3N, the data set in the X5Ln register 3H, and the X++ax register 3I, and the result is set in the X register 3F. .

次にステップx2ではXレジスタ3F内の上記データの
整数化が行われ次にステップx3に進み、そのデータが
「0」より小か否かの判断が行われる。而して、YES
の時にはステップx4に進み上記ステップY4と同一の
処理を行ってXレジスタ3FにUNDERRANGEの
フラグを立て、また、最小座標データrOJを書込む。
Next, in step x2, the data in the X register 3F is converted into an integer, and the process then proceeds to step x3, where it is determined whether the data is smaller than "0". So, YES
When this happens, the process advances to step x4, where the same processing as step Y4 is performed, setting the UNDERRANGE flag in the X register 3F, and writing the minimum coordinate data rOJ.

他方、ステップx3において、NOとなると、ステップ
x5に進み、Xレジスタ3F内のデータが「95」より
大か否かを判断し、YESの時にはステップx6に進み
Xレジスタ3Fに0VERRANG’Eのフラグと最大
座標データ「95」を示す16進データDFHを書込ん
で終了する。
On the other hand, if NO in step x3, the process proceeds to step x5, and it is determined whether the data in the X register 3F is greater than "95." If YES, the process proceeds to step x6, and the flag 0VERRANG'E is set in the X register 3F. and hexadecimal data DFH indicating the maximum coordinate data "95" are written and the process ends.

さらに、ステップx5において、Xレジスタ3F内のデ
ータが「95」より小の時は、レンジオーバーではない
から今回のX座標計算が終了する。
Further, in step x5, if the data in the X register 3F is smaller than "95", the current X coordinate calculation ends because the range is not over.

次に、第10図(1)、(2)のフローチャートにより
上記ステップGIOの目盛処理の動作を説明する。
Next, the operation of the scale processing in step GIO will be explained using the flowcharts shown in FIGS. 10(1) and 10(2).

先ず、ステップS1ではX5CL レジスタ3L内のデ
ータが「0」か否かを判断するが、いまの例では第5図
に示すように「90」であるからステップS2に進み、
現在のX座標が「63」以下か否かを判断する。而して
第5図の例ではYESとなり、X座標がOV E RR
A N G E ’t’ t* @ ’/’からステッ
プS4に進みX座標がその中心座標である「32」以下
か否かを判断し「32」である第5図の例ではX座標軸
は表示部8の中心部より下側に位置しているからステッ
プS5に進み、X座標を+1してそれをyレジスタ3G
にセットする。その結果、X軸に対しては、第6図(B
)又は(C)に示す様に、目盛はX軸の上に対して。
First, in step S1, it is determined whether the data in the X5CL register 3L is "0" or not, but in the present example, it is "90" as shown in FIG. 5, so the process proceeds to step S2.
It is determined whether the current X coordinate is less than or equal to "63". Therefore, in the example of Fig. 5, the answer is YES, and the X coordinate is OV E RR.
A N G E 't' t* @ '/' Proceeds to step S4 and determines whether the X coordinate is less than or equal to its center coordinate "32". In the example of FIG. 5 where it is "32", the X coordinate axis is Since it is located below the center of the display section 8, proceed to step S5, add 1 to the X coordinate, and store it in the y register 3G.
Set to . As a result, for the X axis, Figure 6 (B
) or (C), the scale is on the X-axis.

即ち、画面の中心部の空間の広い方に向けて付されるこ
とになる。
That is, it is attached toward the wider space at the center of the screen.

次にステップS7ではXレジスタ3F内の座標データを
Aレジスタ3Aに退避し、次いでステップS8の計算(
−180÷90)を行って「−2」をBレジスタ3Bに
セットする。またステップS9ではそのデータの丸めを
行い、次にステップ310では、X SCL レジスタ
3L内のデータ「90」とBレジスタ3B内のデータ「
−2」とを乗算し、その結果で得たr−180」をX 
se*oレジスタ3Nにセットする。そして、ステップ
Sllにより、第9図に示すX座標計算を行う。その結
果、上記ステップx1により、X座標rOJが得られる
。そして、ステップS12では、上記X座標がrDFH
Jか否かを判断し、今Noであれば演算エラーではない
からステップS14に進み、そのX座標がr80++J
か否かを判断し、今NoであるからステップS15に進
み、X座標の点をプロットする。そして、ステップS1
6では、Bレジスタ3Bのデータを+1して「−1」と
し、ステップSIOにもどる。
Next, in step S7, the coordinate data in the X register 3F is saved to the A register 3A, and then the calculation in step S8 (
-180÷90) and set "-2" in the B register 3B. In step S9, the data is rounded, and in step 310, the data "90" in the X SCL register 3L and the data "90" in the B register 3B are rounded.
-2'' and the resulting r-180'' is
Set in se*o register 3N. Then, in step Sll, the X coordinate calculation shown in FIG. 9 is performed. As a result, the X coordinate rOJ is obtained through step x1. Then, in step S12, the above-mentioned X coordinate is rDFH
J or not is determined, and if the answer is No, it is not a calculation error, so the process proceeds to step S14, and the X coordinate is r80++J.
It is determined whether or not, and since the answer is No, the process proceeds to step S15, and the X coordinate point is plotted. And step S1
At step 6, the data in the B register 3B is incremented by 1 to become "-1", and the process returns to step SIO.

次いで、ステップS10ではx aemoレジスタ3N
のデータがr−90Jとなる。そして、ステップ511
では、X座標がステップXlの計算により、X座標がr
23.75Jとなり、それを整数化して、X座標が「2
4」となる。そして、スーテップ512,514,51
5を実行し1次いでステップ516では、Bレジスタ、
3Bのデータが「O」となる。次いでステップ510に
もどり、Xae自oレジスタ3NのデータがrQJ と
なり、次いで、ステップS11の計算により、X座標が
「48」となり、次いでステップ512、si4、S1
5.S16が実行され、Bレジスタ3Bのデータが「1
」となる。そしてステップSIOにもどりX memo
レジスタ3Nのデータが「+90」となる。そして、ス
テップS11のX座標計算では、X座標が「71」とな
る。次にステップS12、S14.S15、S16が実
行され、Bレジスタ3Bのデータが「2」となる。そし
てステップS10にもどり、X、。0レジスタ3Nのデ
ータがr180J となる。そして、ステップS11の
X座標計算では、X座標は「95」となり、ステップS
 1.2、S14.S15、S16が実行され、Bレジ
スタ3Bにはデータ「3」がセットされる。次にステッ
プSIOの実行により、Xsemoレジスタ3Nのデー
タはr270」となり、次いでステップSllのX座標
計算では、X座標が「119」で0vERRANGEと
なるからステップx5においてYESとなり、Xレジス
タ3FにデータrDFuJがセットされ、その結果、ス
テップ312では、YESとなり、ステップS13に進
んでAレジスタ3Aに退避していたデータがXレジスタ
3Fにもどされ、ステップS17に進んでY軸に対する
目盛処理に入る。即ちX軸に対しては、X SCL レ
ジスタ3L内のデータ「90」によって4箇所に目盛が
つけられる。
Next, in step S10, the x aemo register 3N
The data becomes r-90J. And step 511
Then, the X coordinate becomes r by the calculation in step Xl.
23.75J, converting it into an integer, the X coordinate becomes 2
4". And soo step 512, 514, 51
5 is executed, and then in step 516, the B register,
The data of 3B becomes "O". Next, the process returns to step 510, and the data in the Xae auto register 3N becomes rQJ.Then, by the calculation in step S11, the X coordinate becomes "48", and then in step 512, si4, S1
5. S16 is executed and the data in the B register 3B becomes “1”.
”. Then return to step SIO
The data in register 3N becomes "+90". Then, in the X coordinate calculation in step S11, the X coordinate becomes "71". Next, steps S12, S14. S15 and S16 are executed, and the data in the B register 3B becomes "2". Then, return to step S10, X. The data of 0 register 3N becomes r180J. Then, in the X coordinate calculation in step S11, the X coordinate becomes "95", and in step S11, the
1.2, S14. S15 and S16 are executed, and data "3" is set in the B register 3B. Next, by executing step SIO, the data in the Xsemo register 3N becomes "r270", and then in the X coordinate calculation in step Sll, the is set, and as a result, in step 312, the result is YES, and the process proceeds to step S13, where the data saved in the A register 3A is returned to the X register 3F, and the process proceeds to step S17, where the scale processing for the Y axis begins. That is, with respect to the X-axis, graduations are provided at four locations using the data "90" in the X SCL register 3L.

次にステップS17ではいまの例ではVsc[レジスタ
3MのデータはrQ、5 Jで0ではないから、ステッ
プ518に進みXレジスタ3FのX座標が「95」以下
か否か判断され、而して第5図の例ではYESとなり、
ステップ520に進んで今度はY軸が表示部8の中心部
の右にあるか左にあるかを見る。そして、第5図の例で
は左側にあり、Y軸のX座標データは「48」以下であ
るからステ、プS21に進み、Y軸のX座標データを+
1する。
Next, in step S17, in the present example, the data in Vsc[register 3M is rQ, 5J, which is not 0, so proceeding to step 518, it is determined whether the X coordinate of X register 3F is "95" or less, and In the example in Figure 5, the answer is YES,
Proceeding to step 520, it is checked whether the Y axis is to the right or left of the center of the display section 8. In the example of FIG. 5, it is on the left side, and the X coordinate data of the Y axis is less than "48", so proceed to step S21 and add the X coordinate data of the Y axis to +
Do 1.

その結果、第6図(A)に示す様に、Y軸に対しては、
その右側に即ち画面の中心部の広い方の空間に向けて目
盛が付される。そして以後は上述したステップS8から
516同様な処理ステップであるステップS23からス
テップ530を繰り返し実行しY座標に対する目盛を得
る演算を行う。
As a result, as shown in Figure 6 (A), for the Y axis,
A scale is provided on the right side, that is, towards the wider space at the center of the screen. Thereafter, steps S23 to 530, which are processing steps similar to steps S8 to 516 described above, are repeatedly executed to calculate a scale for the Y coordinate.

一方、上記ステフ・プS2にてNOとなった場合は、Y
座標はその最大座標をオーバーしているからステップS
3に進み、yレジスタ3G内のデータとデータr3F+
+J  (63)との論理積をとり、yレジスタ3Gの
上位2ビツトをクリアし、ステップS7に進む。
On the other hand, if NO is obtained in step S2 above, Y
Since the coordinates exceed the maximum coordinates, step S
Proceed to step 3, data in y register 3G and data r3F+
+J (63) is performed, the upper two bits of the y register 3G are cleared, and the process proceeds to step S7.

そして以下ステップS7からS16を実行し、X軸に対
する目盛処理を行う、その結果、第6図(D)に示す様
にX軸に対しては、表示部8の表示画面の外縁部(辺)
にてX軸の下に、即ち、画面の中心部に向けて目盛が付
される。
Then, steps S7 to S16 are executed to perform scale processing for the X-axis.As a result, as shown in FIG. 6(D), for the X-axis, the outer edge (side) of the display screen of the display unit 8
A scale is placed below the X-axis, that is, toward the center of the screen.

一方、上記ステップS4にてNOとなると、ステップS
6に進んでyレジスタ3Gのデータを−1し、ステップ
S7に進む、而してこの場合はX座標軸が表示部8の中
心部より上側に位置している例であり、X座標軸に対し
てはその目盛が第6図(A)に示すように、下側に向け
て、つまり画面空間の広い方向に向けて付される。
On the other hand, if NO in step S4, step S
6, the data in the y register 3G is decremented by 1, and the process proceeds to step S7.In this case, the X coordinate axis is located above the center of the display section 8, and the As shown in FIG. 6(A), the scale is directed downward, that is, toward the widest direction of the screen space.

更に、上記ステップS18でNOとなるとX座標がその
最大座標を越えているからステップS19に進み、Xレ
ジスタ3Fのデータとデータ[5FHJと論理積を取り
、上位1ビツトをクリアする。そして以下、ステップS
23〜S30を実行し、Y軸に対する目盛処理を行う、
その結果、Y座標に対する目盛は、第6図(C)に示す
ように、表示部8の表示画面の外縁部の辺に対して、画
面の中心部に向けて付される。
Furthermore, if NO is determined in step S18, the X coordinate exceeds its maximum coordinate, so the process proceeds to step S19, where the data in the X register 3F is logically ANDed with the data [5FHJ, and the upper 1 bit is cleared. And below, step S
Execute steps 23 to S30 and perform scale processing for the Y axis.
As a result, the scale for the Y coordinate is placed on the outer edge of the display screen of the display unit 8 toward the center of the screen, as shown in FIG. 6(C).

更に、上記ステップ520でNoとなるとY軸が表示部
8の中心部の右方にあった場合であり、ステップS22
により、Y軸のX座標データを−1して、それをXレジ
スタ3Fにセットし、以下ステップS23からS30の
Y軸に対し目盛を付す演算を行う、その結果、第6図(
B)に示す様にY軸に対しては、その左側即ち表示部8
の画面の中心部の広い空間に向けて目盛が付される。
Furthermore, if the result in step 520 is No, it means that the Y-axis is on the right side of the center of the display section 8, and step S22
As a result, the X coordinate data of the Y axis is decremented by 1, it is set in the X register 3F, and the calculation for attaching a scale to the Y axis in steps S23 to S30 is performed.As a result, as shown in FIG.
As shown in B), with respect to the Y axis, the left side, that is, the display section 8
A scale is placed toward a wide space in the center of the screen.

尚、第6図(D)の表示例は、計算された座標軸が両方
とも表示画面領域を外れた例であり、特にX軸の座標は
その最大座標を越え、Y軸の座標はその最小座標を越え
た例を示している。
The display example in Figure 6 (D) is an example in which both of the calculated coordinate axes are outside the display screen area, especially the X-axis coordinate exceeds its maximum coordinate, and the Y-axis coordinate exceeds its minimum coordinate. This shows an example that goes beyond.

次に第11図のフローチャートより上記ステップGll
のグラフ処理を説明する6 即ち、ステップM1において、実行ポインタ4の先頭の
ポインタ(アドレス「0」)がポインタレジスタ3Cに
転送退避されると共に、yoレジスタ3Eにデータ「F
FJ  (16進コード)が書込まれ、更にXレジスタ
3Fがクリアされる。
Next, according to the flowchart of FIG. 11, the above step Gll
6. That is, in step M1, the first pointer (address "0") of the execution pointer 4 is transferred and saved to the pointer register 3C, and the data "F" is stored in the yo register 3E.
FJ (hexadecimal code) is written and X register 3F is further cleared.

次にステップM2では、X*in レジスタ3H。Next, in step M2, the X*in register 3H.

X ff1ax レジスタ3工にプリセットされている
前記データと、いまは「0」のXレジスタのデータとを
使って図示する数式の演算が実行され、変数Xの1ドツ
トの大きさを示すデータ(いまはX sinレジスタ3
Hにプリセットされているデータ「−180」となる)
が得られてそれがX memoレジスタ3Nにセットさ
れる。即ち、これによってX座標方向の1番目の表示ド
ツトの座標が求まる。
The calculation of the formula shown is executed using the data preset in the X ff1ax register 3 and the data in the X register, which is currently "0", and the data (currently is X sin register 3
The data preset to H is “-180”)
is obtained and set in the X memo register 3N. That is, the coordinates of the first display dot in the X coordinate direction are determined by this.

次にステップM3ではポインタレジスタ3Cに退避して
おいたアドレスrQJが実行ポインタ4に戻され、また
次のステップM4によりこのアドレス「0」から「4」
までの数式バッファ7内の(1)式の関数演算が実行さ
れ、1番目の答がymemoレジスタ3Pにセットされ
る。次いでステップM5ではその答が演算エラーか否か
が判断され、而してYESのときにはステップM6に進
んでyレジスタ3Gにエラーデータを示す16進コード
rFFJが書込まれたのち、ステップM9に進む。
Next, in step M3, the address rQJ saved in the pointer register 3C is returned to the execution pointer 4, and in the next step M4, this address is changed from "0" to "4".
The functional operation of equation (1) in the equation buffer 7 up to this point is executed, and the first answer is set in the ymemo register 3P. 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 rFFJ indicating error data is written in the y register 3G, and then the process proceeds to step M9. .

一方、ステップM5においてNoとなったときには、ス
テップM7、M8が実行され、第8図と第12図に示す
フローにより、Y座標計算(いまの場合、Y座標方向の
1番目の表示ドツトの座標を得る計算)とその(x、y
)の1番目の座標の表示ドツトのデータをグラフ表示バ
ッファ6Aに送り、表示部8にて点灯表示させる処理が
実行される。そして上記ステップM9に進む。
On the other hand, when the result in step M5 is No, steps M7 and M8 are executed, and the Y coordinate calculation (in this case, the coordinate of the first display dot in the Y coordinate direction) is performed according to the flow shown in FIGS. ) and its (x, y
) is sent to the graph display buffer 6A, and a process of lighting the display dot on the display section 8 is executed. The process then proceeds to step M9.

ステップM9ではXレジスタ3FからXo レジスタ3
Dに対し今回の演算結果データが前回の演算結果データ
として転送退避され、また同様に。
In step M9, from X register 3F to Xo register 3
The current calculation result data is transferred and saved to D as the previous calculation result data, and the same goes.

yレジスタ3Gからyo レジスタ3Eに今回の演算デ
ータが前回の演算データとして転送退避される。
The current calculation data is transferred and saved from the y register 3G to the yo register 3E as the previous calculation data.

次にステップMIOではXレジスタ3Fのデータが+1
され、またステップMllではその結果データがX方向
の最大の表示座標「95」より大きい「96」以上とな
ったか否かが判断され、而していまの場合は当然Noと
なってステップM2に戻り、2番目以下の(x、y)の
各座標が、ステップM2〜Mllの繰返しによって実行
され、而してステップMllにてYESとなったときに
は演算を終了し、結果的に第2図に示すグラフが表示部
8において表示される。
Next, in step MIO, the data in X register 3F is +1
In addition, in step Mll, it is determined whether the resulting data is greater than "96", which is larger than the maximum display coordinate "95" in the Returning, each coordinate of the second and subsequent (x, y) is executed by repeating steps M2 to Mll, and when YES is obtained in step Mll, the calculation is finished, and as a result, as shown in Fig. 2. A graph shown is displayed on the display unit 8.

次に第12図のフローチャートを参照して、上記ステッ
プM8のDRAW処理を説明する。
Next, the DRAW processing in step M8 will be explained with reference to the flowchart in FIG.

先ず、ステップD1ではyo レジスタ3Eの上位桁(
4b i t)はレンジ外を示すデータ「F」か否かが
判断され、而してYESのときにはこのフローは終了し
、この座標に対する表示動作は実行されない、他方、N
OのときにはステップD2に進み、yレジスタ3Gの上
位桁のデータがレンジ外を示すデータ「F」か否かが判
断され、而してYESのときにはこの座標点の表示は禁
止される。他方、NOのときにはステップD3に進んで
、XOレジスタ3E、Yo レジスタ3FおよびXレジ
スタ3F、Vレジスタ3Gに夫々セットされているデー
タによる座標(Xo 、 ”lo )、(x、y)間の
各点を結ぶグラフ表示動作が実行され、終了する。 尚
、上記実施例では、目盛をX軸、Y軸の片側だけに付し
たが、両方側に付けてもよい。
First, in step D1, the upper digits of the yo register 3E (
4b i t) is judged whether it is data "F" indicating out of range, and if YES, this flow ends and the display operation for this coordinate is not executed.On the other hand, N
When the answer is 0, the process proceeds to step D2, where it is determined whether the data in the upper digit of the y register 3G is data "F" indicating outside the range, and when the answer is YES, display of this coordinate point is prohibited. On the other hand, when the answer is NO, the process proceeds to step D3, and each coordinate between (Xo, ``lo'') and (x, y) is calculated according to the data set in the XO register 3E, Yo register 3F, X register 3F, and V register 3G, respectively. A graph display operation for connecting the points is executed and ends.In the above embodiment, scales are attached only to one side of the X-axis and Y-axis, but they may be attached to both sides.

[発明の効果] 以上説明したように、この発明は、関数のグラフを計算
して表示する計算機であって、予め設定された変数のレ
ンジに応じて座標軸(X軸、Y軸)の位置と目盛位置と
を計算し、座標軸と目盛とをグラフ表示部に表示するよ
うにしたグラフ表示機能を備えた小型電子式計算機であ
るから、表示されたグラフが非常に見易くなる利点があ
る。
[Effects of the Invention] As explained above, the present invention is a calculator that calculates and displays a graph of a function, and which calculates and displays the position of coordinate axes (X-axis, Y-axis) according to a preset variable range. Since this is a small electronic calculator equipped with a graph display function that calculates the scale position and displays the coordinate axes and scale on the graph display section, it has the advantage that the displayed graph is very easy to see.

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

第1図はこの発明の一実施例の回路構成図、第2図は入
力した関数式を演算したそのグラフの表示を示す図、第
3図は上記関数式と実行ポインタ4との関係を示す図、
第4図はXOレジスタ3D〜yレジスタ3G等のデータ
構成図、第5図はキー人力したレンジデータとスケール
データの表示例の図、第6図は座標軸と目盛の表示例の
図、第7図ないし第12図はグラフと座標軸、目盛表示
を行うためのフローチャートである。 1A・・・・・・テンキー、IB・・・・・・ファンク
ションキー、IC・・・・・・関数キー、ID・・・・
・・グラフキー、IE・・・・・・レンジキー、IF・
・・・・・EXE C実行)キー、2・・・・・・制御
部、3C・・・・・・ポインタレジスタ、3D・・・・
・・Xo レジスタ、3E・・・・・・Vo レジスタ
、3F・・・・・・Xレジスタ、3G・・・・・・yレ
ジスタ、3H・・・・・・X5ln レジスタ、3I・
・・・・・X wax レジスタ、3J・・・・・・3
’ sin レジスタ、3K・・・・・・7 wax 
レジスタ、3L・・・・・・X S CL レジスタ、
3M・・・・・・”! SCL レジスタ、3N・・・
・・・Xme■レジスタ、3F・・・・・・V *es
oレジスタ、4・・・・・・実行ポインタ、5・・・・
・・演算部、6A・・・・・・グラフ表示バッファ、7
・・・・・・数式バッファ、8・・・・・・表示部。 特許出願人   カシオ計算機株式会社第2図 第3図 第4図 第5図 第6図 第8図 第9図
FIG. 1 is a circuit diagram of an embodiment of the present invention, FIG. 2 is a diagram showing a graph obtained by calculating an input function formula, and FIG. 3 is a diagram showing the relationship between the above function formula and the execution pointer 4. figure,
Figure 4 is a data configuration diagram of XO register 3D to y register 3G, etc., Figure 5 is a diagram of a display example of range data and scale data input manually, Figure 6 is a diagram of a display example of coordinate axes and scales, and Figure 7 is a diagram of a display example of coordinate axes and scales. 12 through 12 are flowcharts for displaying graphs, coordinate axes, and scales. 1A...Numeric keypad, IB...Function key, IC...Function key, ID...
・・Graph key, IE・・Range key, IF・
...EXE C execution) key, 2...Control unit, 3C...Pointer register, 3D...
...Xo register, 3E...Vo register, 3F...X register, 3G...y register, 3H...X5ln register, 3I...
...X wax register, 3J...3
' sin register, 3K...7 wax
Register, 3L...X S CL register,
3M..."! SCL register, 3N...
...Xme■register, 3F...V *es
o register, 4...execution pointer, 5...
...Arithmetic unit, 6A...Graph display buffer, 7
...Formula buffer, 8...Display section. Patent applicant Casio Computer Co., Ltd. Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 8 Figure 9

Claims (1)

【特許請求の範囲】[Claims] グラフ表示をマトリクス型表示部に行う機能を備えた小
型電子式計算機において、関数式を入力する入力手段と
、この入力手段により入力された関数式に含まれる各変
数の範囲を示す範囲データを夫々入力する範囲入力手段
と、上記範囲データを記憶する範囲データ記憶手段と、
上記各変数の範囲データと上記関数式とから該関数式の
グラフ表示データを計算すると共に、上記表示グラフに
対する座標軸の位置と目盛位置とを上記範囲データに応
じて計算し、グラフと共に上記マトリクス型表示部に自
動的に表示させる手段とを備えたことを特徴とするグラ
フ表示機能を備えた小型電子式計算機。
A small electronic calculator equipped with the function of displaying graphs on a matrix type display section, which includes an input means for inputting a function formula and range data indicating the range of each variable included in the function formula input by this input means. a range input means for inputting; a range data storage means for storing the range data;
The graph display data of the function formula is calculated from the range data of each of the variables and the function formula, and the positions of the coordinate axes and scale positions with respect to the display graph are calculated according to the range data, and together with the graph, the matrix type 1. A small electronic calculator with a graph display function, characterized by comprising means for automatically displaying the information on a display section.
JP60117741A 1985-05-31 1985-05-31 Graph display control device and graph display control method Expired - Lifetime JP2715405B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60117741A JP2715405B2 (en) 1985-05-31 1985-05-31 Graph display control device and graph display control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60117741A JP2715405B2 (en) 1985-05-31 1985-05-31 Graph display control device and graph display control method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP19913697A Division JP2798082B2 (en) 1997-07-10 1997-07-10 Graph display control device and graph display control method

Publications (2)

Publication Number Publication Date
JPS61275959A true JPS61275959A (en) 1986-12-06
JP2715405B2 JP2715405B2 (en) 1998-02-18

Family

ID=14719151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60117741A Expired - Lifetime JP2715405B2 (en) 1985-05-31 1985-05-31 Graph display control device and graph display control method

Country Status (1)

Country Link
JP (1) JP2715405B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011203908A (en) * 2010-03-25 2011-10-13 Casio Computer Co Ltd Graph display device and program
JP2012094163A (en) * 2011-12-01 2012-05-17 Casio Comput Co Ltd Electronic apparatus and program
CN108572588A (en) * 2017-03-09 2018-09-25 三星电子株式会社 Menu control method and the electronic equipment for supporting the menu control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5451752A (en) * 1977-09-30 1979-04-23 Sharp Corp Electronic desk computer
JPS5945589A (en) * 1982-09-08 1984-03-14 Sharp Corp Graph making device
JPS6042645U (en) * 1983-08-31 1985-03-26 カシオ計算機株式会社 Small electronic printing device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5451752A (en) * 1977-09-30 1979-04-23 Sharp Corp Electronic desk computer
JPS5945589A (en) * 1982-09-08 1984-03-14 Sharp Corp Graph making device
JPS6042645U (en) * 1983-08-31 1985-03-26 カシオ計算機株式会社 Small electronic printing device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011203908A (en) * 2010-03-25 2011-10-13 Casio Computer Co Ltd Graph display device and program
EP2369578A3 (en) * 2010-03-25 2012-02-22 Casio Computer Co., Ltd. Graph display apparatus, recording medium on which program is recorded, and graph display method
CN102982787A (en) * 2010-03-25 2013-03-20 卡西欧计算机株式会社 Graph display apparatus and graph display method
AU2011200709B2 (en) * 2010-03-25 2013-05-02 Casio Computer Co., Ltd. Graph display apparatus, recording medium on which program is recorded, and graph display method
US8576230B2 (en) 2010-03-25 2013-11-05 Casio Computer Co., Ltd. Graph display apparatus, recording medium on which program is recorded, and graph display method
JP2012094163A (en) * 2011-12-01 2012-05-17 Casio Comput Co Ltd Electronic apparatus and program
CN108572588A (en) * 2017-03-09 2018-09-25 三星电子株式会社 Menu control method and the electronic equipment for supporting the menu control method

Also Published As

Publication number Publication date
JP2715405B2 (en) 1998-02-18

Similar Documents

Publication Publication Date Title
JPH0792789B2 (en) Graph display device
JPH0719240B2 (en) Small electronic calculator with graph display function
JPS61275959A (en) Electronic calculator with graphic display function
JPS61275960A (en) Electronic calculator with graphic display function
JPS61275962A (en) Electronic calculator with graphic display function
JP2798082B2 (en) Graph display control device and graph display control method
JPS61275961A (en) Electronic calculator with graphic display function
JPH04235658A (en) Compact electronic computer with graph display function
US5680527A (en) Information processing system having recognized pattern control
JP2738594B2 (en) Electronic computer
JPH0445875B2 (en)
JPH04436Y2 (en)
JP3557635B2 (en) Electronic calculator
JPH0140001Y2 (en)
JPH0128396B2 (en)
JPH06168104A (en) Electronic computer
JP2672940B2 (en) Document processing device
JPS62229362A (en) Character processor
JPH0512743B2 (en)
JPS63127355A (en) Electronic notebook device with tablet
JPS62169255A (en) Electronic computer
JPS6337469A (en) Statistical processing system
JPS63103353A (en) Graph display device
JPS61153775A (en) Displaying device
JPH0214728B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term