JPH0555245U - Small electronic calculator - Google Patents

Small electronic calculator

Info

Publication number
JPH0555245U
JPH0555245U JP10686191U JP10686191U JPH0555245U JP H0555245 U JPH0555245 U JP H0555245U JP 10686191 U JP10686191 U JP 10686191U JP 10686191 U JP10686191 U JP 10686191U JP H0555245 U JPH0555245 U JP H0555245U
Authority
JP
Japan
Prior art keywords
key
process proceeds
fractional
register
determined
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
JP10686191U
Other languages
Japanese (ja)
Inventor
文宣 中村
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 JP10686191U priority Critical patent/JPH0555245U/en
Publication of JPH0555245U publication Critical patent/JPH0555245U/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

(57)【要約】 【目的】 操作者の意向を推測し、分数計算の出力の際
に置数された分数の形式と同じ形式で分数計算の計算結
果を表示するようにした小型電子式計算機を提供する。 【構成】 分数式を入力する「a b/c」キー1cを
入力すると、このキーの入力回数が回数レジスタXに記
憶される(ステップS7)。そして、演算子を入力した際
に回数レジスタXの内容が判断され(ステップS12)、
回数レジスタXの内容に応じて仮分数フラグF1 または
帯分数フラグF2 がセットされる(ステップS20,S
13)。「=」キー1dの入力が判断されると(ステップS
17)、仮分数フラグF1 および帯分数フラグF2 のセ
ット状態が判断され(ステップS18)、それに応じて分
数演算の結果が仮分数表示または帯分数表示される(ス
テップS21,S19)。
(57) [Summary] [Purpose] A small electronic computer that estimates the operator's intention and displays the calculation result of the fractional calculation in the same format as the fractional number entered when outputting the fractional calculation. I will provide a. [Structure] When the "ab / c" key 1c for inputting a fractional expression is input, the number of times this key is input is stored in the frequency register X (step S7). Then, when the operator is input, the contents of the frequency register X are judged (step S12),
The improper fraction flag F 1 or the mixed fraction flag F 2 is set according to the contents of the count register X (steps S20, S).
13). When the input of the "=" key 1d is determined (step S
17) Then, the set states of the improper fraction flag F 1 and the mixed fraction flag F 2 are judged (step S18), and the result of the fractional calculation is displayed improperly or mixed fraction accordingly (steps S21, S19).

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】[Industrial application]

この考案は分数計算ができる小型電子式計算機に関する。 The present invention relates to a small electronic calculator capable of fractional calculation.

【0002】[0002]

【従来の技術】[Prior Art]

従来、分数計算ができる小型電子式計算機では分数キーを有し、数値の区切り に分数キーを入力することにより、帯分数や仮分数の分数式を入力できる。 Conventionally, a small electronic computer capable of fractional calculation has a fractional key, and by inputting the fractional key to separate numerical values, fractional expressions such as mixed fractions and improper fractions can be input.

【0003】[0003]

【考案が解決しようとする課題】[Problems to be solved by the device]

しかしながら、従来の小型電子式計算機では帯分数形式を主としているので、 置数が帯分数か仮分数であるかに関わらず計算結果の表示は帯分数で出力される 。このため、仮分数の形式で結果を得たい場合には計算結果を仮分数に変換する 操作が必要であり、操作性を損うという欠点があった。 この考案は上記問題を解消する為になされたもので、操作者の意向を推測し、 分数計算の出力の際に置数された分数の形式と同じ形式で分数計算の計算結果を 表示するようにした小型電子式計算機を提供することを目的とする。 However, since conventional small electronic calculators mainly use the mixed number format, the display of the calculation result is output in mixed number regardless of whether the register is mixed or improper fraction. Therefore, in order to obtain results in the form of improper fractions, it is necessary to convert the calculation results into improper fractions, which has the drawback of impairing operability. This invention was made in order to solve the above problem, so that the operator's intention is guessed and the calculation result of the fractional calculation is displayed in the same format as the fractional number entered when outputting the fractional calculation. It is an object of the present invention to provide a small-sized electronic calculator which is based on the above.

【0004】[0004]

【課題を解決するための手段】[Means for Solving the Problems]

この考案は上記課題を解決するために、分数計算ができる小型電子式計算機に おいて、分数式を入力するための特定キー(例えば「a b/c」キー)を有す る入力手段と、上記特定キーの操作回数を記憶する記憶手段と、分数表示が可能 な表示手段と、上記記憶手段に記憶された上記特定キーの操作回数に応じて入力 された分数式が仮分数か帯分数かを判断する判断手段と、この判断手段の判断結 果に応じて分数計算の結果を上記表示手段に仮分数表示または帯分数表示させる 表示制御手段とを具備したことを特徴とする。 In order to solve the above problems, the present invention provides an input means having a specific key (for example, “ab / c” key) for inputting a fractional mathematical expression in a small electronic calculator capable of fractional calculation, Storage means for storing the number of times of operation of the specific key, display means capable of fraction display, and whether the fractional expression input according to the number of operations of the specific key stored in the storage means is an improper fraction or a mixed fraction And a display control means for displaying the result of the fractional calculation on the display means in the provisional fraction display or mixed fraction display according to the determination result of the determination means.

