JPH07105141A - Electronic computer - Google Patents

Electronic computer

Info

Publication number
JPH07105141A
JPH07105141A JP26942193A JP26942193A JPH07105141A JP H07105141 A JPH07105141 A JP H07105141A JP 26942193 A JP26942193 A JP 26942193A JP 26942193 A JP26942193 A JP 26942193A JP H07105141 A JPH07105141 A JP H07105141A
Authority
JP
Japan
Prior art keywords
displayed
numerical value
arithmetic
display unit
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP26942193A
Other languages
Japanese (ja)
Inventor
Takashi Ogawa
敬 小川
Fuminori Nakamura
文宣 中村
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 JP26942193A priority Critical patent/JPH07105141A/en
Publication of JPH07105141A publication Critical patent/JPH07105141A/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To display the contents of arithmetic being executed and easily grasp them on a display screen by displaying an arithmetic symbol of a front stage and an arithmetic symbol of a rear stage on a display means together with numerals when the arithmetic symbols are inputted. CONSTITUTION:A display part 19 displays the numerals, arithmetic symbols, etc., under the control of a CPU 11. For example, when arithmetic '1+2X3' is performed, the arithmetic symbols '+' and 'X' of the front and rear stages are displayed at the display part 19 together with the numeral '2' when the arithmetic symbol 'X' is inputted. For example, when arithmetic '1+2X-' is executed according to the rule completely based upon the mathematical expression, halfway arithmetic '2X3' should be done before other parts are calculated. In this case, the halfway arithmetic is performed in the step where the arithmetic symbol '-' is inputted, and the result '6' and the arithmetic symbols '+' and '-' of the front and rear stages may be displayed. Thus, the number and the arithmetic symbols of the stages before and after the numeral are displayed at the display part 19, so the contents of the arithmetic being executed can be grasped and the operation is facilitated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、電子計算機に関し、
特に、表示された数値の演算式上で前段と後段に位置す
る演算記号(演算子)を表示できる小型電子計算機に関
する。
BACKGROUND OF THE INVENTION The present invention relates to an electronic computer,
In particular, the present invention relates to a small-sized computer that can display operation symbols (operators) located at the front and rear of the displayed arithmetic expression.

【0002】[0002]

【従来の技術】従来の電子計算機では、書式表示型の電
子計算機(計算書式を一括して入力・表示し、その後計
算を行うタイプのもの)を除いては、演算の内容のうち
で表示装置に表示されるのは、数値と1つの演算記号の
みである。この従来の電子計算機の動作を図6を参照し
て具体的に説明する。図6(A)ないし(F)は、「1
+2×3」を計算する場合のキー入力手順と表示の変化
を示す。この場合、操作者は、図示するように、キーを
「1」、「+」、「2」、「×」、「3」の順で入力す
る。すると、入力に応答し、その表示は、図6(A)な
いし(F)に示す順に変化する。
2. Description of the Related Art In a conventional electronic computer, a display device is included in the contents of calculation except for a format display type electronic computer (a type in which a calculation format is collectively input / displayed and then calculation is performed). Only the numerical value and one operation symbol are displayed in. The operation of this conventional electronic computer will be specifically described with reference to FIG. 6 (A) to 6 (F) show “1
The key input procedure and the change of the display when calculating "+ 2x3" are shown. In this case, the operator inputs the keys in the order of "1", "+", "2", "x", "3" as illustrated. Then, in response to the input, the display changes in the order shown in FIGS. 6 (A) to 6 (F).

【0003】[0003]

【発明が解決しようとする課題】即ち、表示部に表示さ
れるのは、図6に示すように、数値、又は、数値と1つ
の演算記号である。しかも、表示される演算記号は表示
された数値に対し、演算前のものであったり、演算後の
ものであったりする。また、表示される演算記号が1つ
だけであるため、先に行った演算の種類を表示上で確認
することができない。このため、実行中の演算の内容を
把握しずらい場合があるというという問題があった。こ
の問題は、電子計算機の取扱いになれていない学童を対
象とする教育用の小型電子計算機の場合に顕著となる。
That is, what is displayed on the display unit is a numerical value, or a numerical value and one operation symbol, as shown in FIG. Moreover, the displayed operation symbol may be before or after the displayed numerical value. Moreover, since only one operation symbol is displayed, the type of operation previously performed cannot be confirmed on the display. For this reason, there is a problem that it may be difficult to grasp the contents of the calculation being executed. This problem becomes noticeable in the case of a small computer for education which is targeted at school children who have not yet handled an electronic computer.

