JPS61275961A - Electronic calculator with graphic display function - Google Patents

Electronic calculator with graphic display function

Info

Publication number
JPS61275961A
JPS61275961A JP60117743A JP11774385A JPS61275961A JP S61275961 A JPS61275961 A JP S61275961A JP 60117743 A JP60117743 A JP 60117743A JP 11774385 A JP11774385 A JP 11774385A JP S61275961 A JPS61275961 A JP S61275961A
Authority
JP
Japan
Prior art keywords
display
data
register
graph
coordinate
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
JP60117743A
Other languages
Japanese (ja)
Other versions
JPH0420498B2 (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 JP60117743A priority Critical patent/JPS61275961A/en
Publication of JPS61275961A publication Critical patent/JPS61275961A/en
Publication of JPH0420498B2 publication Critical patent/JPH0420498B2/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)

Abstract

PURPOSE:To easily see a graph by displaying at least divisions even when coordinate axes cannot be displayed by displaying a graph adding divisions to an outer edge section of a display screen nearer to the coordinate axes when the calculated coordinate axes are situated outside a display area of the screen based on a variable of a prescribed function. CONSTITUTION:An arithmetic part 5 executes the operation of a function expression from a numerical expression buffer 7 under a control of a control part 2 by using respective registers 3A-3P of a memory section 3. The arithmetic part 5 reads the data for displaying a graph, coordinate axes and its divisions during performing the operation of the function from the memory part 3 to feed to a graph display butter part 6A in a display buffer section 6. When an ordinary numerical value display or the like is carried out, the data therefor is fed to a text display buffer 6B and its display data is fed to a display part 7 and the display of the graph or the numerical value or the like is carried out. When the calculated coordinate axes are outside an area of the display screen, the position of the divisions is displayed at an end section of the display screen nearer to the coordinate axes.

Description

【発明の詳細な説明】 [発明の技術分野1 この発明は関数式をグラフ表示する機能を備えた小型電
子式計算機に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention 1] 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 that can display 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.

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