【0005】[0005]

【作用】[Action]

この考案の作用は次の通りである。 分数式を入力する際に、分数式を入力するための特定キーの操作回数を記憶手 段に記憶し、判断手段は特定キーの操作回数に応じて入力された分数式が仮分数 か帯分数かを判断し、この判断結果に応じて表示制御手段は分数計算の結果を表 示手段に仮分数表示または帯分数表示させる。 The operation of this device is as follows. When entering a fractional expression, the number of times a specific key is operated to enter the fractional expression is stored in a memory means, and the determination means is the fractional expression that is input according to the number of times the particular key is operated. Then, the display control means causes the display means to display the result of the fraction calculation in the improper fraction display or the mixed fraction display according to the determination result.

【0006】[0006]

【実施例】【Example】

以下、この考案の一実施例を図1ないし図5に基づいて説明する。 図1は小型電子式計算機の回路構成を示すブロック図である。キー入力部1は「 0」〜「9」の数値データを入力する数値キー1a、四則演算を指定する「+」〜「 ÷」のファンクションキー1b、分数式を入力するために置数の区切りに入力さ れる「a b/c」キー1c、演算の実行を指示する「=」キー1d、およびオー ルクリアを指定する「AC」キー1eを有する。そして、キー入力部1でキー操 作を行なうと、キー操作に応じたキー入力信号がCPU2に出力される。CPU 2はキー入力部1から出力されたキー入力信号を取込み、制御プログラムに基づ いた各種処理を実行する。CPU2には式メモリ3および表示部4が接続されて いる。式メモリ3はレジスタa〜cと、演算子レジスタと、レジスタA〜Cとを 有する。また、CPU2には仮分数式の入力を示す仮分数フラグF1 と、帯分数 式の入力を示す帯分数フラグF2 と、「a b/c」キー1cの操作回数を記憶 する回数レジスタXとが接続されている。An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram showing the circuit configuration of a small electronic computer. The key input unit 1 is a numerical key 1a for inputting numerical data of "0" to "9", a function key 1b of "+" to "÷" for specifying four arithmetic operations, and a delimiter for a numeral for inputting a fractional expression. It has an “ab / c” key 1c to be input to, an “=” key 1d for instructing execution of an operation, and an “AC” key 1e for designating an all clear. When the key input section 1 performs a key operation, a key input signal corresponding to the key operation is output to the CPU 2. The CPU 2 takes in the key input signal output from the key input unit 1 and executes various processes based on the control program. An expression memory 3 and a display unit 4 are connected to the CPU 2. The expression memory 3 has registers a to c, an operator register, and registers A to C. Further, the CPU 2 stores the improper fraction flag F 1 indicating the input of the improper fractional expression, the mixed fraction flag F 2 indicating the input of the mixed fraction expression, and the number register X for storing the number of times of operation of the “ab / c” key 1c. And are connected.

【0007】 図2ないし図4は各種分数式における分数式、キー操作、および結果表示の例 を示す図である。図2は帯分数のみの分数式、キー操作、および結果表示の例を 示す図である。図3は仮分数のみの分数式、キー操作、および結果表示の例を示 す図である。図4は仮分数と帯分数の両方を含む分数式、キー操作、および結果 表示の例を示す図である。2 to 4 are diagrams showing examples of fractional expressions in various fractional expressions, key operations, and result display. FIG. 2 is a diagram showing an example of a fractional expression of only mixed numbers, key operations, and result display. FIG. 3 is a diagram showing an example of a fractional expression using only improper fractions, key operation, and result display. FIG. 4 is a diagram showing examples of fractional expressions including both improper fractions and mixed fractions, key operations, and result display.

【0008】 次に、図5を参照して上記実施例の動作を説明する。図5は動作を示すフロー チャートである。図5は「AC」キー1eの操作後から開始され、このとき仮分 数フラグF1 、帯分数フラグF2 、回数レジスタXは夫々クリアされる。Next, the operation of the above embodiment will be described with reference to FIG. FIG. 5 is a flow chart showing the operation. FIG. 5 is started after the operation of the "AC" key 1e, at which time the improper fraction flag F 1 , the mixed fraction flag F 2 , and the count register X are cleared.