【0004】この発明は上記実状に鑑みてなされたもの
で、実行中の演算の内容を表示画面上で容易に把握でき
る電子計算機を提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an electronic computer which can easily grasp the contents of a calculation being executed on a display screen.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、この発明にかかる電子計算機は、置数キーとファン
クションキーを備え、演算式を順次入力するキー入力手
段と、数値を表示する数値表示部と、前記数値表示部に
表示された数値に対する前段の演算記号を表示する前段
演算記号表示部と、前記数値表示部に表示された数値の
後段の演算記号を表示する前段演算記号表示部を備える
表示手段と、前記入力手段より入力された演算記号を記
憶する記憶手段と、前記キー入力手段、前記表示手段及
び記憶手段に接続され、前記キー入力手段から入力され
た置数及びファンクションを前記記憶手段にセットし、
前記記憶手段の内容に応じて演算を実行し、さらに、前
記置数又は前記演算結果を前記数値表示部に表示させ、
前記数値表示部に表示された数値の前段の演算記号を前
記前段演算記号表示部に表示させ、前記数値表示部に表
示された数値に後続する後続演算記号を前記後続演算記
号表示部に表示させる制御手段、を備え、表示された数
値の演算式上の前段及び後段の演算記号を表示する機能
を有することを特徴とする。
In order to achieve the above object, an electronic computer according to the present invention is provided with a numeric key and a function key, key input means for sequentially inputting arithmetic expressions, and numerical value display for displaying numerical values. Section, a pre-stage operation symbol display section for displaying a pre-stage computation symbol for the numerical value displayed on the numerical value display section, and a pre-stage computation symbol display section for displaying a post-stage arithmetic symbol for the numerical value displayed on the numeric value display section. Display means provided, storage means for storing the operation symbol input by the input means, key input means, the display means and storage means, and the numerical value and function input from the key input means Set it in the memory,
The calculation is executed according to the contents of the storage means, and further, the numerical value or the calculation result is displayed on the numerical value display unit,
The preceding operation symbol of the numerical value displayed on the numerical value display unit is displayed on the preceding operation symbol display unit, and the subsequent operation symbol subsequent to the numerical value displayed on the numerical value display unit is displayed on the subsequent operation symbol display unit. The present invention is characterized by including a control means, and having a function of displaying an operation symbol at a front stage and a rear stage in an arithmetic expression of a displayed numerical value.

【0006】[0006]

【作用】上記構成とすることにより、この発明にかかる
電子計算機は、例えば、「1+2×3」という演算を実
行する場合、演算記号「×」を入力した段階で、置数
「2」と共に前段の演算記号「+」と後段の演算記号
「×」を表示手段に表示する。従って、実行中の演算の
内容を表示上で容易に把握できる。
With the above-described configuration, the electronic computer according to the present invention, for example, when executing the operation "1 + 2 × 3", enters the preceding stage together with the numeral "2" at the stage when the operation symbol "x" is input. The operation symbol "+" and the operation symbol "x" in the subsequent stage are displayed on the display means. Therefore, the content of the calculation being executed can be easily grasped on the display.

【0007】また、例えば、「1+2×3−4」の演算
を完全数式通りの規則に準じて実行する場合、他部分の
演算の前に途中演算「2×3」を行う必要がある。この
ような場合、演算記号「−」が入力された段階で途中演
算を行い、その結果「6」とその前段の演算記号「+」
及びその後段の演算記号「−」を表示するようにしても
よい。このように、この発明によれば、数値とその数値
の前段及び後段の演算記号が表示部に表示されるので、
実行中の演算の内容が把握しやすくなり、操作が容易と
なる。
Further, for example, when the operation of "1 + 2 × 3-4" is executed in accordance with the rule according to the complete mathematical formula, it is necessary to perform the intermediate operation "2 × 3" before the operation of other parts. In such a case, an intermediate operation is performed at the stage when the operation symbol “-” is input, and as a result, “6” and the operation symbol “+” at the preceding stage are executed.
Alternatively, the operation symbol "-" in the subsequent stage may be displayed. As described above, according to the present invention, since the numerical value and the operation symbols before and after the numerical value are displayed on the display unit,
The contents of the calculation being executed can be easily grasped and the operation becomes easy.

【0008】[0008]

【実施例】以下、この発明の一実施例を適用した電子計
算機を図面を参照して説明する。図1に示すように、こ
の実施例にかかる電子計算機は、CPU11とCPU1
1に接続されたキー入力部13、ROM15、RAM1
7、表示部19、演算可否判断部21を備える。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An electronic computer to which an embodiment of the present invention is applied will be described below with reference to the drawings. As shown in FIG. 1, the computer according to this embodiment includes a CPU 11 and a CPU 1.
Key input unit 13, ROM 15 and RAM 1 connected to 1
7, a display unit 19, and a calculation availability determination unit 21.

【0009】CPU11は、入力された数値(置数)及
び演算記号に従って、実行可能な部分の演算を順次実行
する演算部と、CPU11に接続された各部の動作を制
御する制御部を構成する。CPU11、ROM15、R
AM17及び演算可否判断部21は、例えば、1チップ
マイクロプロセッサとして1チップで構成される。
The CPU 11 constitutes an arithmetic unit for sequentially executing arithmetic operations of executable parts according to an inputted numerical value (numerical value) and an arithmetic symbol, and a control unit for controlling the operation of each unit connected to the CPU 11. CPU11, ROM15, R
The AM 17 and the operation propriety determination unit 21 are configured by one chip as a one-chip microprocessor, for example.

【0010】キー入力部13は、CPU11に、数値を
入力するための置数キー「0」〜「9」、演算記号を入
力するためのファンクションキー「+」、「−」、
「×」、「÷」、「=」、クリアキー等のその他の制御
キーを有する。
The key input unit 13 causes the CPU 11 to input numeral keys "0" to "9" for inputting numerical values, and function keys "+", "-" for inputting operation symbols.
It has other control keys such as "x", "÷", "=", and a clear key.

【0011】ROM15は、CPU11の動作マイクロ
プログラム、固定データ等を記憶する。RAM17は、
入力データ、演算途中経過、演算結果等を記憶するため
のものであり、図3に示すように、表示用レジスタ17
1と演算用レジスタ173を備える。
The ROM 15 stores the operation microprogram of the CPU 11, fixed data and the like. RAM17 is
It is for storing input data, progress of calculation, calculation result, etc., and as shown in FIG.
1 and an arithmetic register 173.