[従来技術の問題点1 然るに、上述した従来の計算機の場合、座標軸は表示さ
れなかったので1表示されたグラフの根やその個数など
が分からず、大変不便であった。
[Problem with Prior Art 1] However, in the case of the above-mentioned conventional calculator, 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.

[発明の目的] 座標軸が表示でき、グラフが見易くなるようにしたグラ
フ表示機能を備えた小型電子式計算機を提供することを
目的とする。
[Object 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 make graphs easier to see.

[発明の要点] 予め設定された変数のレンジに応じて座標軸(X軸、Y
軸)の位置とその目盛位置とを計算し、この計算した座
標軸が表示画面の領域外となったときには上記目盛位置
を座標軸に近い方の表示画面の端部に表示するようにし
たことである。
[Key Points of the Invention] Coordinate axes (X-axis, Y-axis,
The position of the axis) and its scale position are calculated, and when the calculated coordinate axis is outside the area of the display screen, the scale position is displayed at the edge of the display screen near the coordinate axis. .

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

第1図はグラフ表示機能を備えた小型電子式計算機の回
路図である0図中、lのキー人力部には通常の計算機に
設けられているテンキーIA。
FIG. 1 is a circuit diagram of a small electronic calculator equipped with a graph display function. In FIG.

ファンクションキーIB、関数の計算式を入力するため
の関数キーIC1関数式のグラフ表示モードを指定する
グラフキーlD、関数式に含まれる変数X、Yの各範囲
データの入力モードを指定するレンジキーIE、関数計
算等の実行指示を行うためのEXE (実行)キーIF
が少なくとも設けられており、各キーからの信号は制御
部2に送られて処理される。
Function key IB, function key IC1 for inputting the function formula, graph key ID for specifying the graph display mode of the function formula, range key specifying the input mode for each range data of variables X and Y included in the function formula EXE (execution) key IF for issuing execution instructions for IE, function calculations, etc.
are provided at least, 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
 、 7o )が夫々セットされるXo レジスタ3D
、yo レジスタ3E、今回の座標(x、y)が夫々セ
ットされるXレジスタ3F、Yレジスタ3G、変数Xの
範囲の最小値、最大値が夫々セットされるX5in レ
ジスタ3H,x、、、レジスタ3I、変数yの範囲の最
小値、最大値が夫々セットされる7sin レジスタ3
J、Vsax レジスタ3K、目盛処理時に用いられる
x sct レジスタ3L、VSCL レジスタ3Mグ
ラフ表示を行うための座標(x、y)の各1ドツトの大
きさが書込まれるx 、e、oレジスタ3N 、  V
 memoレジスタ3Pを夫々有している。
The memory unit 3 consists of a RAM (random access memory), and 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.
The previous coordinates (xo
, 7o) are set respectively in the Xo register 3D.
, yo register 3E, X register 3F, Y register 3G, where the current coordinates (x, y) are set, respectively, X5in register 3H, x,, register, where the minimum and maximum values of the range of variable X are set, respectively. 3I, 7sin register 3 where the minimum and maximum values of the range of variable y are set respectively.
J, Vsax register 3K, x sct register 3L, VSCL register 3M used for scale processing, V
Each has a memo register 3P.

キー人力部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.

演算部5は上記数式バッファ7からの関数式の演算を制
御部2の制御下にメモリ部3の上記の各レジスタ゛3A
〜3Pを使って実行する。そして演算部5は関数演算実
行時にそのグラフ表示と座標軸及びその目盛表示のため
のデータをメモリ部3から読出して表示バッファ部6内
のグラフ表示バッファ6Aに送り、また通常の数値表示
等を行うときにはそのためのデータをテキスト表示バッ
ファ6Bに送り、それらの表示データは表示部7に送ら
れて、グラフまたは数値等の表示が行われる。
The arithmetic unit 5 calculates the function formula from the formula buffer 7 through each of the registers 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, sends it to the graph display buffer 6A in the display buffer unit 6, and performs normal numerical display, etc. Sometimes, data for this 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声in レジ
スタ3H,Xoax レジスタ3工に変数Xに対する範
囲の最小値と最大値の各データ例えば、−1aoと18
0をプリセットし、また7 sin レジスタ3J、V
sax レジスタ3Kにも同様に、変数yに対する変化
範囲の最小値と最大値の各データ例えば、−2,2ざら
にxsct レジスタ3L、YSCL レジスタ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, each data of the minimum value and maximum value of the range for variable
0 and also 7 sin registers 3J, V
Similarly, in the sax register 3K, preset each data of the minimum value and maximum value of the change range for the variable y, for example, -2, 2, and in the xsct register 3L and YSCL register 3M, scale data, for example, 90.0.5. I'll keep it.

次いで上記(1)式の関数式をグラフキーID、関数キ
ーIC,ファンクションキーIB、テンキーLA、EX
EキーIFを操作して入力すると、数式バッファ7のア
ドレス0〜4には、第3図に示すように、実行ポインタ
4によりアドレスされて(1)式の関数式の各データが
書込まれる。なお、実行ポインタ「4」のデータrEN
D」はEXEキーIFの操作時に書込まれるENDコー
ドデータである。そして第7図ないし第12図のフロー
チャートによる動作にしたがって、演算部5によって(
1)式の関数演算とその座標軸およびその目盛を表示す
るための演算が行われ、その結果のグラフが第2図に見
られるように表示部8に表示される 即ち、第7図のメインフローにおいて、グラフ命令が入
力されると先ず、グラフ表示バッファ6Aのデータの有
無の判断動作が実行され、而して、今データ無しである
からステップG2に進み、ymesoレジスタ3Pがク
リアされ1次いでステップG3によってY座標計算が実
行される。次にステップG4によりyレジスタ3G内の
データがrFF’Jか否かが判断される。而して、今は
NOであるからステップG5に進み、座標(Oly)、
(95、y)の2点間に線を引く。なお、第5図の例で
はy座標は第8図の演算から「32」となる0次にステ
ップG6によってx mem。
Next, the function formula of equation (1) above is input to the graph key ID, function key IC, function key IB, numeric keypad LA, and EX.
When input by operating the E key IF, each data of the function formula of formula (1) is written to addresses 0 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 the presence or absence of data in the graph display buffer 6A is executed, and since there is currently no data, the process proceeds to step G2, the ymeso register 3P is cleared, and the process proceeds to step G2. Y coordinate calculation is executed by G3. Next, in step G4, it is determined whether the data in the y register 3G is rFF'J. Now, the answer is NO, so proceed to step G5, and set the coordinates (Oly),
Draw a line between the two points (95, y). In the example shown in FIG. 5, the y coordinate is "32" from the calculation shown in FIG. 8, and x mem is determined by step G6 at the 0th order.

レジスタ3Nをクリアし、次いで、ステップG7による
X座標計算を実行し、次いでステップG8に進みXレジ
スタ3F内のデータがrFFJか否かを判断し、NOで
あるからステップG9に進み、座標(X、0)、(x、
63)の2点間に線を引く、なお、第5図の例では第9
図の演算からX座標は「48」となる。
Clear the register 3N, then execute the X coordinate calculation in step G7, then proceed to step G8, judge whether the data in the X register 3F is rFFJ, and if NO, proceed to step G9, calculate the coordinate (X ,0),(x,
63). In addition, in the example of Figure 5, draw a line between the two points of
From the calculation in the figure, the X coordinate is "48".

次に、ステップGIOに進み第10図に示す目盛処理を
行って目盛を計算し、ステップGllに進み第11図に
示すグラフ処理を行って、ステップG12に進みグラフ
画面表示を行う。
Next, the process proceeds to step GIO, 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内
のデータがrFFJの時には、エラーであるので、ステ
ップGIOに進む。
Note that in step G4, if the data in the y register 3G is rFFJ, it is an error, so step G6
Proceed to. Further, in step G8, if the data in the X register 3F is rFFJ, it is an error, and the process proceeds to step GIO.

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

先ず、ステップYlでは、図示するY座標の値を求める
式の計算が’7 memoレジスタ3F、  7sin
レジスタ3J、7aax レジスタ3Kに夫々セットさ
れているデータにしたがって実行され、その結果データ
がyレジスタ3Hにセットされる。
First, in step Yl, the formula for calculating the value of the Y coordinate shown in the figure is calculated using '7 memo register 3F, 7sin
The execution is performed according to the data set in the registers 3J, 7aax and 3K, respectively, and the resulting data is set in the y register 3H.

次にステップY2ではそのセットされたデータの四捨五
入法による整数化が行われ、次いでステップY3では、
その整数化したデータがY座標方向の最小位置座標の「
0」より小か否かが判断される。そしてYESのときに
はステップY4に進みyレジスタ3Gに16進データr
80oJがセットされ(ステップY4)、終る。なお、
この16進データr80HJの意味は、yレジスタ3G
等のデータ構成が第4図に見られるように、8ビツト構
成であり、而してその最上位ビットは0VERRANG
E/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 the minimum position coordinate in the Y coordinate direction.
It is determined whether or not the value is smaller than "0". When the answer is YES, the process advances to step Y4 and the hexadecimal data r is stored in the y register 3G.
80oJ is set (step Y4) and the process ends. In addition,
The meaning of this hexadecimal data r80HJ is y register 3G
As shown in Figure 4, the data structure is an 8-bit structure, and the most significant bit is 0VERRANG.
It is for the E/UNDERRANGE flag, and in this case, the flag bit indicates “UNDERRANGE”.
This means that 1'' has been written. Also, y register 3G
Minimum coordinate data rQJ is written in the lower 7 bits of .

他方、ステップY3においてNOのときには更にステッ
プY5に進み、上記整数化したデータがY座標方向の最
大位置座標の「63」より大か否かが判断され、YES
のときにはステップY6に進んでyレジスタ3Gに16
進データrBF+Jを書込み、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 rBF+J is written, and the flag "1" indicating 0VERRANGE and the maximum cut-off data "63" are written and the writing is completed. Further, if NO in step Y5, the result of the current Y coordinate calculation is not over the range, and the process 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.

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

次にステップx2ではXレジスタ3F内の上記データの
整数化が行われ次にステップx3に進み、そのデータが
rQJより小か否かの判断が行われる。而して、YES
の時にはステップx4に進み上記ステップY4と同一の
処理を行ってXレジスタ3FにtJNDERRANGE
のフラグを立て、また、最小座標データ「0」を書込む
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 rQJ. So, YES
If so, proceed to step x4, perform the same process as step Y4 above, and write tJNDERRANGE to the X register 3F.
Set the flag and write the minimum coordinate data "0".

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

さらに、ステップ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)のフローチャートにより
上記ステップG10の目盛処理の動作を説明する。
Next, the operation of the scale processing in step G10 will be explained using the flowcharts shown in FIGS. 10(1) and 10(2).