【0009】 (1)帯分数のみの分数式を計算する場合 まず、図2に示すような帯分数のみの分数式を計算する場合を説明する。初め に、ステップS1ではキー入力部1でキー入力を行なう。この場合は、数値キー 1aを操作して数値「2」を置数する。ステップS2においては、入力されたキー が数値キー1aか否かが判断される。ステップS2でYESと判断された場合は ステップS3に進み、NOの場合はステップS5に進む。(1) Calculation of a Fractional Formula of Only Mixed Numbers First, a case of calculating a fractional formula of only mixed numbers as shown in FIG. 2 will be described. First, in step S1, the key input unit 1 inputs a key. In this case, the numerical key 1a is operated to enter the numerical value "2". In step S2, it is determined whether or not the input key is the numerical key 1a. If YES is determined in step S2, the process proceeds to step S3, and if NO is determined, the process proceeds to step S5.

【0010】 いま、数値「2」を置数したので、ステップS2からステップS3に進む。ステ ップS3では回数レジスタXの内容が「0」〜「2」のいずれかであるか判断される 。Since the numerical value “2” has been entered, the process proceeds from step S2 to step S3. At step S3, it is judged whether the content of the frequency register X is "0" to "2".

【0011】 当初、回数レジスタXの内容は「0」であるからステップS3からステップS4 に進む。ステップS4においては、置数データ「2」を式メモリ3のレジスタaに 記憶させる。ステップS4の実行後はステップS1に戻る。Initially, the content of the frequency register X is “0”, and therefore the process proceeds from step S 3 to step S 4. In step S4, the numerical data "2" is stored in the register a of the expression memory 3. After execution of step S4, the process returns to step S1.

【0012】 次に、1回目の「a b/c」キー1cを入力する。これにより、ステップS 2ではNOと判断されてステップS5に進む。ステップS5では入力されたキー が「a b/c」キー1cか否かが判断される。ステップS5でYESと判断さ れた場合はステップS6に進み、NOの場合はステップS10に進む。Next, the first-time “ab / c” key 1c is input. As a result, NO is determined in step S2, and the process proceeds to step S5. In step S5, it is determined whether or not the input key is the "ab / c" key 1c. If YES is determined in step S5, the process proceeds to step S6, and if NO is determined, the process proceeds to step S10.

【0013】 いま、「a b/c」キー1cを入力したのでステップS5からステップS6 に進む。ステップS6において、回数レジスタXの内容が「2」か否かが判断され る。ステップS6でYESと判断された場合はステップS1に戻り、NOの場合 はステップS7に進む。いま、回数レジスタXの内容は「0」であるからステップ S6からステップS7に進む。ステップS7では回数レジスタXの内容が+1さ れて「1」となる。ステップS7の実行後はステップS1に戻る。Since the "ab / c" key 1c has been input, the process proceeds from step S5 to step S6. In step S6, it is determined whether or not the content of the frequency register X is "2". If YES is determined in step S6, the process returns to step S1, and if NO, the process proceeds to step S7. Since the content of the frequency register X is now "0", the process proceeds from step S6 to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "1". After execution of step S7, the process returns to step S1.

【0014】 数値キー1aを操作して数値「1」を置数すると、ステップS2からステップS 3に進む。ステップS3では回数レジスタXの内容が「1」なのでステップS8に 進む。ステップS8においては、置数データ「1」を式メモリ3のレジスタbに記 憶させてステップS1に戻る。次に、2回目の「a b/c」キー1cを入力す る。これにより、ステップS2ではNO、ステップS5でYESと判断されてス テップS6に進む。ステップS6では回数レジスタXの内容は「1」なのでNOと 判断されてステップS7に進む。ステップS7では回数レジスタXの内容が+1 されて「2」となり、ステップS1に戻る。When the numerical key 1a is operated to enter the numerical value "1", the process proceeds from step S2 to step S3. In step S3, since the content of the frequency register X is "1", the process proceeds to step S8. In step S8, the register data "1" is stored in the register b of the expression memory 3, and the process returns to step S1. Next, press the "ab / c" key 1c for the second time. As a result, NO is determined in step S2, YES is determined in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "1", the determination is NO and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to "2", and the process returns to step S1.

【0015】 数値キー1aを操作して数値「5」を置数すると、ステップS2からステップS 3に進む。ステップS3では回数レジスタXの内容が「2」なのでステップS9に 進む。ステップS9においては、置数データ「5」を式メモリ3のレジスタcに記 憶させてステップS1に戻る。When the numerical key 1a is operated to enter the numerical value "5", the process proceeds from step S2 to step S3. In step S3, since the content of the frequency register X is "2", the process proceeds to step S9. In step S9, the register data "5" is stored in the register c of the expression memory 3, and the process returns to step S1.