【0012】表示用レジスタ171は、数値レジスタ1
81、第1ファンクションレジスタ183、第2ファン
クションレジスタ185を有する。数値レジスタ181
には、数値表示部191に表示するための数値データ、
例えば、入力された数値データ、演算結果の数値データ
等が、CPU11によりセットされる。第1ファンクシ
ョンレジスタ183には、第1ファンクション表示部1
93に表示を行なわないとき「0」が、「+」記号を表
示する際に「1」が、「−」記号を表示する際に「2」
が、「×」記号を表示する際に「3」が、「÷」記号を
表示する際に「4」が、それぞれCPU11によりセッ
トされる。
The display register 171 is a numerical value register 1
81, a first function register 183, and a second function register 185. Number register 181
Is numerical data to be displayed on the numerical display unit 191.
For example, the input numerical data, the numerical data of the calculation result, etc. are set by the CPU 11. In the first function register 183, the first function display unit 1
93 is not displayed, "0" is displayed, "1" is displayed when the "+" sign is displayed, and "2" is displayed when the "-" sign is displayed.
However, the CPU 11 sets “3” when displaying the “x” symbol and “4” when displaying the “÷” symbol.

【0013】表示部19は、CPU11の制御下に、数
値、演算記号等を表示するもので、図2に示すように、
数値表示部191と第1及び第2ファンクション表示部
193、195を備える。数値表示部191は、7セグ
メント型(8の字型)表示素子を所定桁数(例えば、8
桁又は12桁)有し、数値レジスタ181に記憶された
置数、途中演算の結果及び演算結果等の数値を表示す
る。第1ファンクション表示部193はドットマトリク
スタイプの液晶表示部から構成され、第1ファンクショ
ンレジスタ183に記憶されたデータに対応する演算記
号、即ち、入力された演算式上で表示された数値の後段
に位置する演算記号(表示された数値の後に入力された
演算記号)を表示する。第2ファンクション表示部19
5は、ドットマトリクスタイプの液晶表示部から構成さ
れ、第2ファンクションレジスタ185に記憶されたデ
ータに対応する演算記号、即ち、表示された数値の前段
の演算記号(表示された数値の前に入力された演算記
号)を表示する。
The display unit 19 displays numerical values, operation symbols, etc. under the control of the CPU 11, and as shown in FIG.
A numerical value display unit 191 and first and second function display units 193 and 195 are provided. The numerical display unit 191 uses a 7-segment (8-shaped) display element with a predetermined digit number (for example, 8 digits).
It has a digit or 12 digits), and displays the numerical value such as the numerical value stored in the numerical value register 181, the result of the intermediate calculation and the calculation result. The first function display unit 193 is composed of a dot-matrix type liquid crystal display unit, and is provided in the subsequent stage of the operation symbol corresponding to the data stored in the first function register 183, that is, the numerical value displayed on the input operation formula. Display the located operation symbol (the operation symbol entered after the displayed number). Second function display section 19
5 is composed of a dot matrix type liquid crystal display unit, and an operation symbol corresponding to the data stored in the second function register 185, that is, an operation symbol in the preceding stage of the displayed numerical value (input before the displayed numerical value. The calculated operation symbol) is displayed.

【0014】第2ファンクションレジスタ185には、
第2ファンクション表示部195に表示を行なわないと
き「0」が、「+」記号を表示する際に「1」が、
「−」記号を表示する際に「2」が、「×」記号を表示
する際に「3」が、「÷」記号を表示する際に「4」
が、それぞれCPU11によりセットされる。演算用レ
ジスタ173には、入力された演算式がCPU11によ
り順次記憶されると共に、演算を行う際のワークエリア
としてCPU11により使用される。
In the second function register 185,
“0” is displayed when the second function display unit 195 is not displayed, and “1” is displayed when the “+” sign is displayed.
When displaying the "-" symbol, "2" is displayed, when displaying the "x" symbol, "3" is displayed, and when displaying the "÷" symbol, "4" is displayed.
Are set by the CPU 11, respectively. Input arithmetic expressions are sequentially stored in the arithmetic register 173 by the CPU 11, and are used by the CPU 11 as a work area for arithmetic operations.

【0015】演算可否判断部21は、ファンクションキ
ーが操作された時に、入力された演算式のうちで実行可
能な部分が存在するか否かを判断し、判断結果をCPU
11に通知する。
When the function key is operated, the operation propriety judging section 21 judges whether or not there is an executable part of the input arithmetic expression, and the judgment result is determined by the CPU.
Notify 11

【0016】次に、「10+2×3−4」の演算を完全
数式通りの規則に準じて実行する場合を例に、この実施
例にかかる電子計算機の動作を、図4、図5を参照して
説明する。図4は、この実施例にかかる電子計算機の動
作の主要部を示すフローチャート、図5は上記演算を実
行する際のキー入力の手順と表示の変化を示す図であ
る。
Next, referring to FIGS. 4 and 5, the operation of the electronic computer according to this embodiment will be described with reference to an example in which the operation of “10 + 2 × 3-4” is executed in accordance with the rules of the complete mathematical formula. Explain. FIG. 4 is a flowchart showing a main part of the operation of the electronic computer according to this embodiment, and FIG. 5 is a diagram showing a key input procedure and a change in display when executing the above calculation.