先ず、ステップS1ではX SCL レジスタ3L内の
データが「0」か否かを判断するが、いまの例では第5
図に示すように「90」であるからステップS2に進み
、現在のY座標が「63」以下か否かを判断する。而し
て第5図の例ではYESとなり、Y座標が0VERRA
NGEではないからステップS4に進みY座標がその中
心座標である「32」以下か否かを判断し「32」以下
である第5図の例ではX座標軸は表示部8の中心部より
下側に位置しているからステップS5に進み、Y座標を
+1してそれをyレジスタ3Gにセットする。その結果
、X軸に対しては、第6図(B)又は(C)に示す様に
、目盛はX軸の上に対して、即ち、画面の中心部の空間
の広い方に向けて付されることになる。
First, in step S1, it is determined whether the data in the X SCL register 3L is "0" or not.
As shown in the figure, since it is "90", the process proceeds to step S2, and it is determined whether the current Y coordinate is "63" or less. Therefore, in the example shown in Figure 5, the answer is YES, and the Y coordinate is 0VERRA.
Since it is not NGE, the process proceeds to step S4, and it is determined whether or not the Y coordinate is less than or equal to the center coordinate "32". In the example of FIG. Since it is located at step S5, the Y coordinate is incremented by 1 and it is set in the y register 3G. As a result, for the X-axis, as shown in Figure 6 (B) or (C), the scale is placed above the X-axis, that is, toward the wider space in the center of the screen. will be done.