【0016】 次に、ファンクションキー1bを操作して演算子「+」を入力すると、ステップ S2,S5で夫々NOと判断されてステップS10に進む。ステップS10では 入力されたキーが演算子か否かが判断される。ステップS10でYESと判断さ れた場合はステップS11に進み、NOの場合はステップS17に進む。いま、 演算子「+」を入力したので、ステップS10からステップS11に進む。ステッ プS11において、演算子「+」の演算子コードが式メモリ3の演算子レジスタに 記憶される。続くステップS12では回数レジスタXの内容が「1」か否かが判断 される。ステップS12でYESと判断された場合はステップS20に進み、N Oの場合はステップS13に進む。いま、回数レジスタXの内容は「2」なのでN Oとなり、ステップS13に進む。ステップS13において、帯分数フラグF2 に「1」がセットされる。ステップS13からはステップS14に進む。ステップ S14ではレジスタa、レジスタb、レジスタcに記憶された置数データは約分 演算処理され、ステップS15において夫々レジスタA、レジスタB、レジスタ Cにシフトされる。次のステップS16においては回数レジスタXに「0」が書き 込まれてクリアされ、ステップS1に戻る。Next, when the operator operates the function key 1b to input the operator “+”, it is determined NO in steps S2 and S5, and the process proceeds to step S10. In step S10, it is determined whether the input key is an operator. If YES is determined in step S10, the process proceeds to step S11, and if NO is determined, the process proceeds to step S17. Since the operator "+" has been input, the process proceeds from step S10 to step S11. In step S11, the operator code of the operator "+" is stored in the operator register of the expression memory 3. In a succeeding step S12, it is determined whether or not the content of the frequency register X is "1". If YES is determined in step S12, the process proceeds to step S20, and if NO, the process proceeds to step S13. Since the content of the frequency register X is "2", it becomes N0 and the process proceeds to step S13. In step S13, the mixed fraction flag F 2 is set to "1". The process proceeds from step S13 to step S14. In step S14, the numerical data stored in the registers a, b, and c are subjected to the reduction arithmetic processing, and in step S15, they are shifted to the registers A, B, and C, respectively. In the next step S16, "0" is written and cleared in the frequency register X, and the process returns to step S1.

【0017】 次に、数値キー1aを操作して数値「3」を置数すると、ステップS2からステ ップS3に進む。ステップS3では回数レジスタXの内容が「0」なのでステップ S4に進む。ステップS4においては、置数データ「3」を式メモリ3のレジスタ aに記憶させてステップS1に戻る。Next, when the numerical key 1a is operated to enter the numerical value "3", the process proceeds from step S2 to step S3. In step S3, since the content of the frequency register X is "0", the process proceeds to step S4. In step S4, the numerical data "3" is stored in the register a of the expression memory 3, and the process returns to step S1.

【0018】 1回目の「a b/c」キー1cを入力すると、ステップS2ではNO、ステ ップS5でYESと判断されてステップS6に進む。ステップS6では回数レジ スタXの内容は「0」なのでNOと判断されてステップS7に進む。ステップS7 では回数レジスタXの内容が+1されて「1」となる。ステップS7の実行後はス テップS1に戻る。数値「1」を置数すると、ステップS2からステップS3に進 む。ステップS3では回数レジスタXの内容が「1」なのでステップS8に進む。 ステップS8においては、置数データ「1」を式メモリ3のレジスタbに記憶させ てステップS1に戻る。When the "ab / c" key 1c is input for the first time, NO is determined in step S2, YES is determined in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "0", it is determined to be NO and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "1". After execution of step S7, the process returns to step S1. When the numerical value "1" is entered, the process proceeds from step S2 to step S3. In step S3, the content of the frequency register X is "1", so the flow proceeds to step S8. In step S8, the numerical data "1" is stored in the register b of the expression memory 3, and the process returns to step S1.

【0019】 2回目の「a b/c」キー1cを入力すると、ステップS2ではNO、ステ ップS5でYESと判断されてステップS6に進む。ステップS6では回数レジ スタXの内容は「1」なのでNOと判断されてステップS7に進む。ステップS7 では回数レジスタXの内容が+1されて「2」となり、ステップS1に戻る。数値「 4」を置数すると、ステップS2からステップS3に進む。ステップS3では回 数レジスタXの内容が「2」なのでステップS9に進む。ステップS9においては 、置数データ「4」を式メモリ3のレジスタcに記憶させてステップS1に戻る。 最後に、「=」キー1dを入力すると、ステップS2,S5,S10で夫々NO と判断されてステップS17に進む。ステップS17では入力されたキーが「=」 キー1dか否かが判断される。ステップS17でYESと判断された場合はステ ップS18に進み、NOの場合はステップS22の他の処理に進む。いま、「=」 キー1dを入力したので、ステップS17からステップS18に進む。When the "ab / c" key 1c is input for the second time, it is determined to be NO in step S2 and YES in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "1", the determination is NO and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "2", and the process returns to step S1. When the numerical value "4" is entered, the process proceeds from step S2 to step S3. In step S3, since the content of the frequency register X is "2", the process proceeds to step S9. In step S9, the numeral data "4" is stored in the register c of the expression memory 3, and the process returns to step S1. Finally, when the "=" key 1d is pressed, NO is determined in steps S2, S5 and S10, and the process proceeds to step S17. In step S17, it is determined whether or not the input key is the "=" key 1d. If YES is determined in the step S17, the process proceeds to a step S18, and if NO is determined, the process proceeds to another process of the step S22. Now that the "=" key 1d has been entered, the operation proceeds from step S17 to step S18.