【0017】この電子計算機の電源が投入されると、C
PU11は、図示せぬ初期化処理を実行し、数値レジス
タ181、第1ファンクションレジスタ183、第2フ
ァンクションレジスタ185に、それぞれ「0」をセッ
トし、その後、図4に示す処理を開始する。
When the power of this electronic computer is turned on, C
The PU 11 executes an initialization process (not shown), sets “0” in each of the numerical register 181, the first function register 183, and the second function register 185, and then starts the process shown in FIG.

【0018】上述の演算を実行する場合、操作者は、は
じめに、図5(A)に示すように置数キー「1」を入力
(操作)する。このキー入力は、ステップS1で検出さ
れ、ステップS2で操作されたキーが置数キーであるこ
とが判別され、ステップS3で置数処理が実行される。
この置数処理において、CPU11は数値レジスタ18
1に記憶されている数値が「0」以外の場合、それを1
桁上位にシフトし、1桁目に置数された数値をセット
し、数値表示部191に表示する。また、数値のオーバ
ーフローをチェックし、オーバーフローが発生した場合
には、所定のエラー処理を行う。この例では、数値レジ
スタ181の最下位桁に「1」がセットされ、図5
(A)に示すように、表示部19に表示される。
When executing the above calculation, the operator first inputs (operates) the numeral key "1" as shown in FIG. 5 (A). This key input is detected in step S1, it is determined that the key operated in step S2 is a numeral key, and numeral processing is executed in step S3.
In this numerical processing, the CPU 11 causes the numerical value register 18
If the value stored in 1 is other than "0", set it to 1
The number is shifted to the upper digit, the numerical value set in the first digit is set, and the numerical value is displayed on the numerical display section 191. Also, the overflow of the numerical value is checked, and when the overflow occurs, a predetermined error processing is performed. In this example, "1" is set in the least significant digit of the number register 181, and
As shown in (A), it is displayed on the display unit 19.

【0019】次に、入力された置数が、1つの数を入力
するための最初の置数であるか否か判別される(ステッ
プS4)。この例の場合、入力置数「1」は数「10」
を表す最初の数値であり、ステップS4で「YES」と
判断され、フローはステップS5に進む。ステップS5
において、第1ファンクションレジスタ183の内容が
第2ファンクションレジスタ185に転送される。この
例では、第1ファンクションレジスタ183の内容は初
期化処理により「0」にリセットされており、第2ファ
ンクションレジスタ185に「0」がセットされる。以
上の処理を終了すると、フローはステップS1にリター
ンし、次のキー入力を待つ。
Next, it is judged whether or not the input number is the first number for inputting one number (step S4). In this example, the input number "1" is the number "10"
Is the first numerical value that represents, and is determined as “YES” in step S4, and the flow proceeds to step S5. Step S5
At, the contents of the first function register 183 are transferred to the second function register 185. In this example, the content of the first function register 183 is reset to “0” by the initialization process, and “0” is set to the second function register 185. When the above processing is completed, the flow returns to step S1 to wait for the next key input.

【0020】操作者は、次に、「0」キーを入力する。
すると、置数キーが操作されたことが、ステップS1,
S2で判別され、フローはステップS3に進む。ステッ
プS3では、数値レジスタ181の第1桁に記憶されて
いる「1」を第2桁にシフトし、1桁目に置数された数
値「0」をセットする。このため、表示部19は図5
(B)に示すように「10」を表示する。
The operator then inputs the "0" key.
Then, the fact that the numeric key has been operated indicates that step S1,
The determination is made in S2, and the flow proceeds to step S3. In step S3, "1" stored in the first digit of the numerical register 181 is shifted to the second digit, and the numerical value "0" set in the first digit is set. Therefore, the display unit 19 is shown in FIG.
As shown in (B), "10" is displayed.

【0021】次に、入力置数が最初の置数であるか否か
が判別される(ステップS4)。「0」は2番目の置数
であり、最初の置数ではないので、フローはステップS
5の処理を行わずに、ステップS1にリターンする。
Next, it is judged whether or not the input number is the first number (step S4). Since “0” is the second number and not the first number, the flow is the step S.
The process returns to step S1 without performing the process of 5.

【0022】次に、操作者はファンクションキー「+」
を操作する。この場合、ファンクションキーが操作され
たことが、ステップS1とS2を経てステップS6で判
別され、フローはステップS7に進む。ステップS7に
おいて、第1ファンクションレジスタ183に入力され
たファンクションキー「+」に対応する数値「1」がセ
ットされる。このため、図5(C)に示すように、第1
ファンクション表示部181には、演算式上で、数値表
示部191に表示された数値「10」の後段に位置する
演算記号「+」が表示される。
Next, the operator presses the function key "+".
To operate. In this case, it is determined in step S6 that the function key has been operated through steps S1 and S2, and the flow proceeds to step S7. In step S7, the numerical value "1" corresponding to the function key "+" input to the first function register 183 is set. Therefore, as shown in FIG.
The function display unit 181 displays a calculation symbol “+” located after the numerical value “10” displayed on the numerical display unit 191 in the calculation formula.

【0023】次に、演算可否判断部21は、入力内容に
基づいて、演算が可能であるか否かを判別する(ステッ
プS8)。この段階では、「10+」が入力されただけ
であるので、演算を行うことができない。そこで、演算
可否判断部21は、「NO」と判断し、フローはステッ
プS1にリターンする。
Next, the operation availability determination unit 21 determines whether or not the operation is possible based on the input contents (step S8). At this stage, since only "10+" is input, the calculation cannot be performed. Therefore, the calculation propriety determination unit 21 determines “NO”, and the flow returns to step S1.