次にステップS7ではXレジスタ3F内の座標データを
Aレジスタ3Aに退避し、次いでステップS8の計算(
−180÷90)を行って「−2」をBレジスタ3Bに
セットする。またステップS9ではそのデータの丸めを
行い、次にステップS10では、xsct レジスタ3
L内のデータ「90」とBレジスタ3B内のデータ「−
2」とを乗算し、その結果で得たr−180」をX□、
。レジスタ3Nにセットする。そして、ステップSll
により、第9図に示すX座標計算を行う、その結果、上
記ステップx1により、X座標「0」が得られる。そし
て、ステップ312では、上記X座標がrDFhJか否
かを判断し、今NOであれば演算エラーではないからス
テップS14に進み、そのX座標がr80++jか否か
を判断し、今NOであるからステップS15に進み、X
座標の点をプロットする。そして、ステップS16では
、Bレジスタ3Bのデータを+1して「−1」とし、ス
テップS10にもどる。
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. Further, in step S9, the data is rounded, and then in step S10, xsct register 3
Data “90” in L and data “-” in B register 3B
2", and the result obtained is r-180",
. Set in register 3N. And step Sll
Accordingly, the X coordinate calculation shown in FIG. 9 is performed. As a result, the X coordinate "0" is obtained in step x1. Then, in step 312, it is determined whether or not the above-mentioned X coordinate is rDFhJ, and if it is now NO, it is not a calculation error, so the process proceeds to step S14, and it is determined whether or not the X coordinate is r80++j. Proceed to step S15 and
Plot a point in coordinates. Then, in step S16, the data in the B register 3B is incremented by 1 to become "-1", and the process returns to step S10.