【0020】 ステップS18においては仮分数フラグF1 のみ「1」がセットされているか否 かが判断される。ステップS18でYESと判断されるとステップS21に進み 、NOと判断されるとステップS19に進む。いま、帯分数分数F2 がセットさ れているので、ステップS18でNOと判断されてステップS19に進む。In step S18, it is determined whether only the improper fraction flag F 1 is set to "1". If YES is determined in step S18, the process proceeds to step S21, and if NO is determined, the process proceeds to step S19. Since the mixed fraction F 2 has been set, it is determined NO in step S18 and the process proceeds to step S19.

【0021】 ステップS19では分数演算が実行されて、分数演算の結果が帯分数表示され る。ステップS19の実行後は図5の処理を終了する。従って、結果表示は図2 に示すように“5」9」20”という帯分数形式で表示される。In step S19, fractional calculation is executed, and the result of the fractional calculation is displayed in mixed fraction. After the execution of step S19, the process of FIG. 5 ends. Therefore, the result display is displayed in a mixed number format of "5" 9 "20" as shown in FIG.

【0022】 (2)仮分数のみの分数式を計算する場合 次に、図3に示すような仮分数のみの分数式を計算する場合を説明する。この 場合、「AC」キー1eを操作して仮分数フラグF1 、帯分数フラグF2 、回数 レジスタXをクリアする。初めに、数値キー1aを操作して数値「11」を置数す ると、上述と同様に、ステップS2からステップS3に進む。ステップS3では 回数レジスタXの内容が「0」なのでステップS4に進む。ステップS4において は、置数データ「11」をレジスタaに記憶させてステップS1に戻る。(2) Calculation of Fractional Expressions Only of Improper Fractions Next, a case of calculating a fractional expression of only improper fractions as shown in FIG. 3 will be described. In this case, the "AC" key 1e is operated to clear the improper fraction flag F 1 , the mixed fraction flag F 2 , and the count register X. First, when the numerical key 1a is operated to enter the numerical value "11", the process proceeds from step S2 to step S3 in the same manner as described above. In step S3, since the content of the frequency register X is "0", the process proceeds to step S4. In step S4, the numerical data "11" is stored in the register a, and the process returns to step S1.

【0023】 1回目の「a b/c」キー1cを入力すると、ステップS2ではNO、ステ ップS5でYESと判断されてステップS6に進む。ステップS6では回数レジ スタXの内容は「0」なのでNOと判断されてステップS7に進む。ステップS7 では回数レジスタXの内容が+1されて「1」となる。ステップS7の実行後はス テップS1に戻る。数値キー1aを操作して数値「5」を置数すると、ステップS 2からステップS3に進む。ステップS3では回数レジスタXの内容が「1」なの でステップS8に進む。ステップS8においては、置数データ「5」を式メモリ3 のレジスタbに記憶させてステップS1に戻る。When the "ab / c" key 1c is input for the first time, NO is determined in step S2, YES is determined in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "0", it is determined to be NO and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "1". After execution of step S7, the process returns to step S1. When the numerical key 1a is operated to enter the numerical value "5", the process proceeds from step S2 to step S3. At step S3, since the content of the frequency register X is "1", the process proceeds to step S8. In step S8, the numerical data "5" is stored in the register b of the expression memory 3 and the process returns to step S1.

【0024】 ファンクションキー1bを操作して演算子「+」を入力すると、上述と同様に、 ステップS2,S5で夫々NO、ステップS10でYESと判断されてステップ S11に進む。ステップS11においては演算子「+」の演算子コードが式メモリ 3の演算子レジスタに記憶され、ステップS12では回数レジスタXの内容が「 1」か否かが判断される。いま、回数レジスタXの内容は「1」なのでYESと判 断されてステップS20に進む。ステップS20においては仮分数フラグF1 に「 1」がセットされる。ステップS20からはステップS14に進む。ステップS 14では、上述と同様に、レジスタa、レジスタbに記憶された置数データは約 分演算処理され、ステップS15において夫々レジスタA、レジスタBにシフト される。次のステップS16においては回数レジスタXに「0」が書き込まれてク リアされ、ステップS1に戻る。When the operator "+" is input by operating the function key 1b, similarly to the above, NO is determined in steps S2 and S5, YES is determined in step S10, and the process proceeds to step S11. In step S11, the operator code of the operator "+" is stored in the operator register of the expression memory 3, and in step S12, it is determined whether or not the content of the frequency register X is "1". Since the content of the frequency register X is "1", the determination is YES and the process proceeds to step S20. In step S20, the improper fraction flag F 1 is set to "1". The process proceeds from step S20 to step S14. In step S14, as in the above, the numerical data stored in the registers a and b are subjected to the fractional arithmetic processing, and are shifted to the register A and the register B respectively in step S15. In the next step S16, "0" is written and cleared in the number register X, and the process returns to step S1.