【0024】次に、操作者は、置数キー「2」を入力す
る。フローはステップS1,S2を経てステップS3に
至る。ステップS3の置数処理において、CPU11
は、数値レジスタ181の第1桁に「2」をセットす
る。このため、数値表示部191には、図5(D)に示
すように、「2」が表示される。数字「2」は、1つの
数を表す最初の置数であるので、ステップS4で「YE
S」と判別され、ステップS5で、第1ファンクション
レジスタ183に記憶されている「+」に対応する値
「1」が第2ファンクションレジスタ185に転送さ
れ、第1ファンクションレジスタ183の内容は「0」
にクリアされる。従って、表示部19の表示は、図5
(D)に示すように、数値表示部191に置数「2」が
表示され、第2ファンクション表示部195には、演算
式上で「2」の前段に位置する(「2」の前に入力され
た)演算記号である「+」が表示され、第1ファンクシ
ョン表示部193にはなにも表示されていない状態とな
る。
Next, the operator inputs the numeral key "2". The flow goes to step S3 through steps S1 and S2. In the registration process of step S3, the CPU 11
Sets "2" to the first digit of the number register 181. Therefore, as shown in FIG. 5D, “2” is displayed on the numerical display unit 191. Since the numeral "2" is the first numeral that represents one number, "YE" is selected in step S4.
S ”, the value“ 1 ”corresponding to“ + ”stored in the first function register 183 is transferred to the second function register 185, and the content of the first function register 183 is“ 0 ”in step S5. "
Will be cleared. Therefore, the display of the display unit 19 is as shown in FIG.
As shown in (D), the numerical value display unit 191 displays the numeral "2", and the second function display unit 195 is positioned before "2" in the arithmetic expression (before "2"). The "+" which is the operation symbol that has been input is displayed and nothing is displayed on the first function display portion 193.

【0025】次に、操作者は、ファンクションキー
「×」を操作する。この場合、フローはステップS1,
S2,S6,を経てステップS7に至る。ステップS7
において、CPU11は、第1ファンクションレジスタ
183に入力された演算記号「×」に対応する値「3」
をセットする。このため、第1ファンクション表示部1
93には、記号「×」が図5(E)に示すように表示さ
れる。即ち、この段階では、置数「2」は、その前段と
後段の演算記号「+」と「×」と共に表示され、操作者
は、実行中の演算の内容を表示内容から判断できる。次
に、ステップS8で、演算可否判断部21が、演算が可
能であるか否かを判別する。「10+2×」が入力され
た段階では、演算できる部分は存在しない。このため、
ステップS8では、「NO」と判別され、フローはステ
ップS1にリターンする。
Next, the operator operates the function key "x". In this case, the flow is step S1,
After steps S2, S6, step S7 is reached. Step S7
In, the CPU 11 determines that the value “3” corresponding to the operation symbol “×” input to the first function register 183.
Set. Therefore, the first function display unit 1
At 93, the symbol "x" is displayed as shown in FIG. That is, at this stage, the numeral "2" is displayed together with the operation symbols "+" and "x" in the preceding and subsequent stages, and the operator can judge the contents of the calculation being executed from the displayed contents. Next, in step S8, the calculation availability determination unit 21 determines whether or not the calculation is possible. When “10 + 2 ×” is input, there is no part that can be calculated. For this reason,
In step S8, "NO" is determined and the flow returns to step S1.

【0026】次に、操作者は、置数キー「3」を入力す
る。すると、フローはステップS1,S2を経てステッ
プS3に至る。ステップS3の置数処理において、CP
U11は、数値レジスタ181の第1桁に「3」をセッ
トする。このため、数値表示部191には、図5(F)
に示すように、「2」に代わって「3」が表示される。
置数「3」は、最初の数字であるので、ステップS4で
「YES」と判別され、第1ファンクションレジスタ1
83に記憶されている演算記号「×」に対応する値
「3」が第2ファンクションレジスタ185に転送さ
れ、第1ファンクションレジスタ183の値は「0」に
クリアされる。従って、図5(F)に示すように、数値
表示部191に置数「3」が表示され、第2ファンクシ
ョン表示部195に、前段の演算記号である「×」が表
示され、第1ファンクション表示部193にはなにも表
示されない状態となる。
Next, the operator inputs the numeral key "3". Then, the flow goes to step S3 through steps S1 and S2. In the numerical processing of step S3, CP
U11 sets "3" in the first digit of the numerical value register 181. Therefore, the numerical display portion 191 is displayed in FIG.
As shown in, “3” is displayed instead of “2”.
Since the number "3" is the first number, it is determined to be "YES" in step S4, and the first function register 1
The value "3" corresponding to the operation symbol "x" stored in 83 is transferred to the second function register 185, and the value of the first function register 183 is cleared to "0". Therefore, as shown in FIG. 5 (F), the numeral display portion 191 displays the numeral "3", the second function display portion 195 displays the preceding operation symbol "x", and the first function Nothing is displayed on the display unit 193.