次いで、ステップ310ではx semoレジスタ3N
のデータがr−904となる。そして、ステップSll
では、X座標がステップXiの計算により、X座標がr
23.75J と・なり、それを整数化して、X座標が
「24」となる、そして、ステップS12、Si2.5
15を実行し、次いでステップ31Bでは、Bレジスタ
3Bのデータが「0」となる0次いでステップ510に
もどり、X@emoレジスタ3NのデータがrOJとな
り、次いで、ステップSllの計算により、X座標が「
48」となり1次いでステップS12.S14.515
,316が実行され、Bレジスタ3Bのデータが「1」
となる、そしてステップSIOにもどりx sea。レ
ジスタ3Nのデータが「+90」となる、七して、ステ
ップSllのX座標計算では、X座標が「71」となる
0次にステップS12、S14、S15.S16が実行
され、Bレジスタ3Bのデータが「2」となる、そして
ステップ510にもどり、x memoレジスタ3Nの
データが「180」となる。そして、ステップS11の
X座標計算では、X座標は「95」となり、ステップS
12.514、S15、S16が実行され、Bレジスタ
3Bにはデータ「3」がセットされる0次にステップS
10の実行により、Xmen。レジスタ3Nのデータは
「270」となり、次いでステップ511のX座標計算
では、X座標がrl19J−7’0VERRANGEと
なるかi”>ステップx5においてYESとなり、Xレ
ジスタ3Fにデータ「DFH」がセットされ、その結果
、ステップS12では、YESとなり、ステップS13
に進んでAレジスタ3Aに退避していたデータがXレジ
スタ3Fにもどされ、ステップS17に進んでY軸に対
する目盛処理に入る。即ちX軸に対しては、X5CL 
レジスタ3L内のデータ「90」・によって4箇所に目
盛がつけられる。
Then, in step 310, the x semo register 3N
The data becomes r-904. And step Sll
Then, the X coordinate is r due to the calculation in step Xi.
23.75J, convert it into an integer, the X coordinate becomes "24", and step S12, Si2.5
15 is executed, and then in step 31B, the data in the B register 3B becomes "0". Then, the process returns to step 510, where the data in the X@emo register 3N becomes rOJ, and then, by the calculation in step Sll, the X coordinate is "
48'' and then step S12. S14.515
, 316 is executed, and the data in B register 3B becomes "1".
Then, return to step SIO x sea. The data in the register 3N becomes "+90", and in the X coordinate calculation in step Sll, the X coordinate becomes "71" in steps S12, S14, S15. S16 is executed, and the data in the B register 3B becomes "2", and the process returns to step 510, where the data in the x memo register 3N becomes "180". Then, in the X coordinate calculation in step S11, the X coordinate becomes "95", and in step S11, the
12.514, S15, and S16 are executed, and data "3" is set in B register 3B.0th step S
Xmen by running 10. The data in register 3N becomes "270", and then in the X coordinate calculation in step 511, the X coordinate becomes rl19J-7'0VERRANGE? , As a result, the result is YES in step S12, and the result is YES in step S13.
The process proceeds to step S17, where the data saved in the A register 3A is returned to the X register 3F, and the process proceeds to step S17, where a scale process for the Y axis begins. That is, for the X axis, X5CL
The four locations are marked with data "90" in the register 3L.

次にステップS17ではいまの例ではysct レジス
タ3MのデータはrO,5JでOではないから、ステッ
プ518に進みXレジスタ3FのX座標が「95」以下
か否か判断され、而して第5図の例ではYESとなり、
ステップS20に進んで今度はY軸が表示部8の中心部
の右にあるか左にあるかを見る。そして、第5図の例で
は左側にあり、Y軸のX座標データは「48」以下であ
るからステップS21に進み、Y軸のX座標データを+
1する。
Next, in step S17, since the data in the ysct register 3M is rO, 5J and not O in the present example, the process proceeds to step 518, where it is determined whether the X coordinate of the X register 3F is "95" or less, and the fifth In the example in the figure, it is YES,
Proceeding to step S20, 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 the process advances to step S21, and the X coordinate data of the Y axis is +
Do 1.