【0025】 次に、数値キー1aを操作して数値「13」を置数すると、ステップS2からス テップS3に進む。ステップS3では回数レジスタXの内容が「0」なのでステッ プS4に進む。ステップS4においては、置数データ「13」をレジスタaに記憶 させてステップS1に戻る。Next, when the numerical key 1a is operated to enter the numerical value "13", the process proceeds from step S2 to step S3. At step S3, since the content of the frequency register X is "0", the process proceeds to step S4. In step S4, the register data "13" is stored in the register a, and the process returns to step S1.

【0026】 1回目の「a b/c」キー1cを入力すると、ステップS2ではNO、ステ ップS5でYESと判断されてステップS6に進む。ステップS6では回数レジ スタXの内容は「0」なのでNOと判断されてステップS7に進む。ステップS7 では回数レジスタXの内容が+1されて「1」となる。ステップS7の実行後はス テップS1に戻る。数値「4」を置数すると、ステップS2からステップS3に進 む。ステップS3では回数レジスタXの内容が「1」なのでステップS8に進む。 ステップS8においては、置数データ「4」を式メモリ3のレジスタbに記憶させ てステップS1に戻る。When the "ab / c" key 1c is input for the first time, NO is determined in step S2, YES is determined in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "0", it is determined to be NO and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "1". After execution of step S7, the process returns to step S1. When the numerical value "4" is entered, the process proceeds from step S2 to step S3. In step S3, the content of the frequency register X is "1", so the flow proceeds to step S8. In step S8, the numerical data "4" is stored in the register b of the expression memory 3, and the process returns to step S1.

【0027】 最後に、「=」キー1dを入力すると、ステップS2,S5,S10で夫々NO と判断され、ステップS17でYESと判断されてステップS18に進む。ステ ップS18においては仮分数フラグF1 のみ「1」がセットされているか否かが判 断される。いま、仮分数フラグF1 にのみ「1」がセットされているので、YES と判断されてステップS21に進む。ステップS21では分数演算が実行されて 、分数演算の結果が仮分数表示される。ステップS21の実行後は図5の処理を 終了する。従って、結果表示は図3に示すように“109」20”という仮分数 形式で表示される。Finally, when the "=" key 1d is input, NO is determined in steps S2, S5 and S10, YES is determined in step S17, and the process proceeds to step S18. At step S18, it is judged whether only the improper fraction flag F 1 is set to "1". Since only the improper fraction flag F 1 is set to "1", YES is determined and the process proceeds to step S21. In step S21, a fractional calculation is executed, and the result of the fractional calculation is displayed in an improper fraction. After execution of step S21, the process of FIG. 5 is terminated. Therefore, the result display is displayed in the improper fraction format of "109" 20 "as shown in FIG.

【0028】 (3)仮分数と帯分数の両方を含む分数式を計算する場合 次に、図4に示すような仮分数と帯分数の両方を含む分数式を計算する場合を 説明する。この場合、「AC」キー1eを操作して仮分数フラグF1 、帯分数フ ラグF2 、回数レジスタXをクリアする。初めに、数値キー1aを操作して数値「 11」を置数すると、上述と同様に、ステップS2からステップS3に進む。ス テップS3では回数レジスタXの内容が「0」なのでステップS4に進む。ステッ プS4においては、置数データ「11」をレジスタaに記憶させてステップS1に 戻る。(3) Calculating a Fractional Mathematical Formula Including Both Improper Fraction and Mixed Number Next, a case of calculating a fractional formula including both improper fraction and mixed number as shown in FIG. In this case, the "AC" key 1e is operated to clear the improper fraction flag F 1 , the mixed fraction flag F 2 , and the count register X. First, when the numerical key 1a is operated to enter the numerical value "11", the process proceeds from step S2 to step S3 in the same manner as described above. At step S3, the content of the frequency register X is "0", so the routine proceeds to step S4. In step S4, the numeral data "11" is stored in the register a and the process returns to step S1.

【0029】 1回目の「a b/c」キー1cを入力すると、ステップS2ではNO、ステ ップS5でYESと判断されてステップS6に進む。ステップS6では回数レジ スタXの内容は「0」なのでNOと判断されてステップS7に進む。ステップS7 では回数レジスタXの内容が+1されて「1」となる。ステップS7の実行後はス テップS1に戻る。数値「5」を置数すると、ステップS2からステップS3に進 む。ステップS3では回数レジスタXの内容が「1」なのでステップS8に進む。 ステップS8においては、置数データ「5」を式メモリ3のレジスタbに記憶させ てステップS1に戻る。When the "ab / c" key 1c is input for the first time, NO is determined in step S2, YES is determined in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "0", it is determined to be NO and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "1". After execution of step S7, the process returns to step S1. When the numerical value "5" is entered, the process proceeds from step S2 to step S3. In step S3, the content of the frequency register X is "1", so the flow proceeds to step S8. In step S8, the numerical data "5" is stored in the register b of the expression memory 3, and the process returns to step S1.