【0027】次に、操作者は、ファンクションキー
「−」を操作する。この場合、フローはステップS1,
S2,S6を経てステップS7に至る。ステップS7に
おいて、演算記号「−」に対応する値「2」が第1ファ
ンクションレジスタ183にセットされ、第1ファンク
ション表示部193に演算記号「−」が表示される。次
に、ステップS8で、演算可否判断部21は、演算が可
能であるか否かを判別する。「10+2×3−」が入力
された段階では、「2×3」の途中演算が可能であり、
ステップS8で、「YES」と判別され、ステップS9
において、演算「2×3」を実行し、数値レジスタ18
1に演算結果である「6」をセットし、数値表示部19
1に「6」を表示する。
Next, the operator operates the function key "-". In this case, the flow is step S1,
The process goes to step S7 through S2 and S6. In step S7, the value "2" corresponding to the operation symbol "-" is set in the first function register 183, and the operation symbol "-" is displayed on the first function display portion 193. Next, in step S8, the operation availability determination unit 21 determines whether or not the operation is possible. At the stage when “10 + 2 × 3−” is input, the intermediate calculation of “2 × 3” is possible,
In step S8, it is determined to be "YES", and step S9
, The operation “2 × 3” is executed and the numerical value register 18
The calculation result “6” is set to 1 and the numerical value display section 19
“6” is displayed in 1.

【0028】さらに、ステップS10において、CPU
11は、演算用レジスタ173の内容に基づいて、演算
レベルの繰り上げに応じて、第2ファンクションレジス
タ185の内容を訂正する。即ち、CPU11は途中演
算を実行した部分の前に位置する演算記号に対応する数
値を第2ファンクションレジスタ185にセットする。
この例では、演算式「2×3」の前に位置する演算記号
「+」に対応する値「1」が第2ファンクションレジス
タ185にセットされる。このため、表示部19は、図
5(G)に示すように、数値「6」を数値表示部191
に表示し、数値「6」を得た演算である「2×3」の後
段の演算記号「−」を第1ファンクション表示部193
に表示し、その演算の前段の演算記号「+」を第2ファ
ンクション表示部195に表示する。その後、フローは
ステップS1にリターンする。
Further, in step S10, the CPU
Reference numeral 11 corrects the content of the second function register 185 based on the content of the operation register 173 according to the advance of the operation level. That is, the CPU 11 sets, in the second function register 185, the numerical value corresponding to the operation symbol located before the portion where the intermediate operation is executed.
In this example, the value “1” corresponding to the operation symbol “+” located before the operation expression “2 × 3” is set in the second function register 185. Therefore, the display unit 19 displays the numerical value “6” on the numerical display unit 191 as shown in FIG.
, And the operation symbol “−” in the latter stage of “2 × 3”, which is the operation for obtaining the numerical value “6”, is displayed in the first function display unit 193.
, And the operation symbol “+” in the previous stage of the operation is displayed on the second function display section 195. After that, the flow returns to step S1.

【0029】次に、操作者は、置数キー「4」を入力す
る。この場合、フローはS1,S2を経てステップS3
に至る。ステップS3の置数処理において、CPU11
は、数値レジスタ181の第1桁に「4」をセットし、
数値表示部191に「4」を表示させる。数字「4」は
最初の数字であるので、ステップS4で「YES」と判
別され、第1ファンクションレジスタ183に記憶され
ている「−」に対応する値「2」が第2ファンクション
レジスタ185に転送され、第1ファンクションレジス
タ183の値は「0」にクリアされる。表示部19の表
示は、図5(H)に示すように、数値表示部191に置
数「4」が表示され、第2ファンクション表示部195
に前段の演算記号である「−」が表示され、第1ファン
クション表示部193になにも表示されていない状態と
なる。
Next, the operator inputs the numeral key "4". In this case, the flow goes through steps S1 and S2 to step S3.
Leading to. In the registration process of step S3, the CPU 11
Sets "4" to the first digit of the number register 181,
The numerical value display unit 191 displays “4”. Since the number "4" is the first number, it is determined to be "YES" in step S4, and the value "2" corresponding to "-" stored in the first function register 183 is transferred to the second function register 185. Then, the value of the first function register 183 is cleared to “0”. As shown in FIG. 5 (H), the display unit 19 displays a numeral “4” on the numerical display unit 191 and the second function display unit 195.
"-", Which is the operation symbol of the previous stage, is displayed on the screen, and nothing is displayed on the first function display unit 193.

【0030】次に、操作者は、ファンクションキー
「=」を操作する。この場合、フローはステップS1,
S2,S6を経てステップS7に至る。ステップS7に
おいて、操作されたファンクションキーが「=」である
ため、第1ファンクションレジスタ183には、特に値
を設定しない(=に対応する値を設定してもよい)。次
に、演算可否判断部21は、演算が可能であるか否かを
判別する。「=」キーが操作された段階では、すべての
演算が可能であり、ステップS8で「YES」と判別さ
れ、ステップS9において、演算「10+6−4」を実
行し、数値レジスタ181に演算結果である「12」を
セットし、第1、第2ファンクションレジスタ183、
185の内容を「0」にクリアする。これにより、数値
表示部191に演算結果である「12」が、図4(I)
に示すように表示される。
Next, the operator operates the function key "=". In this case, the flow is step S1,
The process goes to step S7 through S2 and S6. In step S7, since the operated function key is “=”, no value is set in the first function register 183 (a value corresponding to = may be set). Next, the calculation propriety determination unit 21 determines whether calculation is possible. When the "=" key is operated, all the calculations are possible, and it is determined to be "YES" in step S8, the calculation "10 + 6-4" is executed in step S9, and the calculation result is stored in the numerical value register 181. A certain "12" is set, and the first and second function registers 183,
The content of 185 is cleared to "0". As a result, the calculation result "12" is displayed on the numerical display unit 191 as shown in FIG.
It is displayed as shown in.