その結果、第6図(A)に示す様に、Y軸に対しては、
その右側に即ち画面の中心部の広い方の空間に向けて目
盛が付される。そして以後は上述したステップS8から
316同様な処理ステップであるステップS23からス
テップS30を繰り返し実行し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 S30, which are processing steps similar to steps S8 to 316 described above, are repeatedly executed to calculate a scale for the Y coordinate.

一方、上記ステップS2にてNoとなった場合は、Y座
標はその最大座標をオーバーしているからステップS3
に進み、yレジスタ3G内のデータとデータr3FoJ
  (63)との論理積をとり、yレジスタ3Gの上位
2ビツトをクリアし、ステップS7に進む。
On the other hand, if the result in step S2 is No, the Y coordinate exceeds its maximum coordinate, so step S3
Proceed to y register 3G data and data r3FoJ
(63), clears the upper two bits of the y register 3G, and proceeds to step S7.

そして以下ステップS7から516を実行し、X軸に対
する目盛処理を行う、その結果、第6図(D)に示す様
にX軸に対しては、表示部8の表示画面の外縁部(辺)
にてX軸の下に、即ち、画面の中心部に向けて目盛が付
される。
Then, steps S7 to 516 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ビツトをクリアする。そして以下、ステップ3
23〜S30を実行し、Y軸に対する目盛処理を行う。
Further, if NO is determined in step S18, the X coordinate exceeds its maximum coordinate, so the process proceeds to step S19, and the data in the X register 3F is ANDed with the data "5FHJ", and the upper 1 bit is cleared.Then, the following steps are performed. Step 3
Steps 23 to S30 are executed to perform scale processing on the Y axis.

その結果、Y座標に対する目盛は、第6図(C)に示す
ように、表示部8の表示画面の外縁部の辺に対して、画
面の中心部に向けて付される。
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).

更に、上記ステップS20でNoとなるとY軸が表示部
8の中心部の右方にあった場合であり、ステップS22
により、Y軸のX座標データを−1して、それをXレジ
スタ3Fにセットし、以下ステップS23から530の
Y軸に対し目盛を付す演算を行う、その結果、第6図(
B)に示す様にY軸に対しては、その左側即ち表示部8
の画面の中心部の広い空間に向けて目盛が付される。
Furthermore, if the result in step S20 is No, it means that the Y-axis is on the right side of the center of the display section 8, and step S22
, 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 530 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
のグラフ処理を説明する。
Next, according to the flowchart of FIG. 11, the above step Gll
Explain the graph processing of

即ち、ステップM1において、実行ポインタ4の先頭の
ポインタ(アドレス「0」)がポインタレジスタ3Cに
転送退避されると共に、yoレジスタ3EにデータrF
F」 (1B進コード)が書込まれ、更にXレジスタ3
Fがクリアされる。
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 data rF is stored in the yo register 3E.
F” (1B base code) is written, and then the X register 3
F is cleared.