【0030】 演算子「+」を入力すると、上述と同様に、ステップS2,S5で夫々NO、ス テップS10でYESと判断されてステップS11に進む。ステップS11にお いては演算子「+」の演算子コードが式メモリ3の演算子レジスタに記憶され、ス テップS12では回数レジスタXの内容が「1」か否かが判断される。いま、回数 レジスタXの内容は「1」なのでYESと判断されてステップS20に進む。ステ ップS20においては仮分数フラグF1 に「1」がセットされる。ステップS20 からはステップS14に進む。ステップS14では、上述と同様に、レジスタa 、レジスタbに記憶された置数データは約分処理されて、ステップS15におい て夫々レジスタA、レジスタBにシフトされる。次のステップS16においては 回数レジスタXに「0」が書き込まれてクリアされ、ステップS1に戻る。When the operator “+” is input, similarly to the above, NO is determined in steps S2 and S5, respectively, and YES is determined in step S10, and the process proceeds to step S11. In step S11, the operator code of the operator "+" is stored in the operator register of the expression memory 3, and in step S12, it is determined whether or not the content of the frequency register X is "1". Since the content of the frequency register X is "1", it is determined to be YES and the process proceeds to step S20. At step S20, the improper fraction flag F 1 is set to "1". The process proceeds from step S20 to step S14. In step S14, similarly to the above, the numerical data stored in the registers a 1 and b 2 is reduced and shifted to the registers A and B in step S15, respectively. In the next step S16, "0" is written and cleared in the frequency register X, and the process returns to step S1.

【0031】 数値「3」を置数すると、ステップS2からステップS3に進む。ステップS3 では回数レジスタXの内容が「0」なのでステップS4に進む。ステップS4にお いては、置数データ「3」を式メモリ3のレジスタaに記憶させてステップS1に 戻る。1回目の「a b/c」キー1cを入力すると、ステップS2ではNO、 ステップS5でYESと判断されてステップS6に進む。ステップS6では回数 レジスタXの内容は「0」なのでNOと判断されてステップS7に進む。ステップ S7では回数レジスタXの内容が+1されて「1」となる。ステップS7の実行後 はステップS1に戻る。When the numerical value “3” is entered, the process proceeds from step S2 to step S3. In step S3, the content of the frequency register X is "0", so the flow proceeds to step S4. In step S4, the numerical data "3" is stored in the register a of the expression memory 3, and the process returns to step S1. When the "ab / c" key 1c for the first time is input, NO is determined in step S2, YES is determined in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "0", the determination is NO, and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "1". After execution of step S7, the process returns to step S1.

【0032】 数値「1」を置数すると、ステップS2からステップS3に進む。ステップS3 では回数レジスタXの内容が「1」なのでステップS8に進む。ステップS8にお いては、置数データ「1」を式メモリ3のレジスタbに記憶させてステップS1に 戻る。2回目の「a b/c」キー1cを入力する。これにより、ステップS2 ではNO、ステップS5でYESと判断されてステップS6に進む。ステップS 6では回数レジスタXの内容は「1」なのでNOと判断されてステップS7に進む 。ステップS7では回数レジスタXの内容が+1されて「2」となり、ステップS 1に戻る。数値「4」を置数すると、ステップS2からステップS3に進む。ステ ップS3では回数レジスタXの内容が「2」なのでステップS9に進む。ステップ S9においては、置数データ「4」を式メモリ3のレジスタcに記憶させてステッ プS1に戻る。When the numerical value “1” is entered, the process proceeds from step S2 to step S3. In step S3, since the content of the frequency register X is "1", the process proceeds to step S8. In step S8, the numerical data "1" is stored in the register b of the expression memory 3, and the process returns to step S1. Press the "ab / c" key 1c for the second time. As a result, NO is determined in step S2, YES is determined in step S5, and the process proceeds to step S6. In step S6, since the content of the frequency register X is "1", it is determined to be NO and the process proceeds to step S7. In step S7, the content of the frequency register X is incremented by 1 to become "2", and the process returns to step S1. When the numerical value "4" is entered, the process proceeds from step S2 to step S3. At step S3, the content of the frequency register X is "2", so the routine proceeds to step S9. In step S9, the numerical data "4" is stored in the register c of the expression memory 3 and the process returns to step S1.