【0031】なお、数値キーやファンクションキー以外
のキー、例えば、クリアキーが入力された場合には、フ
ローはステップS1,S2,S6を経てステップS11
に至り、ステップS11で、入力キーに対応する処理が
実行される。
When a key other than the numerical keys or function keys, for example, the clear key is input, the flow goes through steps S1, S2, S6 and step S11.
In step S11, the process corresponding to the input key is executed.

【0032】以上説明したように、この実施例によれ
ば、第1及び第2ファンクション表示部及び第1及び第
2ファンクションレジスタを設置したことにより、表示
数値に対する前段及び後段の演算記号を表示できる。換
言すると、先に入力した演算記号と今回入力した演算記
号を同時に表示できる。従って、操作者は、表示数値の
前後段の演算記号を随時確認でき、実行中の演算の内容
を容易に把握することができ、教育用小型電子計算機等
に効果的である。
As described above, according to this embodiment, by providing the first and second function display portions and the first and second function registers, it is possible to display the operation symbols in the preceding and subsequent stages for the displayed numerical value. . In other words, the previously entered operation symbol and the operation symbol entered this time can be displayed simultaneously. Therefore, the operator can check the operation symbols before and after the displayed numerical value at any time, and can easily understand the content of the operation being executed, which is effective for a small computer for education.

【0033】なお、この発明は上記実施例に限定され
ず、種々の応用、変更が可能である。例えば、第1、第
2ファンクション表示部の位置は表示部19のいずれの
位置であってもよい。また、上記実施例では、数値表示
部191を8セグメントタイプの表示部とし、ファンク
ション表示部193、195をドットマトリクスタイプ
の表示部としたが、例えば、表示部19全体をドットマ
トリクスタイプの表示部としてもよい。上記実施例で
は、途中演算を実行した際に、演算用レジスタ173の
内容に基づいて、第2ファンクション表示部195の表
示を訂正したが、例えば、第2ファンクションレジスタ
185の値が更新される度に、その値をセーブしてお
き、セーブしておいた値に基づいて表示を訂正してもよ
い。上記実施例では、完全数式通りの規則に準じた演算
を行う電子計算機にこの発明を適用した例を示したが、
その他の形式の電子計算機にも応用可能である。
The present invention is not limited to the above embodiment, and various applications and modifications are possible. For example, the positions of the first and second function display portions may be any positions on the display portion 19. In the above embodiment, the numerical value display unit 191 is an 8-segment type display unit and the function display units 193 and 195 are dot matrix type display units. However, for example, the entire display unit 19 is a dot matrix type display unit. May be In the above embodiment, the display of the second function display unit 195 is corrected based on the content of the calculation register 173 when the intermediate calculation is executed. However, for example, every time the value of the second function register 185 is updated. Alternatively, the value may be saved, and the display may be corrected based on the saved value. In the above embodiment, an example in which the present invention is applied to an electronic computer that performs an operation according to a rule as a complete mathematical expression is shown.
It can also be applied to other types of electronic computers.

【0034】[0034]

【発明の効果】以上説明したように、この発明によれ
ば、表示数値の前後段の演算記号を同時に表示できる。
従って、操作者は、表示数値の前後段の演算記号を随時
確認でき、実行中の演算の内容を容易に把握することが
でき、極めて効果的である。
As described above, according to the present invention, the operation symbols before and after the displayed numerical value can be displayed simultaneously.
Therefore, the operator can confirm the operation symbols before and after the displayed numerical value at any time, and can easily understand the content of the operation being executed, which is extremely effective.

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

【図1】この発明の一実施例にかかる電子計算機の回路
構成を示すブロック図である。
FIG. 1 is a block diagram showing a circuit configuration of an electronic computer according to an embodiment of the present invention.

【図2】図1に示す表示部の構成を示す図である。FIG. 2 is a diagram showing a configuration of a display unit shown in FIG.

【図3】図1に示すRAMの構成を示す図である。FIG. 3 is a diagram showing a configuration of a RAM shown in FIG.

【図4】図1に示す電子計算機の動作の主要部分を説明
するためのフローチャートである。
FIG. 4 is a flowchart for explaining a main part of the operation of the electronic computer shown in FIG.

【図5】「10+2×3−4」の演算を実行する際の、
キー操作の手順及び表示部の表示の変化を示す図であ
る。
FIG. 5 is a diagram showing a case of executing an operation of “10 + 2 × 3-4”
It is a figure which shows the procedure of a key operation, and the change of the display of a display part.

【図6】従来の電子計算機におけるキー操作の手順及び
表示部の表示の変化を示す図である。
FIG. 6 is a diagram showing a key operation procedure and a display change of a display unit in a conventional electronic computer.

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

