JP2006126933A - Computer equipped with error announcing function and its method - Google Patents
Computer equipped with error announcing function and its method Download PDFInfo
- Publication number
- JP2006126933A JP2006126933A JP2004310999A JP2004310999A JP2006126933A JP 2006126933 A JP2006126933 A JP 2006126933A JP 2004310999 A JP2004310999 A JP 2004310999A JP 2004310999 A JP2004310999 A JP 2004310999A JP 2006126933 A JP2006126933 A JP 2006126933A
- Authority
- JP
- Japan
- Prior art keywords
- arithmetic
- arithmetic expression
- calculation
- error
- unit
- 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
Links
Images
Abstract
Description
本発明は演算用の電子製品に係り,特にエラー告知機能を具えた計算機及びその方法に関する。 The present invention relates to an electronic product for calculation, and more particularly to a computer having an error notification function and a method thereof.
電子テクノロジーの進歩に伴い、計算機は次第に以前のペンと紙を使用する人工算数方式の代わりに用いられるようになり、それは、加減乗除の基本演算機能のほか、更に複雑な数学演算機能、例えば三角関数とハイレベル演算等を提供し、使用者が迅速に簡単な演算式の数値或いは複雑な高等数学演算式の数値を計算できるようにする。 With the advance of electronic technology, computers are gradually being used instead of the previous artificial arithmetic method using pen and paper, which includes basic arithmetic functions for addition, subtraction, multiplication and division as well as more complex mathematical arithmetic functions such as triangles. Functions and high-level operations are provided so that the user can quickly calculate simple arithmetic numerical values or complex higher mathematical arithmetic numerical values.
しかし,計算機を使用する時、経常的に演算式中に計算機が受け入れることのできない数値、例えば除数が「0」とされたり、不当な関数パラメータ、或いは演算の結果値の桁数が過大で桁数オーバーが形成される。これにより計算機にエラーの情報が発生し、並びに苦労して入力した演算式が失われてしまうことがある。このほか、使用者はただエラー情報を入力するだけで演算過程にエラーが出現したことを知る事ができるが、却って入力した演算式のどこが間違っているのかを察知することができず、このため、使用上のトラブルと不便を形成し、ゆえに前述の計算機には改善の余地がある。 However, when using a computer, a numerical value that is not normally accepted by the computer in an arithmetic expression, for example, a divisor is set to “0”, an invalid function parameter, or the number of digits of the result value of an operation is excessive. A number over is formed. As a result, error information may be generated in the computer, and arithmetic expressions that have been input with difficulty may be lost. In addition to this, the user can know that an error has occurred in the calculation process just by entering error information, but it cannot detect where the calculation formula entered on the contrary is wrong. This creates troubles and inconveniences in use, so there is room for improvement in the aforementioned computer.
本発明の主要な目的は、不当な演算式を入力することによりエラーが形成される時、機器の運転停止と使用者が改めて演算式を入力しなければならなくなる不便を防止するエラー告知機能を具えた計算機及びその方法を提供することにある。 The main object of the present invention is to provide an error notification function for preventing an inconvenience that an operation is stopped and a user has to input an arithmetic expression again when an error is formed by inputting an illegal arithmetic expression. It is to provide a provided computer and a method thereof.
請求項1の発明は、エラー告知機能を具えた計算機において、
複数の演算ユニットで組成された演算式の入力に用いられる入力ユニットと、
該演算式を保存する保存ユニットと、
演算エラーを形成する複数の演算規則を保存する規則ユニットと、
入力された演算式及びその演算結果を表示する表示ユニットと、
入力された該演算式を実行する処理ユニットと、
を具え、そのうち、該処理ユニットは入力された該演算式を実行する前に、該演算式と規則ユニット中の演算規則を比較して該演算式のエラー部分を探し出し、並びに註記し、且つ註記したエラー部分により表示された演算式中のエラー部分を表示することを特徴とする、エラー告知機能を具えた計算機としている。
請求項2の発明は、請求項1記載のエラー告知機能を具えた計算機において、処理ユニットが演算式を実行する時には、まず演算式中より演算単位を取り出し並びにそれを註記し、更に該演算単位に対して演算を実行し、演算結果の数値が処理ユニットの許容する桁数を超過する時、処理ユニットが註記の目標演算単位により演算式中の桁数オーバーの部分を表示することを特徴とする、エラー告知機能を具えた計算機としている。
請求項3の発明は、エラー告知機能を具えた計算機の演算方法において、
(A)複数の演算単位で組成された演算式を入力するステップと、
(B)該演算式を暫時保存するステップと、
(C)該演算式と演算エラーを形成する所定の複数の演算規則を比較し、該演算式中のエラー部分を探し出すステップと、
(D)エラー部分を暫時保存された演算式に註記するステップと、
(E)演算式を表示し並びに註記されたエラー部分により表示した演算式中のエラー部分を表示するステップと、
を具えたことを特徴とする、エラー告知機能を具えた計算機の演算方法としている。
請求項4の発明は、請求項3記載のエラー告知機能を具えた計算機の演算方法において、(C)のステップで演算式中のエラー部分が見つからず入力された演算式が正確であると確定した時は、更に、
(G)演算式中より演算を行なう目標演算単位を取り出すステップと、
(H)これら目標演算単位を暫時保存した演算式に註記するステップと、
(I)目標演算単位に対して演算を実行し、そのうち、演算結果の数値が許容桁数を超過する時、演算式を表示し並びに註記された目標演算単位により表示された演算式中の註記された目標演算単位を表示するステップと、
を実行することを特徴とする、エラー告知機能を具えた計算機の演算方法としている。
The invention of claim 1 is a computer having an error notification function.
An input unit used to input an arithmetic expression composed of a plurality of arithmetic units;
A storage unit for storing the arithmetic expression;
A rule unit for storing a plurality of calculation rules forming an operation error;
A display unit for displaying the input arithmetic expression and the operation result;
A processing unit for executing the input arithmetic expression;
Of which the processing unit compares the arithmetic expression with the arithmetic rule in the rule unit to find out an error part of the arithmetic expression before writing the input arithmetic expression. The computer having the error notification function is characterized in that the error part in the arithmetic expression displayed by the error part is displayed.
The invention according to claim 2 is the computer having the error notification function according to claim 1, wherein when the processing unit executes the arithmetic expression, the arithmetic unit is first taken out from the arithmetic expression and written, and the arithmetic unit is further recorded. When the number of digits of the calculation result exceeds the number of digits allowed by the processing unit, the processing unit displays the part of the number of digits in the calculation formula with the target calculation unit described above. The computer has an error notification function.
The invention of claim 3 is an operation method of a computer having an error notification function.
(A) inputting an arithmetic expression composed of a plurality of arithmetic units;
(B) storing the arithmetic expression for a while;
(C) comparing the arithmetic expression with a predetermined plurality of arithmetic rules forming an arithmetic error, and searching for an error part in the arithmetic expression;
(D) writing the error part in the arithmetic expression stored for a while;
(E) displaying an arithmetic expression and displaying an error part in the arithmetic expression displayed by the error part marked;
This is a calculation method of a computer having an error notification function.
According to a fourth aspect of the present invention, in the calculation method of the computer having the error notification function according to the third aspect, in step (C), an error is not found in the arithmetic expression, and the input arithmetic expression is determined to be accurate. When you do,
(G) extracting a target calculation unit for calculation from the calculation formula;
(H) Steps to record these target calculation units in a calculation expression stored for a while;
(I) When a calculation is performed on the target calculation unit, and the numerical value of the calculation result exceeds the allowable number of digits, the calculation expression is displayed and the note in the calculation expression displayed by the target calculation unit indicated. Displaying the calculated target calculation unit;
This is a calculation method of a computer having an error notification function.
本発明によると、エラー告知機能を具えた計算機は、複数の演算単位で組成された演算式の入力に用いられる入力ユニットと、該演算式を保存する保存ユニットと、演算エラーを形成する複数の演算規則を保存する規則ユニットと、入力された演算式及びその演算結果を表示する表示ユニットと、入力された該演算式を実行する処理ユニットと、を具え、そのうち、該処理ユニットは入力された該演算式を実行する前に、該演算式と規則ユニット中の演算規則を比較して該演算式のエラー部分を探し出し、並びに註記し、且つ註記したエラー部分により表示された演算式中のエラー部分を表示する。 According to the present invention, a computer having an error notification function includes an input unit used for inputting an arithmetic expression composed of a plurality of arithmetic units, a storage unit for storing the arithmetic expression, and a plurality of arithmetic errors. A rule unit for storing an operation rule; a display unit for displaying an input operation expression and its operation result; and a processing unit for executing the input operation expression, of which the processing unit is input Before executing the arithmetic expression, the arithmetic expression is compared with the arithmetic rules in the rule unit to find the error part of the arithmetic expression, and the error in the arithmetic expression displayed by the written error part Display the part.
本発明によると、エラー告知機能を具えた計算機の演算方法は、(A)複数の演算単位で組成された演算式を入力するステップと、(B)該演算式を暫時保存するステップと、(C)該演算式と演算エラーを形成する所定の複数の演算規則を比較し、該演算式中のエラー部分を探し出すステップと、(D)エラー部分を暫時保存された演算式に註記するステップと、(E)演算式を表示し並びに註記されたエラー部分により表示した演算式中のエラー部分を表示するステップと、を具えている。 According to the present invention, a calculation method of a computer having an error notification function includes (A) a step of inputting a calculation formula composed of a plurality of calculation units, (B) a step of temporarily storing the calculation formula, C) comparing the arithmetic expression with a predetermined plurality of arithmetic rules forming an arithmetic error, searching for an error part in the arithmetic expression, and (D) recording the error part in the arithmetic expression stored for a while. And (E) displaying an arithmetic expression and displaying an error part in the arithmetic expression displayed by the error part marked.
本発明のエラー告知機能を具えた計算機については、図1のブロック図を参照されたい。それは、入力ユニット11、保存ユニット12、演算式規則ユニット13、表示ユニット14及び処理ユニット15を具えている。そのうち、前述の入力ユニット11は使用者がデータ或いは制御命令を計算機に入力して操作或いは演算を行なうのに用いられ、例えば、入力ユニット11により演算式を入力して処理ユニット15により実行できる。前述の演算式は、演算元、演算子、関数、或いはパラメータ等の演算単位で組成され、前述の保存ユニット12は計算機の制御プログラムを保存し入力された演算式、演算過程の数値及び演算結果等のデータを暫時保存し、前述の表示ユニット14は計算機の出力データを表示し、該出力データは入力された演算式及び演算結果を包含する。
Refer to the block diagram of FIG. 1 for the computer having the error notification function of the present invention. It comprises an
前述の演算式規則ユニット13は演算エラーを形成する複数の演算規則、例えば以下のような規則即ち、〔規則1〕除数が0即ち演算式中に「/0」が出現;〔規則2〕括弧不対称:演算式中の左括弧と右括弧の数が異なる;〔規則3〕不当な関数パラメータ即ち演算式中の関数のパラメータが該関数が演算できるタイプでない(例えばsin(45+A)中、Aが変数であり数値でない)、を保存する。この演算式規則ユニット13の提供する演算エラーを形成する演算規則により、使用者が入力した演算式と各規則を比較し、演算式エラー部分を探し出し並びに使用者に告知する。
The arithmetic
図2は前述のエラー告知機能を具えた計算機の制御フローチャートであり、まず、使用者が入力ユニット11で演算式をキー入力する(ステップS201)。続いて、使用者がエンター(ENTER)キーを押して該演算式の入力を確定する(ステップS202)。この入力した演算式を保存ユニット12に暫時保存する(ステップS203)。 FIG. 2 is a control flowchart of the computer having the above-described error notification function. First, the user inputs an arithmetic expression using the input unit 11 (step S201). Subsequently, the user presses the enter key to confirm the input of the arithmetic expression (step S202). The inputted arithmetic expression is temporarily stored in the storage unit 12 (step S203).
ステップS204では、処理ユニット15が該演算式を前述の演算式規則ユニット13中の規則と比較し、該演算式中のエラー部分を探し出し、並びにこのエラー部分を保存ユニット12に保存した演算式に註記する。そのうち、入力した演算式にエラー部分がある時、処理ユニット15はエラー情報を表示ユニット14上に表示する(ステップS205)。更に保存ユニット12に暫時保存された演算式を取り出し(ステップS206)、並びに註記されたエラー部分により、表示された演算式中にエラー部分を表示し(ステップS207)、使用者に演算式エラーを形成する部分を知らせる。このほか、処理ユニット15は演算式規則ユニット13中の規則により改修方式の提示を提供し(ステップS209)、改修完成後に更にエンター(ENTER)キーを押せば、改めて該演算式を実行する。
In step S204, the
ステップS204で演算式と演算式規則ユニット13中の規則を比較して入力した演算式が正確であると確定した時、処理ユニット15は該演算式の実行開始し、それはまず演算式中より演算元、演算子、関数、或いはパラメータ等を包含する演算を行ないたい目標演算単位を取り出す(ステップS211)。同時にこの目標演算単位を保存ユニット12に暫時保存された演算式に註記する(ステップS212)。更に目標演算単位に対して実際に演算を実行する(ステップS213)。この演算中、もし演算結果の数値が処理ユニット15の許容する桁数を超過すれば(ステップS214)、ステップS205からS209を実行し、エラー情報を表示ユニット14に表示し(ステップ205)、並びに保存ユニット12より暫時保存された演算式を取り出し(ステップ206)、且つ註記された目標演算単位により表示された演算式中に桁オーバーを形成する部分を表示し(ステップS207)、並びに改修方式を提示し(ステップS208)、最後に使用者が入力ユニット11により改修を行ない(ステップS209)、その後、エンター(ENTER)キーを押して改めて該演算式を実行し、更に上述の演算ステップを重複して行なう。
In step S204, when the arithmetic expression and the rule in the arithmetic
前述のステップS214のように演算結果の数値を判定し並びに処理ユニット15の許容する桁数を未超過であれば、続いてステップS211からS213を実行し、演算が完成すると結果を表示ユニット14に表示する。
As in step S214 described above, the numerical value of the calculation result is determined, and if the number of digits allowed by the
図3は本発明のエラー告知機能を具えた計算機に演算式を入力して演算を行なう例を示す。そのうち、使用者がキー入力する演算式は、((10+8)/0)×(4+9)である。使用者がエンターキーを押した後、処理ユニット15が演算式と演算式規則ユニット13中の規則を比較し、演算式に「/0」のエラーがあると発見すると、それを註記し、同時に表示ユニット14上にエラー情報を表示する(図3中のB)。処理ユニット15は更に註記により演算式中にあって白黒反転或いはちらつき方式で「/0」の部分を表示し(図3のC)並びに改修方式を提示する(図3のD)。更に使用者は入力ユニット11により改修を行ない(図3のE)、改修完成後に更に使用者がエンターキーを押すと改めて演算式を実行して正確な結果を得る(図3のF)。
FIG. 3 shows an example in which an arithmetic expression is input to a computer having an error notification function of the present invention to perform the calculation. Among them, the arithmetic expression that the user inputs is ((10 + 8) / 0) × (4 + 9). After the user presses the enter key, the
図4は本発明の別のエラー告知機能を具えた計算機の行なう演算の例である。そのうち、使用者が入力する演算式は99!/256(図4のA)である。使用者がエンターキーを押した後、処理ユニット15は演算式と演算式規則ユニット13中の規則を比較し、この演算式にエラーがないことを発見する。これにより演算式の実行開始し、まず目標演算単位「99」及び「!」を取り出し並びにこれを註記し、更に「99!」に対して実際に演算を実行し、演算結果の数値が処理ユニット15の許容の桁数を超過することから、表示ユニット14にエラー情報(図4のB)を表示する。処理ユニット15は更に註記により演算式中にあって白黒反転或いはちらつき方式で「99!」の部分を表示し(図4のC)、並びに改修方式を提示する(図4のD)。更に使用者が入力ユニット11により改修を行ない(図4のE)、改修完成後に更にエンターキーを押すと改めて該演算式を実行して正確な結果を獲得する(図4のF)。
FIG. 4 shows an example of a calculation performed by a computer having another error notification function of the present invention. Of these, 99 users can enter 99! / 256 (A in FIG. 4). After the user presses the enter key, the
以上の実施例は本発明を説明するために提示されたものであり、本発明の主張する権利請求範囲は特許請求の範囲の記載に準じ、上述の実施例に限定されるものではない。 The above embodiments have been presented to explain the present invention, and the scope of the claims claimed by the present invention is not limited to the above-described embodiments according to the description of the claims.
11 入力ユニット 12 保存ユニット 13 演算式規則ユニット
14 表示ユニット 15 処理ユニット
S201〜S214 ステップ
11
Claims (4)
複数の演算ユニットで組成された演算式の入力に用いられる入力ユニットと、
該演算式を保存する保存ユニットと、
演算エラーを形成する複数の演算規則を保存する規則ユニットと、
入力された演算式及びその演算結果を表示する表示ユニットと、
入力された該演算式を実行する処理ユニットと、
を具え、そのうち、該処理ユニットは入力された該演算式を実行する前に、該演算式と規則ユニット中の演算規則を比較して該演算式のエラー部分を探し出し、並びに註記し、且つ註記したエラー部分により表示された演算式中のエラー部分を表示することを特徴とする、エラー告知機能を具えた計算機。 In a computer with an error notification function,
An input unit used to input an arithmetic expression composed of a plurality of arithmetic units;
A storage unit for storing the arithmetic expression;
A rule unit for storing a plurality of calculation rules forming an operation error;
A display unit for displaying the input arithmetic expression and the operation result;
A processing unit for executing the input arithmetic expression;
Of which the processing unit compares the arithmetic expression with the arithmetic rule in the rule unit to find out an error part of the arithmetic expression before writing the input arithmetic expression. A computer having an error notification function, wherein an error part in an arithmetic expression displayed by the error part is displayed.
(A)複数の演算単位で組成された演算式を入力するステップと、
(B)該演算式を暫時保存するステップと、
(C)該演算式と演算エラーを形成する所定の複数の演算規則を比較し、該演算式中のエラー部分を探し出すステップと、
(D)エラー部分を暫時保存された演算式に註記するステップと、
(E)演算式を表示し並びに註記されたエラー部分により表示した演算式中のエラー部分を表示するステップと、
を具えたことを特徴とする、エラー告知機能を具えた計算機の演算方法。 In the calculation method of the computer with the error notification function,
(A) inputting an arithmetic expression composed of a plurality of arithmetic units;
(B) storing the arithmetic expression for a while;
(C) comparing the arithmetic expression with a predetermined plurality of arithmetic rules forming an arithmetic error, and searching for an error part in the arithmetic expression;
(D) writing the error part in the arithmetic expression stored for a while;
(E) displaying an arithmetic expression and displaying an error part in the arithmetic expression displayed by the error part marked;
An arithmetic method for a computer having an error notification function, characterized by comprising:
(G)演算式中より演算を行なう目標演算単位を取り出すステップと、
(H)これら目標演算単位を暫時保存した演算式に註記するステップと、
(I)目標演算単位に対して演算を実行し、そのうち、演算結果の数値が許容桁数を超過する時、演算式を表示し並びに註記された目標演算単位により表示された演算式中の註記された目標演算単位を表示するステップと、
を実行することを特徴とする、エラー告知機能を具えた計算機の演算方法。
In the calculation method of the computer having the error notification function according to claim 3, when the error part in the calculation formula is not found in step (C) and the input calculation formula is determined to be accurate,
(G) extracting a target calculation unit for calculation from the calculation formula;
(H) A step of recording these target calculation units in a calculation expression stored for a while;
(I) When a calculation is performed on the target calculation unit, and the numerical value of the calculation result exceeds the allowable number of digits, the calculation expression is displayed and the note in the calculation expression displayed by the target calculation unit indicated. Displaying the calculated target calculation unit;
The calculation method of the computer provided with the error notification function characterized by performing this.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004310999A JP2006126933A (en) | 2004-10-26 | 2004-10-26 | Computer equipped with error announcing function and its method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004310999A JP2006126933A (en) | 2004-10-26 | 2004-10-26 | Computer equipped with error announcing function and its method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006126933A true JP2006126933A (en) | 2006-05-18 |
Family
ID=36721663
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004310999A Pending JP2006126933A (en) | 2004-10-26 | 2004-10-26 | Computer equipped with error announcing function and its method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006126933A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013196280A (en) * | 2012-03-19 | 2013-09-30 | Casio Comput Co Ltd | Calculator and calculation program |
JP2014067390A (en) * | 2012-09-10 | 2014-04-17 | Casio Comput Co Ltd | Numerical expression display device, numerical expression display program and numerical expression display method |
-
2004
- 2004-10-26 JP JP2004310999A patent/JP2006126933A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013196280A (en) * | 2012-03-19 | 2013-09-30 | Casio Comput Co Ltd | Calculator and calculation program |
JP2014067390A (en) * | 2012-09-10 | 2014-04-17 | Casio Comput Co Ltd | Numerical expression display device, numerical expression display program and numerical expression display method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6237168B2 (en) | Information processing apparatus and information processing program | |
JPH06202850A (en) | Data processor | |
JP2004118727A (en) | Graphic display control device and program | |
CN107080942A (en) | Games window matched processing method and system based on Unity3D | |
JPWO2014061093A1 (en) | Screen creation device and screen creation method | |
JP2006126933A (en) | Computer equipped with error announcing function and its method | |
JP2009059256A (en) | Electronic device capable of drawing graph, and program | |
JP3508277B2 (en) | Electronic computer | |
CN113849071A (en) | Character string processing method and device | |
US5886910A (en) | Computer with a check function | |
JP2007287185A (en) | Matrix calculating device, and recording medium with matrix calculation processing program recorded thereon | |
JP4092810B2 (en) | Calculation display device and computer-readable recording medium recording program | |
JP3252493B2 (en) | Electronic calculator and its calculation processing method | |
JP5979212B2 (en) | Electronic equipment and programs | |
JP3786141B2 (en) | Electronic computer and verification control method | |
JP2001243421A (en) | Character processor and character processing method | |
JP2016192232A (en) | Electronic apparatus and program | |
JP2008176562A (en) | Electronic equipment and electronic equipment control program | |
JP4325591B2 (en) | Graph display device and graph display processing program | |
JP6759591B2 (en) | Electronic equipment and calculation processing programs | |
JP2009187492A (en) | Electronic equipment provided with arithmetic function and arithmetic processing program | |
JPH10222472A (en) | Device, method for electronic calculation and recording medium recording calculating processing program | |
JPH10105518A (en) | Electronic computation system, electronic computation method and recording medium | |
TWM621728U (en) | Hand-held detection and menu display electronic apparatus | |
JPH0335345A (en) | Compact electronic computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20061003 |
|
A977 | Report on retrieval |
Effective date: 20071031 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080226 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080522 |
|
A131 | Notification of reasons for refusal |
Effective date: 20080617 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A02 | Decision of refusal |
Effective date: 20081014 Free format text: JAPANESE INTERMEDIATE CODE: A02 |