【0033】 最後に、「=」キー1dを入力すると、ステップS2,S5,S10で夫々NO と判断され、ステップS17でYESと判断されてステップS18に進む。ステ ップS18においては仮分数フラグF1 のみ「1」がセットされているか否かが判 断される。いま、仮分数フラグF1 にのみ「1」がセットされているので、YES と判断されてステップS21に進む。ステップS21では分数演算が実行されて 、分数演算の結果が仮分数表示される。ステップS21の実行後は図5の処理を 終了する。従って、結果表示は図4に示すように“109」20”という仮分数 形式で表示される。Finally, when the “=” key 1d is input, NO is determined in steps S2, S5, and S10, YES is determined in step S17, and the process proceeds to step S18. At step S18, it is judged whether only the improper fraction flag F 1 is set to "1". Since only the improper fraction flag F 1 is set to "1", YES is determined and the process proceeds to step S21. In step S21, a fractional calculation is executed, and the result of the fractional calculation is displayed in an improper fraction. After execution of step S21, the process of FIG. 5 is terminated. Therefore, the result display is displayed in the improper fraction format of "109" 20 "as shown in FIG.

【0034】[0034]

【考案の効果】[Effect of the device]

この考案によれば、操作者の意向を推測し、分数計算の出力の際に置数された 分数の形式と同じ形式で分数計算の計算結果を表示するようにしたので、表示さ れた計算結果の変換動作が不要になり、操作性が向上するという効果がある。 According to this invention, the operator's intention is guessed, and the calculation result of the fractional calculation is displayed in the same format as the fractional number that was registered when outputting the fractional calculation. There is an effect that the conversion operation of the result becomes unnecessary and the operability is improved.

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

【図1】小型電子式計算機の回路構成を示すブロック図
である。
FIG. 1 is a block diagram showing a circuit configuration of a small electronic calculator.

【図2】分数式、キー操作、および結果表示の例を示す
図である。
FIG. 2 is a diagram showing examples of fractional expressions, key operations, and result display.

【図3】分数式、キー操作、および結果表示の例を示す
図である。
FIG. 3 is a diagram showing examples of fractional expressions, key operations, and result display.

【図4】分数式、キー操作、および結果表示の例を示す
図である。
FIG. 4 is a diagram showing examples of fractional expressions, key operations, and result display.

【図5】動作を示すフローチャートである。FIG. 5 is a flowchart showing an operation.

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

1…キー入力部 2…CPU 3…式メモリ 4…表示部 1 ... Key input unit 2 ... CPU 3 ... Formula memory 4 ... Display unit

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】 分数計算ができる小型電子式計算機にお
いて、分数式を入力するための特定キーを有する入力手
段と、上記特定キーの操作回数を記憶する記憶手段と、
分数表示が可能な表示手段と、上記記憶手段に記憶され
た上記特定キーの操作回数に応じて入力された分数式が
仮分数か帯分数かを判断する判断手段と、この判断手段
の判断結果に応じて分数計算の結果を上記表示手段に仮
分数表示または帯分数表示させる表示制御手段とを具備
したことを特徴とする小型電子式計算機。
1. A compact electronic computer capable of calculating a fraction, an input means having a specific key for inputting a fractional expression, and a storage means for storing the number of times of operation of the specific key.
Display means capable of displaying a fraction, judging means for judging whether a fractional expression inputted according to the number of times of operation of the specific key stored in the storing means is an improper fraction or a mixed fraction, and a judgment result of this judging means And a display control means for displaying the result of the fraction calculation on the display means according to the provisional fraction display or mixed fraction display.
JP10686191U 1991-12-25 1991-12-25 Small electronic calculator Pending JPH0555245U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10686191U JPH0555245U (en) 1991-12-25 1991-12-25 Small electronic calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10686191U JPH0555245U (en) 1991-12-25 1991-12-25 Small electronic calculator

Publications (1)

Publication Number Publication Date
JPH0555245U true JPH0555245U (en) 1993-07-23

Family

ID=14444355

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10686191U Pending JPH0555245U (en) 1991-12-25 1991-12-25 Small electronic calculator

Country Status (1)

Country Link
JP (1) JPH0555245U (en)

Similar Documents

Publication Publication Date Title
WO1989002114A1 (en) Data processing system
JP2856600B2 (en) Scientific calculator
JP2981769B2 (en) Waveform display device
JPH0555245U (en) Small electronic calculator
JP3252493B2 (en) Electronic calculator and its calculation processing method
US6865586B2 (en) Calculator capable of recovering cleared values
JP3498323B2 (en) Electronic calculator and arithmetic processing method
JPS642179Y2 (en)
JPH05324565A (en) Electronic desk calculator
US4651295A (en) Electronic desk-top calculator
JP3521919B2 (en) Calculator and fraction input and display method in calculator
JPH021627Y2 (en)
JPS6339783Y2 (en)
JPH0441397Y2 (en)
JPH07306834A (en) Electronic computer
JPH054043Y2 (en)
JPH0555246U (en) Small electronic calculator
JPH0612377A (en) Small-sized electronic computer with process capacity index calculating function
JPS6145550Y2 (en)
JPS5940665Y2 (en) Power calculation control device
JPH0512953U (en) Small electronic calculator
JPH02176849A (en) Electronic calculator
JPH0555244U (en) Small electronic calculator
JPH0693236B2 (en) Small electronic calculator
JPH0555247U (en) Small electronic calculator