JP3693262B2 - Electronic computer - Google Patents
Electronic computer Download PDFInfo
- Publication number
- JP3693262B2 JP3693262B2 JP05649095A JP5649095A JP3693262B2 JP 3693262 B2 JP3693262 B2 JP 3693262B2 JP 05649095 A JP05649095 A JP 05649095A JP 5649095 A JP5649095 A JP 5649095A JP 3693262 B2 JP3693262 B2 JP 3693262B2
- Authority
- JP
- Japan
- Prior art keywords
- rounding
- input
- instruction
- calculation
- key
- 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.)
- Expired - Fee Related
Links
Images
Description
【0001】
【産業上の利用分野】
本発明は、検算機能を備えた電子計算機に関するものである。
【0002】
【従来の技術】
電卓などの電子計算機には検算機能を備えたものがある。この種の電子計算機は、1回目の計算のキー入力操作および計算結果を記憶しておき、2回目に行われるキー入力操作および計算結果と1回目の計算のキー入力操作および計算結果とを比較し、差異がある場合に警告音などによって間違いを告知するようになっている。
【0003】
【発明が解決しようとする課題】
しかしながら上述した従来の電子計算機では、1回目と2回目のキー入力操作および計算結果を比較して計算が正しかったか否かが判断されるため、少数点以下の桁数を指定する桁数指定スイッチや、指定された桁の下1桁を四捨五入するか切り捨てるかを指定する丸めスイッチの設定が1回目と2回目とで異なっていても答えを出すまで入力者には分からない。そのため、1回目と2回目とで答が異なっていた場合には、桁数指定スイッチおよび丸めスイッチを操作して、丸め演算状態を設定し直してから2回目の入力操作を最初からやり直さなければならず、操作性が悪いという問題があった。
【0004】
本発明の目的は、上記従来技術の欠点を解消し、2回目の計算における丸め状態が1回目の計算のときと異なっている場合、そのことを直ちに入力者に知らせてその後の無駄なキー入力操作を防止できる操作性の良い電子計算機を提供することにある。
【0005】
【課題を解決するための手段】
上記目的を達成するために本発明の電子計算機は、
通常演算モードで入力された一連の数値及び演算命令を含む演算式データを記憶し、検算モードで新たに入力された演算式データと前記記憶された演算式データとを比較することで検算を行う検算機能を備えた電子計算機において、
演算式データを入力する入力手段と、
通常演算モードでこの入力手段により入力された演算式データに基づいて演算を実行する演算手段と、
この演算手段による演算の丸めを指示する丸め指示手段と、
この丸め指示手段によって指定された丸めで前記演算手段による演算結果を丸める丸め処理手段と、
前記丸め指示手段の丸め指示の状態と前記入力手段により入力された演算式データとを対応させて記憶する記憶手段と、
通常演算モードから検算モードに切り換えられた後、新たに入力された演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する検出手段と、
この検出手段により演算式データ及び丸め指示状態の少なくとも一方が一致していないと検出された際に不一致であることを示す報音を行う第1の報知手段と、
前記検出手段により少なくとも一方が一致していないと検出された場合において、この検出された不一致が丸め指示状態である際に、丸め指示状態が一致していないことを示す表示を行う第2の報知手段と、
を備えてなることを特徴としている(請求項1)。
【0006】
本発明の電子計算機において
前記丸め指示手段は前記演算手段によって導かれた演算結果について桁数指定、桁数指定で四捨五入、桁数指定無しのいずれかを指定する手段を備えていることが望ましい(請求項2)。
【0007】
また、前記丸め指示手段は、
前記演算手段によって導かれた演算結果について小数点以下の桁数を指定する桁数指定手段と、
この桁数指定手段によって指定された小数点以下の桁数となるように指定された桁数以下の切捨又は四捨五入を指示する切捨指定手段と、
を備えていることが望ましい(請求項3)。
【0008】
また、前記記憶手段は前記入力手段により入力される演算式データに含まれる演算命令データ(+、−、×、÷)毎に前記丸め指示手段による丸め指示の状態を記憶する手段を備え、
前記検出手段は新たに入力される演算式データ中の演算命令データが入力される毎に演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する手段を備えていることが望ましい(請求項4)。
【0011】
【作用】
請求項1に記載された電子計算機では、通常演算モードで入力手段により一連の数値及び演算命令を含む演算式データが入力されると、入力された演算式データに基づいて演算手段により演算が実行される。そして、丸め指示手段によって演算手段による演算の丸め指示がなされると、丸め指示手段によって指定された丸めで、演算手段による演算結果が丸め処理手段により丸め処理される。その際、丸め指示手段の丸め指示の状態と入力手段により入力された演算式データとが対応させて記憶手段に記憶される。そして、通常演算モードから検算モードに切り換えられた後、新たに入力された演算式データとその時の丸め指示手段の状態と、記憶手段に記憶されている演算式データと丸め指示の状態との一致が検出手段により検出され、演算式データ及び丸め指示状態の少なくとも一方が一致していないと検出された際には音によって第1の報知手段により不一致であることを示す報音がなされる。また、前記検出手段により少なくとも一方が一致していないと検出された場合において、この検出された不一致が丸め指示状態である際に、第2の報知手段により丸め指示状態が一致していないことを示す表示が行なわれる。
したがって、入力者に音で演算式データ及び丸め指示状態の少なくとも一方の不一致を知らせるので、その後の無駄な入力操作を防止できるとともに、検出された不一致が丸め指示状態である際に、第2の報知手段が、丸め指示状態が一致していないことを示す表示を行うので、不一致が丸め指示状態であること入力者に表示にて知らせることができる。
【0012】
また、請求項2に記載された電子計算機によれば、演算手段によって導かれた演算結果に対して桁数指定、桁数指定で四捨五入、桁数指定無しのいずれの丸め状態で丸め処理を行うかを丸め指示手段により指定できる。
【0013】
また、請求項3に記載された電子計算機によれば、演算手段によって導かれた演算結果の小数点以下の桁数を桁数指定手段によって指定し、さらに演算結果が桁数指定手段によって指定された小数点以下の桁数となるように、指定された桁数以下を切捨又は四捨五入のいずれの丸め状態で丸め処理を行うかを切捨指定手段によって指定できる。
【0014】
また、請求項4に記載された電子計算機では、入力手段により入力される演算式データに含まれる演算命令データ(+、−、×、÷)毎に丸め指示手段による丸め指示の状態が記憶手段に記憶される。そして、新たに入力される演算式データ中の演算命令データが入力される毎に演算式データとその時の丸め指示手段の状態と、記憶手段に記憶されている演算式データと丸め指示の状態との一致が検出手段により検出される。
したがって、新たに演算命令データが入力される毎にそのときの丸め指示の状態と、前回その演算命令データが入力された時における丸め指示の状態との一致が検出され、一致しないときには直ちに報知が行なわれる。
【0017】
【実施例】
以下に、本発明の電子計算機の一実施例について説明する。
【0018】
図1は、この実施例の電子計算機の基本構成を示すブロック図である。
【0019】
同図に示す電子計算機1は、プログラムの命令に従って電子計算機1全体の制御を行う中央演算処理装置(CPU)2と、CPU2で処理するマイクロプログラムを記憶した読み出し専用メモリ(ROM)3と、データを記憶する随時書き込み読み出しメモリ(RAM)4と、データ入力や後述するモードの切換など行うためのキー入力部5と、少数点以下の桁数を指定するための桁数入力部6と、桁数入力部6によって指定された桁の下1桁を四捨五入するか切り捨てるかを指定するための演算条件入力部7と、CPU2から出力される数値データや各種メッセージデータを表示するための表示駆動回路8および表示部9と、CPU2から出力される告知音信号を増幅して放音するための増幅回路10およびスピーカ11とからなる。
【0020】
上記RAM4は、図2に示すように、上記表示部7に表示するデータを記憶する表示レジスタの領域(置数入力レジスタの領域を兼ねる)12と、CPU2が演算するための数値を一時記憶する演算用レジスタの領域13と、演算結果を一時記憶するメモリレジスタの領域14と、プログラム実行中の各種条件を表フラグF、Hの内容を記憶するフラグレジスタの領域15とを有する。
【0021】
各フラグの内容は下記のとおりである。
F= 0 通常の演算モード
F=1 検算モード
H=1 訂正モード
H=0 訂正モード解除
【0022】
また、RAM4は、キー入力部5からの入力内容を一時記憶するジャーナルメモリの領域16と、ジャーナルメモリの領域16の各レジスタを指定するアドレスポインタPnを記憶する領域17とを有している。
【0023】
ジャーナルメモリの領域16は、入力された数値を記憶する置数メモリの領域16aと、入力された演算命令(+、−、×、÷、=)を記憶するファンクションメモリの領域16bと、演算条件入力部7で指定された丸め状態指定データ(F、C、5/4)を記憶する丸め状態メモリの領域16cと、桁数入力部6によって指定された桁指定データ(4、2、1、0、ADD2)を記憶する桁指定メモリの領域16dとを有する。そして、キー入力部5から演算のための入力がなされる毎に、数値データと、その直後に入力された演算命令データと、そのときの丸め演算状態データ(丸め状態指定データ、桁指定データ)とをセットにして、アドレスポインタP0、P1、P2、P3、・・・によって指定されているジャーナルメモリの領域16のレジスタに順次記憶するようになっている。
【0024】
上記キー入力部5は、図3に示すように、電子計算機1の操作面18上に配設された置数キー群19、演算命令キー群20、命令キー群21、メモリーキー群22、および検算キー23を備えている。
【0025】
置数キー群19は、0から9までの数値をそれぞれ入力するための数字キー「0」〜「9」と、小数点を入力するための少数点キー「.」とからなる。
【0026】
演算命令キー群20は、四則演算命令をそれぞれ入力するための四則演算命令キー「+」、「−」、「×」、「÷」と、答を求めるためのイコールキー「=」とからなる。
【0027】
命令キー群21は、表示されている数値の正負を切り換えるための正負キー「+/−」と、百分率計算に切り換えるためのパーセントキー「%」と、検算モードにおいて前回の演算結果と今回の演算結果を交互に表示させるための確認キー「確認」と、押し間違えた数値の訂正(置数訂正)をするためのクリアキー「C」と、それまでの演算データを全て消去(初期化)するためのオールクリアキー「AC」とからなる。
【0028】
メモリーキー群22は、表示されている数値を上記メモリレジスタに記憶されている数値に足す(プラスの数値で入力)ためのメモリープラスキー「M+]と、引く(マイナスの数値で入力)ためのメモリーマイナスキー「M−」と、上記メモリレジスタに記憶されている数値を呼び戻すためのメモリーリコールキー「MR]と、上記メモリレジスタに記憶されている数値を呼び戻すと同時にメモリー内容を消去するためのメモリーリコールクリアーキー「MC]とからなる。
【0029】
検算キー「検算」23は、標準演算モードと検算モードとを交互に切り換えるための命令キーである。
【0030】
また、電子計算機1の操作面18には、上記桁数入力部6の操作部である小数点指定スイッチ26と上記演算条件入力部7の操作部である丸めスイッチ25とが設けられている。
【0031】
丸めスイッチ25は、小数点以下をどのように処理するかを指定するためのスイッチで、小数点以下を可能なだけ自由に求めるフリーモード゛F″と、小数点指定スイッチ26によって指定された桁の下1桁を切り捨てるカットモード゛C″と、四捨五入する四捨五入モード゛5/4″のいずれかを指定できるようになっている。
【0032】
小数点指定スイッチ26は、丸めスイッチ25がカットモード゛C″または四捨五入モード゛5/4″の指定になっているときに有効なスイッチで、小数点以下は求めない0桁モード゛0″、小数点以下1桁まで求める1桁モード゛1″、小数点以下2桁まで求める2桁モード゛2″、小数点以下4桁まで求める4桁モード゛4″のいずれかを指定できる。
また、この小数点指定スイッチ26は、「.」キーを押さなくても自動的に2桁目に小数点を入れる固定小数点モード゛ADD2″ の指定もできるようになっている。
【0033】
上記表示部7は、周知の液晶ディスプレイからなるものであり、CPU2から出力された数値データや各種メッセージデータなどが表示駆動回路6に入力されると、この表示駆動回路6によって駆動されて、図9に示されるように表示窓9aに置数や答などの数値データや、各種メッセージデータなどを表示するものである。
【0034】
表示窓9aは、図3に示すように操作面18の入力キーの上方に設けられている。この表示窓9aには8桁までの数値を表示できるようになっている。そして数値表示領域の左側には、RAM4のメモリレジスタに数値が入っているときは゛M″が、定数計算中は゛K″が、ある数を0で割るなどの入力エラーがあったときは゛E″が、それぞれ点灯するようになっている。
【0035】
また、数値表示領域の上側の領域は、゛検算中″、゛OK″、゛前回″、゛今回″、゛丸め″などのメッセージ表示領域であり、検算モードになっているときに゛検算中″が、検算の結果、計算が正しかったときに゛OK″が、表示されている数値が前回(通常演算モード)の数値のときに゛前回″が、今回(検算モード)の数値のときに゛今回″が、小数点指定スイッチ26およびラウンドスイッチ25の設定が前回の計算のときと異なっているときに゛丸め″が、それぞれ点灯するようになっている。
【0036】
また、表示窓9aの左上隅部には、検算中に、表示窓9aに表示されている数値に続いて入力された演算命令の記号(+、−、×、÷、=)を表示するための演算記号表示部24が設けられている。
【0037】
次に、上記構成の電子計算機1の動作について、図4〜図8のフローチャートと図9とを用いて説明する。
【0038】
「AC」キーが押された後、キー入力部5からデータが入力されると、置数キー/ファンクションキー処理ルーチン(図4、図5)において、まずF=0か否か、すなわち通常演算モードか検算モードかが判断される(ステップS1)。
【0039】
そして、F=0の場合には、その入力データが置数キーによる入力データであるか否かが判断され(ステップS2)、置数キーの場合には、その数値が表示レジスタ12に記憶されると同時に表示窓9aに表示される(ステップS3)。この置数キーによる入力操作が任意の回数繰り返されることにより任意の桁の数値(ただし8桁まで)が表示窓9aに表示される。
【0040】
そして、次に「+」や「−」などの四則演算命令キーが操作されると、入力された数値データ(5、6、3、2.1、など)と、演算命令データ(+、−、×、÷)と、そのときの丸め状態指定データ(F、C、5/4)と、桁指定データ(4、2、1、0、ADD2)とが、アドレスポインタPn(最初はPn=PO)で指定されているジャーナルメモリの領域16のレジスタの置数メモリの領域16a、ファンクションメモリの領域16b、丸め状態メモリの領域16c、および桁指定メモリの領域16dにそれぞれ記憶される(ステップS4)。
この演算操作が繰り返される度に、アドレスポインタPnが順次その次のアドレス指定Pn+1となり(ステップS5)、次々と計算処理、計算結果表示がなされる(ステップS6)。
そして、「=」キーが操作されると答が表示窓9aに表示される。
【0041】
次に、「検算」キー23が操作されると、検算キー処理ルーチン(図6)が実行され、まず表示窓9aのメッセージ表示領域に゛検算中″が表示される(ステップS17)。そして、アドレスポインタPnが初期のアドレス指定P0になった後、フラグFがF=1、すなわち検算モードになる(ステップS9、S10)。
【0042】
また、検算モードになっているときに「検算」キー23が操作されると、゛検算中″の表示が消去され(ステップS11)、通常演算モードにもどる(ステップS12)。
【0043】
検算モードでは、置数キー/ファンクションキー処理ルーチン(図4、図5)において、まずH=0か否か、すなわち訂正モードになっていないか否かが判断される(ステップS13)。
【0044】
そして、H=0のときにキー入力部5からデータが入力されると、その入力データが置数キーによる入力データであるか否かが判断され(ステップS14)、置数キーの場合には、その数値が表示レジスタ12に記憶されると同時に表示窓9aに表示される(ステップS15)。この置数キーによる入力操作が任意の回数繰り返されることにより任意の桁の値数(ただし8桁まで)が表示窓9aに表示される。
【0045】
次いで、演算命令キーが操作されると、入力された今回の数値/演算命令/丸め演算状態データと、Pnで指定されているジャーナルメモリの領域16のレジスタに記憶されている前回の数値/演算命令/丸め演算状態データとが比較される(ステップS16)。
【0046】
そして、今回の数値/演算命令/丸め演算状態データとジャーナルメモリの領域16に記憶されている前記の数値/演算命令/丸め演算状態データとが一致している場合には、アドレスポインタPnが順次その次のアドレス指定Pn+1となり(ステップS17)、計算処理、計算結果表示処理がなされる(ステップS18)。
【0047】
上記置数キーと演算命令キーの操作が繰り返えされる度に、入力された数値/演算命令/丸め演算状態データとPnで指定されたジャーナルメモリの領域16の各レジスタに記憶されている数値/演算命令/丸め演算状態データとが次々と比較され、一致している場合には、次々と計算処理、計算結果表示処理がなされる(ステップS16〜S18)。
【0048】
そして、「=」キーが操作されると計算が終了され(S19)、表示窓9aのメッセージ表示領域に、計算が正しかったことを示す゛OK″が表示される(ステップS20)。
【0049】
また、入力された数値/演算命令/丸め演算状態データと、Pnで指定されたジャーナルメモリの領域16のレジスタに記憶されている前回の数値/演算命令/丸め演算状態データとが一致しなかった場合、スピーカ9より警報音が発せられ(ステップS21)、一致しなかったデータが表示窓9aに点滅表示される(ステップS22)。
【0050】
その後、フラグHがH=1、すなわち訂正モードになり(ステップS23)、表示窓9aのメッセージ表示領域に゛今回″が表示される(ステップS24)。
【0051】
訂正モードでは、「確認」キーが押されると、「確認」キー処理ルーチン(図7)が実行される。「確認」キーの操作は、フラグFがF=1(検算モード)で且つフラグHがH=1(訂正モード)のときのみ有効であり、この「確認」キーが押される度に、前回入力された数値および演算命令記号と今回入力された数値および演算命令記号とが交互に表示されるとともに、゛前回″と゛今回″の表示体が交互に表示される(ステップS25〜S27)。
【0052】
そして、置数キーによって前回と同じ正しい入力がされた後に、演算命令キーによって前回と同じ正しい入力がされると(ステップS28、S29)、フラグHがH=0になり、訂正モードを終了させる(ステップS30)。
【0053】
上記訂正処理後、アドレスポインタPnがその次のアドレス指定Pn+1となった後(ステップS31)、計算処理、計算結果表示処理がなされる(ステップS32)。
その後、前記ステップS13〜S18と同様の処理を経て、前回と今回の全ての数値/演算命令/丸め演算状態データが一致していた場合、「=」キーが操作されると(ステップS20)、表示窓9aのメッセージ表示領域に゛OK″が表示される(ステップS24)。
【0054】
そして、「AC」キーが押されると、「AC」キー処理ルーチン(図8)が実行され、以上の通常演算並びに検算のデータが全て消去された後(ステップS33)、アドレスポインタPnが初期のアドレス指定P0に戻り(ステップS34)、通常演算の入力待ち状態になる。
【0055】
図9には、前記丸めスイッチ25および小数点指定スイッチ26の設定状態例と、前記キー入力部5におけるキー操作例と、そのときの前記表示窓9aの表示例とが示されている。図中(a)〜(c)は通常演算モードにおける演算例であり、(d)〜(g)は(a)〜(c)の操作に続いて行われた検算モードにおける演算例である。
【0056】
(a)においては、丸めスイッチ25をフリーモード゛F″に、小数点指定スイッチ26を2桁モード゛2″に設定した状態で、「5」キー、「+」キー、「6」キー、「÷」キーが順に操作された結果、表示窓9aに計算値゛11″が表示されている。また、表示窓9aの演算記号表示部24には、この時点で最後に操作された演算命令キーの演算記号゛÷″が表示されている。
【0057】
(b)においては、丸めスイッチ25をカットモード゛C″に切り換えた後、(a)の操作に続いて「3」キー、「÷」キーが順に操作された結果、小数点以下2桁未満を切り捨てた計算値゛3.66″と演算記号゛÷″とが表示されている。
【0058】
(c)においては、丸めスイッチ25を四捨五入モード゛5/4″に、小数点指定スイッチ26を1桁モード゛1″にそれぞれ切り換えて、(b)の操作に続いて「2」キー、「.」キー、「1」キーが順に操作された後、最後に「=」キーが操作されたことにより、演算結果を示す数値゛1.7″が表示されている(以上、前記ステップS1〜S6)。
【0059】
(d)においては、「検算」キー23が操作されたことにより表示窓9aのメッセージ表示領域に゛検算中″の表示が点灯し(前記ステップS7、S8)、その後前回と同じ「5」キー、「+」キー、「6」キー、「÷」キーが順に操作された結果、計算値゛11″が表示されている(前記ステップS13、S14、S16〜S18)。
【0060】
(e)においては、丸めスイッチ25は前回と同じカットモード゛C″に設定されているが、小数点指定スイッチ26が前回と異なる1桁モード゛1″に設定されたことにより、(d)の操作に続いて「3」キーが操作され、さらに「÷」キーが操作された時点で、スピーカ9から「ピピ」という報知音が一時的に発せられ、表示窓9aのメッセージ表示領域に゛丸め″の表示体が点滅表示されている(前記ステップS16、S21、S22)。
このように、前回と異なる丸め演算状態で演算操作が行われた時点で警報音を鳴らし、誤操作の内容を示す表示体を点滅表示させることにより、丸め演算状態の指定に誤りがあったことを入力者に直ちに告知できる。
【0061】
(f)においては、小数点指定スイッチ26が前回と同じ2桁モード゛2″に設定し直されたことにより、正しい計算値゛3.66″が表示されている。
【0062】
(g)においては、丸めスイッチ25を前回と同じ四捨五入モード゛5/4″に、小数点指定スイッチ26を前回と同じ1桁モード゛1″に切り換えた後、(f)の操作に続いて「2」キー、「.」キーまでは前回と同じキー操作がされたが、次に前回と異なる数字キー「2」キーが操作されたことにより、「=」キーが操作された時点で、スピーカ9から「ピピ」という警報音が一時的に発せられ、表示窓9aに今回誤って入力された数値゛2.2″が点滅表示されるとともに、メッセージ表示領域に゛今回″の表示体が表示されている(前記ステップS16、S21〜S24)。
【0063】
以上のように、前回のデータと一致しないデータを表示窓9aに点滅表示させることで、入力操作あるいは丸め演算状態の指定に誤りがあったことを入力者に確実に知らせることができ、またどのような誤りであったかを入力者に認識させることができる。
【0064】
また、本実施例の電子計算機1は、「確認」キーを押すことにより前回の数値および演算命令データと今回の数値および演算命令データとを表示窓9aに交互に表示できるようになっているので、前回の入力値を表示窓9a上で確認して即座に誤りを訂正することができる。
【0065】
なお、本発明の電子計算機は上記実施例の構成に限定されるものではない。
例えば、上記実施例では、小数点以下何桁まで求めるかを指定するための小数点指定スイッチ26と、小数点指定スイッチ26で指定された桁の下1桁を切り捨てるか四捨五入するかを指定するための丸めスイッチ25とを備えている場合について説明したが、小数点以下の一定の桁数まで求めるように桁数が固定された機種の場合は小数点指定スイッチ26は不要であることは言うまでもない。
【0066】
また、上記実施例では、「確認」キーを押すことにより前回の入力値と今回の入力値とを交互に表示できるようにしたが、検算中に誤入力があった場合、前回の入力値と今回の入力値とが一定時間毎に交互に自動表示されるようにしてもよい。
【0067】
【発明の効果】
以上要するに、本発明によれば以下のごとき優れた効果を発揮することができる。
【0068】
請求項1に記載された電子計算機によれば、入力者に音で演算式データ及び丸め指示状態の少なくとも一方の不一致を知らせるので、その後の無駄な入力操作を防止できるとともに、検出された不一致が丸め指示状態である際に、第2の報知手段が、丸め指示状態が一致していないことを示す表示を行うので、不一致が丸め指示状態であること入力者に表示にて知らせることができる。
【0069】
また、請求項2に記載された電子計算機によれば、演算手段によって導かれた演算結果に対して桁数指定、桁数指定で四捨五入、桁数指定無しのいずれの丸め状態で丸め処理を行うかを指定できる。
【0070】
また、請求項3に記載された電子計算機によれば、演算手段によって導かれた演算結果の小数点以下の桁数を指定し、さらに指定された桁数以下を切捨又は四捨五入のいずれの丸め状態で丸め処理を行うかを指定できる。
【0071】
また、請求項4に記載された電子計算機によれば、新たに演算命令データが入力される毎にそのときの丸め指示の状態と、前回その演算命令データが入力された時における丸め指示の状態との一致が検出され、一致しないときには直ちに報知がなされるので、その後の無駄な入力操作を防止し、操作性を向上できる。
【図面の簡単な説明】
【図1】本発明の一実施例の電子計算機の基本構成を示す回路構成図である。
【図2】上記実施例の電子計算機のメモリ領域の構成を示す図である。
【図3】上記実施例の電子計算機の外観を示す平面図である。
【図4】上記実施例の電子計算機の動作を説明するためのフローチャート(置数キー/ファンクションキー処理ルーチン)である。
【図5】上記実施例の電子計算機の動作を説明するためのフローチャート(置数キー/ファンクションキー処理ルーチン)である。
【図6】上記実施例の電子計算機の動作を説明するためのフローチャート(検算キー処理ルーチン)である。
【図7】 上記実施例の電子計算機の動作を説明するためのフローチャート(「確認」キー処理ルーチン)である。
【図8】上記実施例の電子計算機の動作を説明するためのフローチャート(「AC」キー処理ルーチン)である。
【図9】上記実施例の電子計算機の丸めスイッチおよび小数点指定スイッチの設定状態例と、キー入力部におけるキー操作例と、そのときの前記表示窓の表示例とを対応させて示した図である。
【符号の説明】
1 電子計算機
2 中央演算処理装置(CPU、演算手段、丸め処理手段、検出手段、報知手段)
3 読み出し専用メモリ(ROM、記憶手段)
4 随時書き込み読み出しメモリ(RAM)
5 キー入力部(入力手段)
6 桁数入力部
7 演算条件入力部
8 表示駆動回路
9 表示部(表示手段、報知手段)
9a 表示窓(表示手段)
10 増幅回路
11 スピーカ(報知手段)
12 表示レジスタの領域(置数入力レジスタの領域)
13 演算用レジスタの領域
16 ジャーナルメモリの領域(記憶手段)
18 操作面
19 置数キー群
20 演算命令キー群
21 命令キー群
23 検算キー
24 演算記号表示部
25 丸めスイッチ(丸め指示手段、切捨指定手段)
26 小数点指定スイッチ(丸め指示手段、桁数指定手段)[0001]
[Industrial application fields]
The present invention relates to an electronic computer having a verification function.
[0002]
[Prior art]
Some electronic calculators such as calculators have a check function. This type of electronic computer stores the key input operation and calculation result of the first calculation, and compares the key input operation and calculation result performed for the second time with the key input operation and calculation result of the first calculation. However, if there is a difference, an error is notified by a warning sound or the like.
[0003]
[Problems to be solved by the invention]
However, in the above-described conventional electronic computer, it is determined whether or not the calculation is correct by comparing the first and second key input operations and the calculation results. Or, even if the setting of the rounding switch for specifying whether to round off or round off the last digit of the designated digit is different between the first time and the second time, the input person does not know until the answer is given. Therefore, if the answer is different between the first time and the second time, you must operate the digit number specification switch and rounding switch to reset the rounding calculation state and then start the second input operation from the beginning. There was a problem that the operability was poor.
[0004]
The object of the present invention is to solve the above-mentioned drawbacks of the prior art, and when the rounding state in the second calculation is different from that in the first calculation, this is immediately notified to the input person and the subsequent useless key input An object is to provide an electronic computer with good operability that can prevent operation.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, an electronic computer of the present invention provides:
A series of data entered in normal calculation modeIncludes numeric and arithmetic instructionsIn an electronic computer having a verification function for storing arithmetic expression data and performing verification by comparing the arithmetic expression data newly input in the verification mode with the stored arithmetic expression data,
Input means for inputting arithmetic expression data;
A calculation means for executing a calculation based on the calculation formula data input by the input means in the normal calculation mode;
Rounding instruction means for instructing rounding of the operation by the calculating means;
Rounding means for rounding the calculation result by the calculation means by rounding specified by the rounding instruction means;
Storage means for storing the rounding instruction state of the rounding instruction means in correspondence with the arithmetic expression data input by the input means;
After switching from the normal calculation mode to the verification mode, the newly input calculation formula data and the state of the rounding instruction means at that time are matched with the calculation formula data stored in the storage means and the rounding instruction status. Detecting means for detecting;
When it is detected by this detection means that at least one of the arithmetic expression data and the rounding instruction state does not match.Announcement of discrepancyFirst informing means for performing,
By the detection meansWhen it is detected that at least one of them does not match, the detected mismatch is a rounding indication state.Check that the rounding instruction states do not match.DisplaySecond informing means for performing
(Claim 1).
[0006]
In the electronic computer of the present invention
The rounding instruction meansSaidSpecify either the number of digits specified, the number of digits rounded off, or the number of digits not specified for the calculation result derived by the calculation means.Equipped with meansIt is desirable (Claim 2).
[0007]
Also,SaidRounding instruction meansIs
SaidA digit number specifying means for specifying the number of digits after the decimal point for the calculation result derived by the calculating means;
A truncation designation means for instructing rounding or rounding to the number of digits below the decimal point designated by the digit number designation means;,
HasIt is desirable (Claim 3).
[0008]
Further, the storage means stores the state of the rounding instruction by the rounding instruction means for each arithmetic instruction data (+, −, ×, ÷) included in the arithmetic expression data input by the input means.Means to
Each time the operation instruction data in the newly input arithmetic expression data is input, the detection means is the arithmetic expression data, the state of the rounding instruction means at that time, the arithmetic expression data stored in the storage means and the rounding instruction A match with the state ofEquipped with means(Claim 4).
[0011]
[Action]
In the electronic computer according to
Therefore,A sound to the input personNotifying the mismatch of at least one of the calculation formula data and the rounding instruction statusSubsequent useless input operations can be preventedAnd the detected discrepancy is in the rounding indication state.The second notifying means gives a rounding instruction.Since the display indicating that the states do not match is performed, it is possible to notify the input person that the mismatch is in the rounding instruction state.
[0012]
In addition, according to the electronic computer described in
[0013]
According to the electronic computer described in
[0014]
Further, in the electronic computer according to
Therefore, whenever a new operation instruction data is input, a match between the rounding instruction state at that time and the rounding instruction state at the previous time when the operation instruction data was input is detected. Done.
[0017]
【Example】
An embodiment of the electronic computer according to the present invention will be described below.
[0018]
FIG. 1 is a block diagram showing the basic configuration of the electronic computer of this embodiment.
[0019]
The
[0020]
As shown in FIG. 2, the
[0021]
The contents of each flag are as follows.
F = 0 Normal calculation mode
F = 1 Check mode
H = 1 Correction mode
H = 0 Cancel correction mode
[0022]
The
[0023]
The
[0024]
As shown in FIG. 3, the
[0025]
The numeric
[0026]
The operation instruction
[0027]
The command
[0028]
The memory
[0029]
The verification key “verification” 23 is an instruction key for alternately switching between the standard calculation mode and the verification mode.
[0030]
The operation surface 18 of the
[0031]
The rounding
[0032]
The decimal
The decimal
[0033]
The
[0034]
The display window 9a is provided above the input keys on the operation surface 18 as shown in FIG. The display window 9a can display numerical values up to 8 digits. On the left side of the numerical value display area, "M" is displayed when a numerical value is stored in the memory register of the
[0035]
The upper area of the numerical display area is a message display area such as “Checking”, “OK”, “Previous”, “This time”, “Rounding”, etc. ”Is“ OK ”when the calculation is correct as a result of the verification, and“ Previous ”is the current (verification mode) when the displayed numerical value is the previous (normal calculation mode). When “current” is different from the previous calculation in the settings of the decimal
[0036]
In addition, in the upper left corner of the display window 9a, a symbol (+, −, ×, ÷, =) of an operation instruction input following the numerical value displayed in the display window 9a is displayed during verification. The operation
[0037]
Next, the operation of the
[0038]
When data is input from the
[0039]
If F = 0, it is determined whether or not the input data is input data using a numeric key (step S2). If it is a numeric key, the numerical value is stored in the
[0040]
Next, when the four arithmetic operation command keys such as “+” and “−” are operated, the input numerical data (5, 6, 3, 2.1, etc.) and the operation command data (+, − , X, ÷), rounding state designation data (F, C, 5/4) and digit designation data (4, 2, 1, 0, ADD2) at that time are address pointer Pn (initially Pn = Stored in the register memory area 16a, function memory area 16b, rounding
Each time this calculation operation is repeated, the address pointer Pn sequentially becomes the next address designation Pn + 1 (step S5), and calculation processing and calculation results are displayed one after another (step S6).
When the “=” key is operated, the answer is displayed on the display window 9a.
[0041]
Next, when the “verification” key 23 is operated, the verification key processing routine (FIG. 6) is executed, and “verification” is first displayed in the message display area of the display window 9a (step S17). After the address pointer Pn becomes the initial address specification P0, the flag F is F = 1, that is, the verification mode is set (steps S9 and S10).
[0042]
Further, when the “verification” key 23 is operated in the verification mode, the “verification” display is deleted (step S11), and the normal calculation mode is restored (step S12).
[0043]
In the verification mode, in the numeric key / function key processing routine (FIGS. 4 and 5), it is first determined whether or not H = 0, that is, whether or not the correction mode is set (step S13).
[0044]
When data is input from the
[0045]
Next, when the operation instruction key is operated, the current numerical value / operation instruction / rounding operation state data that has been input and the previous numerical value / operation stored in the register of the
[0046]
When the current numerical value / arithmetic instruction / rounding arithmetic state data and the numerical value / arithmetic instruction / rounding arithmetic state data stored in the
[0047]
Each time the operation of the numeric key and the operation instruction key is repeated, the input numerical value / operation instruction / rounding operation state data and the numerical value stored in each register of the
[0048]
When the “=” key is operated, the calculation is terminated (S19), and “OK” indicating that the calculation is correct is displayed in the message display area of the display window 9a (step S20).
[0049]
Also, the input numerical value / arithmetic instruction / rounding arithmetic state data did not match the previous numerical value / arithmetic instruction / rounding arithmetic state data stored in the register of the
[0050]
Thereafter, the flag H becomes H = 1, that is, the correction mode is set (step S23), and “current” is displayed in the message display area of the display window 9a (step S24).
[0051]
In the correction mode, when the “confirm” key is pressed, the “confirm” key processing routine (FIG. 7) is executed. The operation of the “confirm” key is valid only when the flag F is F = 1 (verification mode) and the flag H is H = 1 (correction mode). Each time the “confirm” key is pressed, The numerical values and operation command symbols inputted this time and the numerical values and operation command symbols inputted this time are displayed alternately, and the display bodies of “previous” and “current time” are displayed alternately (steps S25 to S27).
[0052]
When the same correct input as the previous time is input by the numeric key and then the same correct input as the previous time is input by the operation command key (steps S28 and S29), the flag H becomes H = 0 and the correction mode is ended. (Step S30).
[0053]
After the correction process, the address pointer Pn becomes the next address designation Pn + 1 (step S31), and then the calculation process and the calculation result display process are performed (step S32).
Thereafter, through the same processing as in steps S13 to S18, when all the numerical values / arithmetic instructions / rounding calculation state data of the previous time and the current time coincide, the “=” key is operated (step S20). “OK” is displayed in the message display area of the display window 9a (step S24).
[0054]
When the “AC” key is pressed, the “AC” key processing routine (FIG. 8) is executed, and after all of the above normal calculation and verification data are erased (step S33), the address pointer Pn is initialized. Returning to the address designation P0 (step S34), the system enters a normal calculation input waiting state.
[0055]
FIG. 9 shows a setting state example of the rounding
[0056]
In (a), with the rounding
[0057]
In (b), after the rounding
[0058]
In (c), the rounding
[0059]
In (d), “verification” is displayed in the message display area of the display window 9a when the “verification” key 23 is operated (steps S7 and S8), and then the same “5” key as before. As a result of operating the “+” key, “6” key, and “÷” key in sequence, the calculated value “11” is displayed (steps S13, S14, S16 to S18).
[0060]
In (e), the rounding
In this way, when a calculation operation is performed in a different rounding calculation state from the previous time, an alarm sound is sounded, and a display indicating the content of the erroneous operation blinks to indicate that there is an error in the specification of the rounding calculation state. Can immediately notify the input person.
[0061]
In (f), since the decimal
[0062]
In (g), after the rounding
[0063]
As described above, by blinking data that does not match the previous data in the display window 9a, it is possible to reliably notify the input person that there is an error in the input operation or the specification of the rounding operation state. It is possible to make the input person recognize whether such an error has occurred.
[0064]
Further, the
[0065]
The electronic computer of the present invention is not limited to the configuration of the above embodiment.
For example, in the above embodiment, the decimal
[0066]
In the above embodiment, the previous input value and the current input value can be displayed alternately by pressing the “confirm” key, but if there is an incorrect input during the verification, the previous input value and The current input value may be automatically displayed alternately every predetermined time.
[0067]
【The invention's effect】
In short, according to the present invention, the following excellent effects can be exhibited.
[0068]
According to the electronic computer described in
[0069]
In addition, according to the electronic computer described in
[0070]
In addition, according to the electronic computer according to
[0071]
In addition, according to the electronic computer described in
[Brief description of the drawings]
FIG. 1 is a circuit configuration diagram showing a basic configuration of an electronic computer according to an embodiment of the present invention.
FIG. 2 is a diagram showing a configuration of a memory area of the electronic computer according to the embodiment.
FIG. 3 is a plan view showing an external appearance of the electronic computer according to the embodiment.
FIG. 4 is a flowchart (numerical key / function key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 5 is a flowchart (numerical key / function key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 6 is a flowchart (validation key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 7 is a flowchart (“confirmation” key processing routine) for explaining the operation of the electronic computer of the embodiment.
FIG. 8 is a flowchart (“AC” key processing routine) for explaining the operation of the electronic computer of the embodiment.
9 is a diagram showing a setting state example of a rounding switch and a decimal point designation switch of the electronic computer according to the embodiment, an example of key operation in a key input unit, and a display example of the display window at that time. FIG. is there.
[Explanation of symbols]
1 Electronic computer
2 Central processing unit (CPU, calculation means, rounding processing means, detection means, notification means)
3 Read-only memory (ROM, storage means)
4 Anytime write / read memory (RAM)
5 Key input part (input means)
6 digit number input part
7 Calculation condition input section
8 Display drive circuit
9 Display section (display means, notification means)
9a Display window (display means)
10 Amplifier circuit
11 Speaker (notification means)
12 Display register area (Register input register area)
13 Operation register area
16 Journal memory area (storage means)
18 Operation surface
19 numeric keys
20 Operation instruction key group
21 Command keys
23 Check key
24 Operation symbol display
25 Rounding switch (rounding instruction means, cutoff designation means)
26 Decimal point designation switch (rounding instruction means, number of digits designation means)
Claims (4)
演算式データを入力する入力手段と、
通常演算モードでこの入力手段により入力された演算式データに基づいて演算を実行する演算手段と、
この演算手段による演算の丸めを指示する丸め指示手段と、
この丸め指示手段によって指定された丸めで前記演算手段による演算結果を丸める丸め処理手段と、
前記丸め指示手段の丸め指示の状態と前記入力手段により入力された演算式データとを対応させて記憶する記憶手段と、
通常演算モードから検算モードに切り換えられた後、新たに入力された演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する検出手段と、
この検出手段により演算式データ及び丸め指示状態の少なくとも一方が一致していないと検出された際に不一致であることを示す報音を行う第1の報知手段と、
前記検出手段により少なくとも一方が一致していないと検出された場合において、この検出された不一致が丸め指示状態である際に、丸め指示状態が一致していないことを示す表示を行う第2の報知手段と、
を備えたことを特徴とする電子計算機。Stores arithmetic expression data including a series of numerical values and arithmetic instructions input in the normal arithmetic mode, and performs verification by comparing the arithmetic expression data newly input in the verification mode with the stored arithmetic expression data. In an electronic computer with a check function,
Input means for inputting arithmetic expression data;
A calculation means for executing a calculation based on the calculation formula data input by the input means in the normal calculation mode;
Rounding instruction means for instructing rounding of operation by the calculating means;
Rounding means for rounding the calculation result by the calculation means by rounding specified by the rounding instruction means;
Storage means for storing the rounding instruction state of the rounding instruction means in correspondence with the arithmetic expression data input by the input means;
After switching from the normal calculation mode to the verification mode, the newly input calculation formula data and the state of the rounding instruction means at that time are matched with the calculation formula data stored in the storage means and the rounding instruction status. Detecting means for detecting;
First notifying means for performing a sound indicating that there is a mismatch when it is detected by this detecting means that at least one of the arithmetic expression data and the rounding instruction state does not match;
When the detection means detects that at least one of them does not match, a second notification that displays that the rounding instruction state does not match when the detected mismatch is the rounding instruction state Means,
An electronic computer characterized by comprising:
前記演算手段によって導かれた演算結果について小数点以下の桁数を指定する桁数指定手段と、
この桁数指定手段によって指定された小数点以下の桁数となるように指定された桁数以下の切捨又は四捨五入を指示する切捨指定手段と、
を備えていることを特徴とする請求項1記載の電子計算機。The rounding instruction means includes
A digit number designating unit for designating the number of digits after the decimal point for the calculation result derived by the calculating unit;
A truncation specifying means for instructing rounding or rounding to the number of digits less than or equal to the number of digits specified by the number of digits specifying means;
The electronic computer according to claim 1, further comprising:
前記検出手段は新たに入力される演算式データ中の演算命令データが入力される毎に演算式データとその時の丸め指示手段の状態と、前記記憶手段に記憶されている演算式データと丸め指示の状態との一致を検出する手段を備えていることを特徴とする請求項1、2又は3記載の電子計算機。The storage means includes means for storing the state of the rounding instruction by the rounding instruction means for each arithmetic instruction data (+, −, ×, ÷) included in the arithmetic expression data input by the input means,
The detecting means each time arithmetic instruction data in newly inputted arithmetic expression data is inputted, the arithmetic expression data, the state of the rounding instruction means at that time, the arithmetic expression data stored in the storage means and the rounding instruction 4. The electronic computer according to claim 1, further comprising means for detecting a coincidence with the state.
Priority Applications (10)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP05649095A JP3693262B2 (en) | 1995-02-20 | 1995-02-20 | Electronic computer |
TW084105503A TW283223B (en) | 1994-12-01 | 1995-05-31 | |
US08/560,894 US5870318A (en) | 1994-12-01 | 1995-11-20 | Computers with a proof function |
EP95118484A EP0715263B1 (en) | 1994-12-01 | 1995-11-23 | Computer with a proof function |
DE69530461T DE69530461T2 (en) | 1994-12-01 | 1995-11-23 | Calculator with test function |
MYPI95003626A MY113894A (en) | 1994-12-01 | 1995-11-25 | "computers with a proof function" |
KR1019950045768A KR100246519B1 (en) | 1994-12-01 | 1995-11-30 | Computer with a proof function |
CN95117574A CN1095131C (en) | 1994-12-01 | 1995-12-01 | Computers with a proof function |
US08/940,614 US6026449A (en) | 1995-02-14 | 1997-09-30 | Computers with a proof function |
HK98114753A HK1013471A1 (en) | 1994-12-01 | 1998-12-22 | Computer with a proof function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP05649095A JP3693262B2 (en) | 1995-02-20 | 1995-02-20 | Electronic computer |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH08227400A JPH08227400A (en) | 1996-09-03 |
JP3693262B2 true JP3693262B2 (en) | 2005-09-07 |
Family
ID=13028543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP05649095A Expired - Fee Related JP3693262B2 (en) | 1994-12-01 | 1995-02-20 | Electronic computer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3693262B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005173735A (en) * | 2003-12-08 | 2005-06-30 | Sap Ag | Purchase request support device, method, and program |
JP6515613B2 (en) * | 2015-03-19 | 2019-05-22 | カシオ計算機株式会社 | Electronic equipment, calculation processing program |
-
1995
- 1995-02-20 JP JP05649095A patent/JP3693262B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH08227400A (en) | 1996-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3637520B2 (en) | Desktop addition / subtraction / division / division calculator for easy verification and steady calculation | |
JP3693262B2 (en) | Electronic computer | |
KR100246519B1 (en) | Computer with a proof function | |
JP3508277B2 (en) | Electronic computer | |
US5886910A (en) | Computer with a check function | |
JP3786141B2 (en) | Electronic computer and verification control method | |
JP3557645B2 (en) | Electronic computer | |
JPH08221368A (en) | Electronic computer | |
US6026449A (en) | Computers with a proof function | |
CA1173164A (en) | Fraction calculator | |
JPH1049502A (en) | Checking device | |
JPH08241285A (en) | Electronic computer | |
JPH0916525A (en) | Electronic computer with check function | |
JP6515613B2 (en) | Electronic equipment, calculation processing program | |
JPH08161270A (en) | Electronic computer | |
JPH01147649A (en) | Method for discriminating propriety of back-up memory | |
JP2005346555A (en) | Electronic apparatus | |
JPH1049501A (en) | Checking device | |
JPH04115351A (en) | Compact electronic apparatus with voltage drop alarming function | |
JPS6210828Y2 (en) | ||
JPH06168104A (en) | Electronic computer | |
JPH09146890A (en) | Electronic computer | |
JPH01193918A (en) | Error message display system | |
JP2530478Y2 (en) | Time recorder with check-in / out sequence function | |
JPS6286406A (en) | Programmable controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040204 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20040209 |
|
A912 | Removal of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20040409 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050617 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090701 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100701 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110701 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110701 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120701 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120701 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130701 Year of fee payment: 8 |
|
LAPS | Cancellation because of no payment of annual fees |