11・・・CPU、19・・・表示部、15・・・ROM,17・
・・RAM、19・・・キー入力部、21・・・演算可否判断
部、191・・・数値表示部、193・・・第1ファンクショ
ン表示部、195・・・第2ファンクション表示部、17
1・・・表示用レジスタ、173・・・演算用レジスタ、18
1・・・数値レジスタ、183・・・第1ファンクションレジ
スタ、185・・・第2ファンクションレジスタ
11 ... CPU, 19 ... Display unit, 15 ... ROM, 17 ...
..RAM, 19 ... Key input section, 21 ... Computability determination section, 191 ... Numerical value display section, 193 ... First function display section, 195 ... Second function display section, 17
1 ... Display register, 173 ... Arithmetic register, 18
1 ... Numerical value register, 183 ... First function register, 185 ... Second function register

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】置数キーとファンクションキーを備え、演
算式を順次入力するキー入力手段と、 数値を表示する数値表示部と、前記数値表示部に表示さ
れた数値に対する前段の演算記号を表示する前段演算記
号表示部と、前記数値表示部に表示された数値の後段の
演算記号を表示する前段演算記号表示部を備える表示手
段と、 前記入力手段より入力された演算記号を記憶する記憶手
段と、 前記キー入力手段、前記表示手段及び記憶手段に接続さ
れ、前記キー入力手段から入力された置数及びファンク
ションを前記記憶手段にセットし、前記記憶手段の内容
に応じて演算を実行し、さらに、前記置数又は前記演算
結果を前記数値表示部に表示させ、前記数値表示部に表
示された数値の前段の演算記号を前記前段演算記号表示
部に表示させ、前記数値表示部に表示された数値に後続
する後続演算記号を前記後続演算記号表示部に表示させ
る制御手段、 を備えたことを特徴とする電子計算機。
1. A key input means for sequentially inputting arithmetic expressions, comprising numerical keys and function keys, a numerical value display section for displaying numerical values, and an operation symbol at a preceding stage for the numerical value displayed on the numerical value display section. And a display unit having a front-stage operation symbol display unit for displaying a rear-stage operation symbol display unit for displaying the numerical value displayed on the numerical value display unit, and a storage unit for storing the operation symbol input from the input unit. And, connected to the key input means, the display means and the storage means, sets the numerical value and the function input from the key input means in the storage means, and executes an operation according to the contents of the storage means, Further, the numerical value or the calculation result is displayed on the numerical value display unit, and the operation symbol of the previous stage of the numerical value displayed on the numerical value display unit is displayed on the previous stage operation symbol display unit, and Computer, characterized in that the subsequent operation symbol that follows the number displayed on the value display unit having a control unit, to be displayed on the subsequent operation symbol display unit.
【請求項2】前記制御手段は、入力された演算式の少な
くとも一部で、演算が可能であるか否かを判断し、この
判断に従って、演算を行った時、前記前段演算記号表示
部に、演算を実行した部分の前に位置する演算記号を表
示させる手段を含むことを特徴とする請求項1記載の電
子計算機。
2. The control means judges whether or not the calculation is possible by at least a part of the inputted arithmetic expression, and when the calculation is performed according to this judgment, the preceding arithmetic symbol display section is displayed. 2. The electronic computer according to claim 1, further comprising means for displaying an operation symbol located in front of the portion where the operation is executed.
【請求項3】入力部と表示部と演算制御部を備え、演算
式を構成する数値及び演算記号を前記入力部より順次入
力し、入力に応じて前記演算制御部により順次演算を実
行して演算結果を前記表示部に表示する電子計算機にお
いて、 前記演算制御部は、数値と前記演算式上で該数値の前段
と後段に位置する演算記号を同時に前記表示部に表示さ
せる手段を備えることを特徴とする電子計算機。
3. An input unit, a display unit, and an arithmetic control unit, wherein numerical values and arithmetic symbols constituting an arithmetic expression are sequentially input from the input unit, and the arithmetic control unit sequentially executes arithmetic operations according to the input. In the electronic computer that displays the calculation result on the display unit, the calculation control unit includes a unit that causes the display unit to simultaneously display a numerical value and a calculation symbol located in a preceding stage and a subsequent stage of the numerical value on the calculation formula. Characteristic electronic calculator.
JP26942193A 1993-10-04 1993-10-04 Electronic computer Pending JPH07105141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26942193A JPH07105141A (en) 1993-10-04 1993-10-04 Electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26942193A JPH07105141A (en) 1993-10-04 1993-10-04 Electronic computer

Publications (1)

Publication Number Publication Date
JPH07105141A true JPH07105141A (en) 1995-04-21

Family

ID=17472191

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26942193A Pending JPH07105141A (en) 1993-10-04 1993-10-04 Electronic computer

Country Status (1)

Country Link
JP (1) JPH07105141A (en)

Similar Documents

Publication Publication Date Title
JP2856600B2 (en) Scientific calculator
JPH07105141A (en) Electronic computer
US5638308A (en) Calculator with keys which can selectively be disabled
JP7110847B2 (en) Calculator, calculation confirmation method, information registration method, and program
JP3252493B2 (en) Electronic calculator and its calculation processing method
JP6504128B2 (en) Electronic device, data processing method and program
US5515304A (en) Portable calculator for an array calculation
JP3557645B2 (en) Electronic computer
JPH08235124A (en) Electronic computer
JP5141208B2 (en) Prime factorization calculator
JPH07105140A (en) Electronic computer
JP2560344Y2 (en) Small electronic calculator
JPH04297948A (en) Display device for electronic calculator
JPH0738995Y2 (en) Small computer
JPH07230428A (en) Electronic computer
JPH11102346A (en) Desk top electronic calculator
JPH04250555A (en) Electronic computer
EP0786729B1 (en) Portable calculator
JP2695296B2 (en) calculator
JPH08227399A (en) Electronic computer
JPS58172734A (en) Input system of electronic computer
JPH0441397Y2 (en)
US20060064446A1 (en) Calculator with error notification function and its method
JPH0793257A (en) Electronic computer
JPH0628137A (en) Function display device