次にステップM2では、  Xain レジスタ3H1
X、□レジスタ3Iにプリセー、トされている前記デー
タと、いまは「0」のXレジスタのデータとを使って図
示する数式の演算が実行され、変数Xの1ドツトの大き
さを示すデータ(いまはX*inレジスタ3Hにプリセ
ットされているデータ「−180Jとなる)が得られて
それがx IIe@oレジスタ3Nにセットされる。即
ち、これによってX座標方向の1番目の表示ドツトの座
標が求まる。
Next, in step M2, Xain register 3H1
The calculation of the formula shown in the figure is executed using the data preset in the X, □ register 3I and the data in the X register, which is currently "0", and data indicating the size of one dot of the variable X is obtained. (Currently, the data "-180J" preset in the Find the coordinates of.

次にステップM3ではポインタレジスタ3Cに退避して
おいたアドレスrOJが実行ポインタ4に戻され、また
次のステップM4によりこのアドレスrQJから「4」
までの数式バッファ7内の(1)式の関数演算が実行さ
れ、1番目の答が7 memoレジスタ3Pにセットさ
れる0次いでステップM5ではその答が演算エラーか否
かが判断され、而してYESのときにはステップM6に
進んでyレジスタ3Gにエラーデータを示す16進コー
ドrFFJが書込まれたのち、ステップM9に進む。
Next, in step M3, the address rOJ saved in the pointer register 3C is returned to the execution pointer 4, and in the next step M4, "4" is returned from this address rQJ.
The functional operation of formula (1) in the formula buffer 7 up to 0 is executed, and the first answer is set to 7 memo register 3P.Next, in step M5, it is determined whether the answer is an operation error or not. If the result is YES, the process advances to step M6, where a hexadecimal code rFFJ indicating error data is written to the y register 3G, and then the process advances 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レジスタ3D
に対し今回の演算結果データが前回の演算結果データと
して転送退避され、また同様に。
In step M9, from X register 3F to XO register 3D
In contrast, the current calculation result data is transferred and saved as the previous calculation result data, and the same is true.

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の繰返しによって実行
され、而してステップM1.1にて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 X direction, and in the current case, the heat output is NO and step M2 is performed. Returning to step M1.1, each coordinate of (X, Y) from the second onwards is executed by repeating steps M2 to Mll, and when YES is obtained in step M1.1, the calculation is finished and as a result, the A graph shown in FIG. 2 is displayed on the display section 8.

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

先ず、ステップD1ではy0レジスタ3Eの上位桁はレ
ンジ外を示すデータrFJか否かが判断され、而してY
ESのときにはこのフローは終了し、この座標に対する
表示動作は実行されない。
First, in step D1, it is determined whether the upper digit of the y0 register 3E is data rFJ indicating that it is out of range.
When it is ES, this flow ends and no display operation is performed for this coordinate.

他方、NOのときにはステップD2に進み、yレジスタ
3Gの上位桁(4bit)のデータがレンジ外を示すデ
ータrFJか否かが判断され、而してYESのときには
この座標点の表示は禁止される。他方、Noのときには
ステップD3に進んで・ XOレジスタ3E、Yo レ
ジスタ3FおよびXレジスタ3F、yレジスタ3Gに夫
々セットされているデータによる座標(xo 、 yo
 )、(x、y)間の各点を結ぶグラフ表示動作が実行
され、終了する。
On the other hand, when the answer is NO, the process proceeds to step D2, where it is determined whether the data in the upper digits (4 bits) of the y register 3G is data rFJ 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, where the coordinates (xo, yo
), (x, y) is executed, and the graph display operation is completed.

尚、上記実施例では、目盛をX軸、Y軸の片側だけに付
したが1両方側に付けてもよい。
In the above embodiment, the scales were attached only to one side of the X-axis and the 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, which calculates and displays coordinate axes (X-axis, Y-axis) and their scales based on preset variables of the function. is calculated, and when the calculated coordinate axes are outside the display area of the screen, the graph is displayed with the scale attached to the outer edge (side) of the display screen that is closer to the coordinate axes. Since it is a small electronic calculator equipped with a graph display function, it has the advantage that even when the coordinate axes cannot be displayed, only the scale is displayed, making the graph very easy to read.

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

第1図はこの発明の一実施例の回路構成図、第2図は入
力した関数式を演算したそのグラフの表示を示す図、第
3図は上記関数式と実行ポインタ4との関係を示す図、
第4図はXOレジスタ3D〜yレジスタ3G等のデータ
構成図、第5図はキー人力したレンジデータとスケール
データの表示例の図、第6図は座標軸と目盛の表示例の
図、第7図ないし第12図はグラフと座標軸、目盛表示
を行うためのフローチャートである。 IA・・・・・・テンキー、IB・・・・・・ファンク
ションキー、lC・・・・・・関数キー、lD・・・・
・・グラフキー。 lE・・・・・・レンジキー、IF・・・・・・EXE
 (実行)キー、2・・・・・・制御部、3C・・・・
・・ポインタレジスタ、3D・・・・・・Xo レジス
タ、3E・・・・・・yo レジスタ、3F・・・・・
・Xレジスタ、3G・・・・・・yレジスタ、3H・・
・・・・Xoin レジスタ、3I・・・・・・x s
ax レジスタ、3J・・・・・・Vain レジスタ
、3K・・・・・・V sax レジスタ、3L・・・
・・・X SCL レジスタ、3M・・・・・・Y S
CL レジスタ、3N・・・・・・x memoレジス
タ、3P・・・・・・V memoレジスタ、4・・・
・・・実行ポインタ、5・・・・・・演算部、6A・・
・・・・グラフ表示バッファ、7・・・・・・数式バッ
ファ、8・・・・・・表示部。 第2図 第3図 第4図 第5図 第6図 第8図 第9図 第11図 CA凸□ 第12図
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 the 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 the coordinate axes and scales. 12 through 12 are flowcharts for displaying graphs, coordinate axes, and scales. IA...Numeric keypad, IB...Function key, IC...Function key, ID...
...Graph key. lE...Range key, IF...EXE
(Execution) key, 2...Control unit, 3C...
...Pointer register, 3D...Xo register, 3E...yo register, 3F...
・X register, 3G...y register, 3H...
...Xoin register, 3I...x s
ax register, 3J...Vain register, 3K...V sax register, 3L...
...X SCL register, 3M...Y S
CL register, 3N...x memo register, 3P...V memo register, 4...
...Execution pointer, 5... Arithmetic unit, 6A...
...Graph display buffer, 7...Math buffer, 8...Display section. Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 8 Figure 9 Figure 11 CA convex □ Figure 12

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 variable and the function formula, and the position and scale position of the coordinate axes with respect to the display graph are calculated according to the range data, and the calculated coordinate axes are A graph display function characterized by comprising means for automatically displaying the scale position on the matrix type display section along with the graph at the end of the display screen near the coordinate axes when the scale position is outside the area of the display screen. A small electronic calculator with
JP60117743A 1985-05-31 1985-05-31 Electronic calculator with graphic display function Granted JPS61275961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60117743A JPS61275961A (en) 1985-05-31 1985-05-31 Electronic calculator with graphic display function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60117743A JPS61275961A (en) 1985-05-31 1985-05-31 Electronic calculator with graphic display function

Publications (2)

Publication Number Publication Date
JPS61275961A true JPS61275961A (en) 1986-12-06
JPH0420498B2 JPH0420498B2 (en) 1992-04-03

Family

ID=14719203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60117743A Granted JPS61275961A (en) 1985-05-31 1985-05-31 Electronic calculator with graphic display function

Country Status (1)

Country Link
JP (1) JPS61275961A (en)

Also Published As

Publication number Publication date
JPH0420498B2 (en) 1992-04-03

Similar Documents

Publication Publication Date Title
JPH0792789B2 (en) Graph display device
JPH0719240B2 (en) Small electronic calculator with graph display function
JP2959960B2 (en) Information processing device with multiple graph display function
JPS60193066A (en) Electronic computer
JPS6243226B2 (en)
JPS61275961A (en) Electronic calculator with graphic display function
JPS61275959A (en) Electronic calculator with graphic display function
JPS61275962A (en) Electronic calculator with graphic display function
JPS61275960A (en) Electronic calculator with graphic display function
JPH0454561A (en) Graph display controller
JP2798082B2 (en) Graph display control device and graph display control method
JPH04235658A (en) Compact electronic computer with graph display function
JPH04436Y2 (en)
JPS5882296A (en) Dot matrix display system
JP2738594B2 (en) Electronic computer
JPH06168104A (en) Electronic computer
US6104369A (en) Display control circuit including hardware elements for preventing undesired display within the display space of the display unit
JPH04251371A (en) Small-sized electronic computer with graph displaying function
JPH0140001Y2 (en)
JP4193773B2 (en) Arithmetic control device and program
JP2731025B2 (en) Display control device
JPH0922343A (en) Arithmetic unit
JPH0737151Y2 (en) Small electronic calculator
JPH0334104B2 (en)
JPS6225208B2 (en)

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term