JP2012128483A - Electronic computer and program - Google Patents
Electronic computer and program Download PDFInfo
- Publication number
- JP2012128483A JP2012128483A JP2010276815A JP2010276815A JP2012128483A JP 2012128483 A JP2012128483 A JP 2012128483A JP 2010276815 A JP2010276815 A JP 2010276815A JP 2010276815 A JP2010276815 A JP 2010276815A JP 2012128483 A JP2012128483 A JP 2012128483A
- Authority
- JP
- Japan
- Prior art keywords
- symbol
- calculation
- formula
- mathematical
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Calculators And Similar Devices (AREA)
Abstract
Description
本発明は、任意の数式を入力し表示させて計算処理を実行する電子計算機およびその制御プログラムに関する。 The present invention relates to an electronic computer that inputs and displays an arbitrary mathematical expression and executes a calculation process, and a control program therefor.
数学の計算で、複素数や高次方程式の解など、教科書などでの自然表記において、数式や計算結果が[±]の演算子を含んで表現されるものがある。 In mathematical calculations, there are some natural notations in textbooks such as complex numbers and solutions of higher-order equations, in which mathematical expressions and calculation results are expressed including an operator of [±].
複素数の計算機能を備えた電子機器が開示されている(例えば、特許文献1参照。)。 An electronic device having a complex number calculation function is disclosed (for example, see Patent Document 1).
平方根を含む多項式を計算する電子計算装置が開示されている(例えば、特許文献2参照。)。 An electronic computer that calculates a polynomial including a square root is disclosed (for example, see Patent Document 2).
従来の小型電子式計算機(電卓)では、[±]の演算子を入力して表示することができないため、自然表記において[±]の演算子を含んで表現される数式を計算するには、[+]の演算子と[−]の演算子とを展開した2つの数式にして計算する必要がある。 In a conventional small electronic calculator (calculator), it is not possible to input and display the [±] operator, so to calculate a mathematical expression that includes the [±] operator in natural notation, It is necessary to calculate the two expressions by expanding the operator of [+] and the operator of [−].
このため、例えば[±]の演算子を含んだ高次方程式の解を、同方程式に代入して検算するような場合にも、2つの式に展開して検算する必要があった。 For this reason, for example, when a solution of a higher-order equation including an operator of [±] is substituted into the equation for verification, it is necessary to expand the verification into two equations for verification.
本発明は、このような課題に鑑みなされたもので、[±]の演算子を含む数式や計算結果を自然表記のまま入力し表示させることが可能になる電子計算機およびその制御プログラムを提供することを目的とする。 The present invention has been made in view of such a problem, and provides an electronic computer and a control program therefor that allow a mathematical expression including a [±] operator and a calculation result to be input and displayed in a natural notation. For the purpose.
請求項1に記載の電子計算機は、[±]キーを有するキー入力部と、このキー入力部のユーザ操作に応じた数式を入力する数式入力手段と、この数式入力手段により入力された数式を表示する数式表示手段と、前記数式入力手段により入力された数式に[±]記号が含まれるか判断する演算記号判断手段と、この演算記号判断手段により前記数式に[±]記号が含まれると判断された場合に、当該数式をその[±]記号のうち[+]記号を含む数式と[−]記号を含む数式との2つの数式に展開し、各数式について演算実行する数式展開演算手段と、この数式展開演算手段により演算された前記2つの数式の各計算結果が同じであるか、または各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なるかを判断する計算結果判断手段と、この計算結果判断手段により前記2つの数式の各計算結果が同じであると判断された場合は1つの計算結果を出力し、各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なると判断された場合は同位置の演算記号を[±]記号に置き換え1つの計算結果に纏めて出力し、そうでない場合は前記各計算結果をそれぞれ出力する計算結果出力手段と、を備えたことを特徴としている。
The electronic computer according to
請求項2に記載の電子計算機は、前記請求項1に記載の電子計算機において、前記数式入力手段は、前記キー入力部のユーザ操作に応じて[±]キーが連続入力された場合、[±]記号の符号を逆転した記号を入力する符号逆転入力手段を有する、ことを特徴としている。
The electronic computer according to
請求項3に記載のプログラムは、[±]キーを有するキー入力部と表示部を備えた電子計算機のコンピュータを制御するためのプログラムであって、前記コンピュータを、前記キー入力部のユーザ操作に応じた数式を入力する数式入力手段、この数式入力手段により入力された数式を前記表示部に表示させる数式表示手段、前記数式入力手段により入力された数式に[±]記号が含まれるか判断する演算記号判断手段、この演算記号判断手段により前記数式に[±]記号が含まれると判断された場合に、当該数式をその[±]記号のうち[+]記号を含む数式と[−]記号を含む数式との2つの数式に展開し、各数式について演算実行する数式展開演算手段、この数式展開演算手段により演算された前記2つの数式の各計算結果が同じであるか、または各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なるかを判断する計算結果判断手段、この計算結果判断手段により前記2つの数式の各計算結果が同じであると判断された場合は1つの計算結果を前記表示部に出力し、各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なると判断された場合は同位置の演算記号を[±]記号に置き換え1つの計算結果に纏めて前記表示部に出力し、そうでない場合は前記各計算結果をそれぞれ前記表示部に出力する計算結果出力手段、
として機能させるためのプログラム。
The program according to
Program to function as.
本発明によれば、[±]の演算子を含む数式や計算結果を自然表記のまま入力し表示させることが可能になる電子計算機およびその制御プログラムを提供できる。 According to the present invention, it is possible to provide an electronic computer and a control program therefor that can input and display mathematical expressions and calculation results including an operator of [±] in a natural notation.
以下図面により本発明の実施の形態について説明する。 Embodiments of the present invention will be described below with reference to the drawings.
図1は、本発明の電子計算機の実施形態に係る小型電子式計算機(関数電卓)10の外観構成を示す正面図である。 FIG. 1 is a front view showing an external configuration of a small electronic calculator (functional calculator) 10 according to an embodiment of an electronic calculator of the present invention.
この関数電卓10は、その携帯性の必要からユーザが片手で十分把持し片手で操作可能な小型サイズからなり、この関数電卓10の本体正面にはキー入力部11および表示部16が設けられる。
The
キー入力部11には、数値や数式を入力したり計算の実行を指示したりするための数値・演算記号キー群12、各種の関数を入力したりメモリ機能を立ち上げたりするための関数機能キー群13、各種動作モードのメニュー画面を表示させたり動作モードの設定を指示したりするためのモード設定キー群14、表示部16に表示されたカーソルCuの移動操作やデータ項目の選択操作などを行うためのカーソルキー15、表示部16の下端に沿ってメニュー表示される各種の機能を選択的に指定するためのファンクションキーF1〜F4が備えられる。
The
前記数値・演算記号キー群12としては、[0]〜[9](数値)キー、[+][−][×][÷](四則演算記号)キー、[Exp]指数)キー、[EXE](実行)キー、[AC](クリア)キーなどが配列される。
The numerical / arithmetic
前記関数機能キー群13としては、[√](ルート)キー、[a/b](分数)キー、[sin](サイン)キー、[M+](メモリプラス)キーなどが配列される。
As the function
前記モード設定キー群14としては、[Menu](メニュー)キー、[Grph](グラフ)キー、[Trac](グラフトレース)キーなどが配列される。
As the mode setting
なお、前記モード設定キー群14の左側には、[±](プラスマイナス演算記号)キーが設けられる。
A [±] (plus / minus symbol) key is provided on the left side of the mode
前記表示部16は、ドットマトリクス型の液晶表示ユニットからなる。
The
図2は、前記関数電卓10の電子回路の構成を示すブロック図である。
FIG. 2 is a block diagram showing the configuration of the electronic circuit of the
この関数電卓10は、コンピュータである制御部(CPU)21を備えている。
The
制御部(CPU)21は、記憶装置22に予め記憶されているシステムプログラム、あるいはメモリカードなどの外部記憶媒体(図示せず)から記憶装置22に読み込まれた計算機制御プログラム、あるいは通信ネットワーク上のプログラムサーバ(図示せず)からダウンロードされ前記記憶装置22に読み込まれた計算機制御プログラムに従い、RAM23を作業用メモリとして回路各部の動作を制御する。そして、前記記憶装置22に予め記憶されたシステムプログラムや計算機制御プログラムは、キー入力部11からのキー入力信号に応じて起動される。
The control unit (CPU) 21 is a system program stored in the
前記制御部(CPU)21には、前記記憶装置22、RAM23、キー入力部11が接続される他に、表示部(LCD)16が接続される。
In addition to the
RAM23には、表示データメモリ23a、入力バッファ23b、カーソルポインタメモリ23c、数式データメモリ23d、計算結果データメモリ23eなどが確保される。
In the
表示データメモリ23aには、前記表示部16に表示させる数式のデータやその演算結果のデータなどが、前記表示部16の表示領域に相当するビットマップデータに展開されて記憶される。
In the
入力バッファ23bには、前記キー入力部11によりキー入力された式を構成するキーコードのデータが順次記憶される。例えば数値キーは数字を示すコードで、[√][a/b][sin]などの関数キーはその関数を示すコードで、[+][−][×][÷][±]などの演算記号キーはその演算記号を示すコードで記憶される。
In the
カーソルポインタメモリ23cには、前記入力バッファ23bにキーコードデータとして記憶されると共に前記表示部16に表示されたキー入力データを対象にして、カーソルキー15の操作により移動表示されるカーソルCuが位置するところを示すポインタデータが記憶される。
In the
数式データメモリ23dには、前記入力バッファ23bに入力されて生成された数式のデータが記憶される。
The mathematical
計算結果データメモリ23eには、前記数式データメモリ23dに記憶された数式を演算処理した計算結果のデータが記憶される。
The calculation result
次に、前記構成の電子式計算機(関数電卓)10の数式入力・計算機能について説明する。 Next, the mathematical expression input / calculation function of the electronic calculator (scientific calculator) 10 having the above-described configuration will be described.
図3は、前記関数電卓10による数式入力・計算処理を示すフローチャートである。
FIG. 3 is a flowchart showing mathematical expression input / calculation processing by the
まず、キー入力部11においてユーザにより所望のキーが操作されると、そのキーデータがCPU21に読み込まれる(ステップS1)。そして、CPU21に読み込まれたキーデータが、[±](プラスマイナス演算記号)キーのデータか否か(ステップS2)、他の数字・文字・記号キーのデータか否か(ステップS3)、[EXE](実行)キーのデータか否か(ステップS4)が判断される。
First, when a user operates a desired key on the
ここで、数字・文字・記号キーのデータが入力された場合には(ステップS3(Yes))、式入力処理が行われ、当該入力された数字・文字・記号キーのデータは、そのキーコードとして入力バッファ23bに順次記憶されると共に、このキーコードに応じた数式が表示部16に表示される(ステップS5)。
If numeric / character / symbol key data is input (step S3 (Yes)), an expression input process is performed, and the input numeric / character / symbol key data is the key code. Are sequentially stored in the
前記数字・文字・記号キーの入力に応じた式入力処理が繰り返される過程において(ステップS1,S2(No)→S3(Yes)→S5)、[±](プラスマイナス演算記号)キーが入力されたと判断されると(ステップS2(Yes))、当該[±]キーが連続入力されたか否か判断される(ステップS6)。 In the process of repeating the formula input process according to the input of the number / letter / symbol key (steps S1, S2 (No) → S3 (Yes) → S5), the [±] (plus / minus symbol) key is input. If it is determined (step S2 (Yes)), it is determined whether or not the [±] key is continuously input (step S6).
ここで、連続入力ではなく1回の入力であると判断されると(ステップS6(No))、入力された[±]のキーコードが入力バッファ23bに記憶され、対応する[±](プラスマイナス演算記号)が表示部16に表示される(ステップS7)。
If it is determined that the input is not a continuous input but a single input (step S6 (No)), the input [±] key code is stored in the
一方、前記[±]キーが連続入力されたと判断されると(ステップS6(Yes))、その連続入力の都度、入力された[±]の符号が逆転されたキーコードが入力バッファ23bに記憶され、対応する[±](プラスマイナス演算記号)または[-+](マイナスプラス演算記号)が表示部16に表示される(ステップS8)。
On the other hand, if it is determined that the [±] key is continuously input (step S6 (Yes)), the key code in which the input [±] sign is reversed is stored in the
ここで、前記[-+](マイナスプラス演算記号)は、正式には“−”記号の直下に“+”記号が位置して構成されるが、オンライン出願における規定の文字・記号フォントに存在しないため、便宜上[-+]として記述する。 Here, the [-+] (minus plus arithmetic symbol) is formally arranged with the “+” symbol immediately below the “−” symbol, but exists in the prescribed character / symbol font in the online application. Therefore, it is described as [-+] for convenience.
この際、前記[±](または[-+])の演算記号を含んだ数式であっても、当該数式はその入力された通りに表示部16に自然表示される。
At this time, even if a mathematical expression includes the arithmetic symbol [±] (or [− +]), the mathematical expression is naturally displayed on the
こうしたキー入力処理に従い、ユーザ所望の数式が入力されて表示部16に表示された状態で、[EXE](実行)キーが入力されたと判断されると(ステップS4(Yes))、入力バッファ23bに記憶されたキーコードデータが読み出されて演算対象となる数式として問題がないかチェックされる(ステップS9)。仮にこのステップS9の数式チェックで演算できない問題があると判断されたならばシンタックス・エラーの表示がなされる。
When it is determined that the [EXE] (execution) key has been input in a state in which a mathematical expression desired by the user is input and displayed on the
前記入力された数式に問題がなければ、当該数式は数式データメモリ23dに記憶され、同数式中に[±](または[-+])の演算記号が含まれているか否か判断される(ステップS10)。
If there is no problem with the input mathematical formula, the mathematical formula is stored in the mathematical
ここで、前記入力された数式中に[±](または[-+])の演算記号が含まれていないと判断された場合は(ステップS10(No))、当該数式に応じた通常の演算処理が実行され(ステップS11)、その計算結果のデータが計算結果データメモリ23eに記憶され表示部16に表示される(ステップS12)。
Here, when it is determined that an arithmetic symbol [±] (or [− +]) is not included in the input mathematical formula (Step S10 (No)), a normal computation corresponding to the mathematical formula is performed. The process is executed (step S11), and the calculation result data is stored in the calculation
一方、前記入力された数式中に[±](または[-+])の演算記号が含まれていると判断された場合は(ステップS10(Yes))、当該[±](または[-+])の演算記号のうちの[+]の演算記号を含む数式と[−]の演算記号を含む数式との2つの数式が生成される(ステップS13)。そして、生成された2つの数式に応じたそれぞれの演算処理が実行され、各計算結果のデータが計算結果データメモリ23eに記憶される(ステップS14)。
On the other hand, when it is determined that an arithmetic symbol [±] (or [− +]) is included in the inputted mathematical formula (step S10 (Yes)), the [±] (or [− +] ] Of the arithmetic symbols of []] and two of the arithmetic symbols including the arithmetic symbol of [-] are generated (step S13). Then, respective calculation processes corresponding to the two generated mathematical formulas are executed, and data of each calculation result is stored in the calculation
すると、前記[±](または[-+])の演算記号を展開した[+]の演算記号を含む数式の計算結果と[−]の演算記号を含む数式の計算結果とが比較され(ステップS15)、[±](または[-+])の演算記号を含めた1つの計算結果として纏めることが可能であるか否かが判断される(ステップS16)。 Then, the calculation result of the mathematical expression including the arithmetic symbol [+] obtained by expanding the arithmetic symbol [±] (or [− +]) is compared with the calculation result of the mathematical expression including the arithmetic symbol [−] (step). S15), it is determined whether or not the calculation results including the calculation symbol [±] (or [− +]) can be collected (step S16).
すなわち、例えば前記2つの数式の各計算結果の比較において、当該各計算結果の同じ位置にある演算記号が[+]と[−]で異なり、それ以外の全てにおいて同一である場合は、該当する位置に[±](または[-+])の演算記号を付けて1つの計算結果として纏めることが可能であると判断される。 That is, for example, in the comparison of the calculation results of the two mathematical formulas, when the calculation symbols at the same position of the calculation results are different in [+] and [−] and are the same in all other cases, it is applicable. It is judged that it is possible to put together an operation symbol of [±] (or [-+]) at a position and combine them as one calculation result.
そして、前記ステップS16において、前記2つの数式の各計算結果を[±](または[-+])の演算記号を含めた1つの計算結果として纏めることが可能であると判断されると(ステップS16(Yes))、当該2つの計算結果が[±](または[-+])の演算記号を付けた1つの計算結果に纏められ(ステップS17)、表示部16に表示される(ステップS12)。 If it is determined in step S16 that the calculation results of the two mathematical expressions can be collected as one calculation result including the calculation symbol [±] (or [-+]) (step S16) S16 (Yes)), the two calculation results are combined into one calculation result with an operation symbol of [±] (or [-+]) (step S17) and displayed on the display unit 16 (step S12). ).
なお、前記ステップS15における前記2つの数式の各計算結果の比較において、当該各計算結果が全く同一である場合は、その1つの計算結果が表示部16に表示される。
In the comparison of the calculation results of the two mathematical expressions in step S15, if the calculation results are exactly the same, the single calculation result is displayed on the
一方、前記ステップS16において、前記2つの数式の各計算結果を[±](または[-+])の演算記号を含めた1つの計算結果として纏めることができないと判断された場合は(ステップS16(No))、当該2つの計算結果はそれぞれ別々の計算結果として表示部16に表示される(ステップS18,S12)。 On the other hand, if it is determined in step S16 that the calculation results of the two mathematical expressions cannot be combined into one calculation result including the operation symbol [±] (or [− +]) (step S16). (No)), the two calculation results are displayed as separate calculation results on the display unit 16 (steps S18 and S12).
このように、[±](または[-+])の演算記号を含む任意の数式を入力し自然表示させることができるばかりでなく、当該数式を展開して演算処理した2つの計算結果について、[±](または[-+])の演算記号を付けて纏めることが可能な場合は、1つに纏めた計算結果を表示することができる。 In this way, not only can an arbitrary mathematical expression including an arithmetic symbol of [±] (or [-+]) be input and displayed naturally, but two calculation results obtained by performing arithmetic processing by expanding the mathematical expression are as follows. When it is possible to put together an operation symbol of [±] (or [-+]), it is possible to display the calculation results collected together.
図4は、前記関数電卓10の数式入力・計算処理に従い2次方程式の解を計算した場合の具体例を示す図である。
FIG. 4 is a diagram showing a specific example when the solution of the quadratic equation is calculated according to the mathematical expression input / calculation process of the
図4(A)に示すように、2次方程式の解を求める数式「Solve(X^2+4X+1=0)」がキー入力されて表示部16に表示され(ステップS1→S3(Yes)→S5)、図4(B)に示すように、[EXE](実行)キーが入力されると(ステップS4(Yes))、当該2次方程式「X^2+4X+1=0」の求解演算処理が実行され(ステップS9〜S11)、その計算結果「-2±√3」が表示部16に表示される(ステップS12)。 As shown in FIG. 4A, a mathematical expression “Solve (X ^ 2 + 4X + 1 = 0)” for finding a solution of the quadratic equation is keyed and displayed on the display unit 16 (steps S1 → S3 (Yes ) → S5) As shown in FIG. 4B, when the [EXE] (execute) key is input (step S4 (Yes)), the quadratic equation “X ^ 2 + 4X + 1 = 0”. Is calculated (steps S9 to S11), and the calculation result “−2 ± √3” is displayed on the display unit 16 (step S12).
続いて、前記表示部16に表示された2次方程式「X^2+4X+1=0」の計算結果「-2±√3」を用いて、図4(C)に示すように、その検算式「(-2±√3)^2+4(-2±√3)+1」を入力表示させ(ステップS1→S3(Yes)→S5→S1→S2(Yes)→S6(No)→S7)、図4(D)に示すように、[EXE](実行)キーが入力されると(ステップS4(Yes))、「(-2+√3)^2+4(-2+√3)+1」と「(-2-√3)^2+4(-2-√3)+1」との2つの数式に展開されたそれぞれの演算処理が実行され(ステップS9,S10(Yes)→S13,S14)、その計算結果「0」が表示される(ステップS15〜S17→S12)。
Subsequently, using the calculation result “−2 ± √3” of the quadratic equation “X ^ 2 + 4X + 1 = 0” displayed on the
従って、前記図4(A)〜図4(D)を参照して説明した具体例によれば、[±](または[-+])の演算記号を含む任意の数式を入力し自然表示して演算実行できるので、2次方程式「X^2+4X+1=0」の解「-2±√3」を含む検算式「(-2±√3)^2+4(-2±√3)+1」を簡単に入力表示させて検算実行できるようになる。 Therefore, according to the specific example described with reference to FIGS. 4A to 4D, an arbitrary mathematical expression including an arithmetic symbol [±] (or [− +]) is input and displayed naturally. Therefore, the verification formula including the solution “-2 ± √3” of the quadratic equation “X ^ 2 + 4X + 1 = 0” “(−2 ± √3) ^ 2 + 4 (-2 ± √ 3) +1 ”can be easily input and displayed to enable verification.
図5は、前記関数電卓10の数式入力・計算処理に従い複素数の2次式を計算した場合の具体例を示す図である。
FIG. 5 is a diagram showing a specific example when a complex quadratic expression is calculated according to the mathematical expression input / calculation processing of the
図5(A)に示すように、複素数の二次式「(-2±i)^2」がキー入力されて表示部16に表示され(ステップS1→S3(Yes)→S5→S1→S2(Yes)→S6(No)→S7)、図5(B)に示すように、[EXE](実行)キーが入力されると(ステップS4(Yes))、「(-2+i)^2」と「(-2-i)^2」との2つの数式に展開されたそれぞれの演算処理が実行され(ステップS9,S10(Yes)→S13,S14)、そのそれぞれの計算結果である「3-4i」と「3+4i」とが比較される(ステップS15)。 As shown in FIG. 5A, a complex quadratic expression “(−2 ± i) ^ 2” is keyed and displayed on the display unit 16 (steps S1 → S3 (Yes) → S5 → S1 → S2). (Yes) → S6 (No) → S7) As shown in FIG. 5B, when the [EXE] (execute) key is input (step S4 (Yes)), “(−2 + i) ^ 2 ”and“ (-2-i) ^ 2 ”, the respective arithmetic processes expanded into two mathematical expressions are executed (steps S9, S10 (Yes) → S13, S14), and the respective calculation results are obtained. “3-4i” and “3 + 4i” are compared (step S15).
この場合、各計算結果「3-4i」「3+4i」のうち、2項目にある演算記号が[−]と[+]で異なり、それ以外の全てにおいて同一で、該当する位置に[-+](マイナスプラス)の演算記号を付けた1つの計算結果として纏めることが可能であると判断される(ステップS16(Yes))。 In this case, among the calculation results “3-4i” and “3 + 4i”, the operation symbols in the two items are different between [−] and [+], are the same in all other cases, and [− It is determined that it is possible to combine the calculation results with a calculation symbol of “+] (minus plus)” (step S16 (Yes)).
すると、前記各計算結果「3-4i」「3+4i」が1つに纏められ(ステップS17)、計算結果「3-+4i」として表示部16に表示される(ステップS12)。
Then, the calculation results “3-4i” and “3 + 4i” are combined into one (step S17) and displayed on the
従って、前記図5(A)(B)を参照して説明した具体例によれば、[±](または[-+])の演算記号を含む任意の数式を入力し自然表示して演算実行できるだけでなく、同演算記号[±](または[-+])で纏めた計算結果を表示できる。この際、元の数式「(-2±i)^2」を展開した上段「(-2+i)^2」の計算結果が「3-4i」であり、下段「(-2-i)^2」の計算結果が「3+4i」であることを、符号が逆転したマイナスプラスの演算記号[-+]により纏めた計算結果「3-+4i」として分かり易く表示させることができる。 Therefore, according to the specific example described with reference to FIGS. 5A and 5B, an arbitrary mathematical expression including an arithmetic symbol [±] (or [− +]) is input, and is naturally displayed to execute an arithmetic operation. Not only can the calculation results be summarized with the same symbol [±] (or [-+]). At this time, the calculation result of the upper "(-2 + i) ^ 2" that expands the original formula "(-2 ± i) ^ 2" is "3-4i", and the lower "(-2-i) That the calculation result of “^ 2” is “3 + 4i” can be displayed in an easy-to-understand manner as the calculation result “3- + 4i” summarized by the minus plus operation symbol [− +] with the sign reversed.
したがって、前記構成の関数電卓10による数式入力・計算機能によれば、キー入力部11の数式を入力するためのキーとして[±](プラスマイナス演算記号)キーを備え、当該演算記号[±]を含む数式を入力して自然表示できるだけなく、演算対象の数式中に演算記号[±]が含まれる場合は、そのうち[+]の演算記号を用いた数式と[−]の演算記号を用いた数式との2つの数式に展開してそのそれぞれを演算処理する。そして、2つの計算結果が前記[±]の演算記号を用いて1つに纏められるか否かを比較判断し、1つに纏めた計算結果か、または2つの計算結果をそのまま表示するようにした。
Therefore, according to the mathematical expression input / calculation function of the
このため、プラスマイナスの演算記号[±]を含む数式の計算作業を、より簡単且つ快適に行うことが可能になる。 For this reason, it is possible to more easily and comfortably perform the calculation operation of the mathematical expression including the plus / minus operation symbol [±].
なお、前記実施形態において記載した電子計算機(関数電卓10)による処理の手法、すなわち、図3のフローチャートに示す数式入力・計算処理などの手法は、何れもコンピュータに実行させることができるプログラムとして、メモリカード(ROMカード、RAMカード等)、磁気ディスク(フロッピディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の記録媒体に格納して配布することができる。そして、[±]キーを有するキーボード(11)を備えた電子計算機(10)のコンピュータ(CPU21)は、この記録媒体に記憶されたプログラムを記憶装置(22)に読み込み、この読み込んだプログラムによって動作が制御されることにより、前記実施形態において説明した[±]演算記号を含む数式入力・計算機能を実現し、前述した手法による同様の処理を実行することができる。 Note that the processing method by the electronic calculator (scientific calculator 10) described in the above-described embodiment, that is, the method such as formula input / calculation processing shown in the flowchart of FIG. 3 is a program that can be executed by a computer. It can be stored and distributed in a recording medium such as a memory card (ROM card, RAM card, etc.), magnetic disk (floppy disk, hard disk, etc.), optical disk (CD-ROM, DVD, etc.), semiconductor memory or the like. Then, the computer (CPU 21) of the electronic computer (10) having the keyboard (11) having the [±] key reads the program stored in the recording medium into the storage device (22) and operates according to the read program. Is controlled, the mathematical expression input / calculation function including the [±] operation symbol described in the above embodiment can be realized, and the same processing by the above-described method can be executed.
また、前記各手法を実現するためのプログラムのデータは、プログラムコードの形態として通信ネットワーク上を伝送させることができ、この通信ネットワークに接続されたコンピュータ装置(プログラムサーバ)から前記のプログラムデータを取り込んで記憶装置(22)に記憶させ、前述した[±]演算記号を含む数式入力・計算機能を実現することもできる。 Further, program data for realizing each of the above methods can be transmitted on a communication network in the form of a program code, and the program data is fetched from a computer device (program server) connected to the communication network. In the storage device (22), the mathematical expression input / calculation function including the above-described [±] operation symbols can be realized.
なお、本願発明は、前記実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。さらに、前記実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜な組み合わせにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件から幾つかの構成要件が削除されたり、幾つかの構成要件が異なる形態にして組み合わされても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除されたり組み合わされた構成が発明として抽出され得るものである。 Note that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention in the implementation stage. Further, the embodiments include inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment or some constituent requirements are combined in different forms, the problems described in the column of the problem to be solved by the invention are not solved. When the effects described in the column “Effects of the Invention” can be obtained, a configuration in which these constituent requirements are deleted or combined can be extracted as an invention.
10 …小型電子式計算機(関数電卓)
11 …キー入力部
12 …数値・演算記号キー群
13 …関数機能キー群
14 …モード設定キー群
15 …カーソルキー
16 …表示部
21 …CPU
22 …記憶装置
23 …RAM
23a…表示データメモリ
23b…入力バッファ
23c…カーソルポインタメモリ
23d…数式データメモリ
23e…計算結果データメモリ
10 ... Small electronic calculator (scientific calculator)
DESCRIPTION OF
22 ...
23a ...
Claims (3)
このキー入力部のユーザ操作に応じた数式を入力する数式入力手段と、
この数式入力手段により入力された数式を表示する数式表示手段と、
前記数式入力手段により入力された数式に[±]記号が含まれるか判断する演算記号判断手段と、
この演算記号判断手段により前記数式に[±]記号が含まれると判断された場合に、当該数式をその[±]記号のうち[+]記号を含む数式と[−]記号を含む数式との2つの数式に展開し、各数式について演算実行する数式展開演算手段と、
この数式展開演算手段により演算された前記2つの数式の各計算結果が同じであるか、または各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なるかを判断する計算結果判断手段と、
この計算結果判断手段により前記2つの数式の各計算結果が同じであると判断された場合は1つの計算結果を出力し、各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なると判断された場合は同位置の演算記号を[±]記号に置き換え1つの計算結果に纏めて出力し、そうでない場合は前記各計算結果をそれぞれ出力する計算結果出力手段と、
を備えたことを特徴とする電子計算機。 A key input unit having a [±] key;
Formula input means for inputting a formula corresponding to a user operation of the key input unit;
Formula display means for displaying the formula input by the formula input means,
Arithmetic symbol determination means for determining whether or not a [±] symbol is included in the mathematical formula input by the mathematical formula input means;
When the arithmetic symbol determination means determines that the [±] symbol is included in the mathematical expression, the mathematical expression is divided into a mathematical expression including a [+] symbol and a mathematical expression including a [−] symbol among the [±] symbols. Formula expansion calculation means for expanding into two formulas and executing calculation for each formula;
It is determined whether the calculation results of the two mathematical expressions calculated by the mathematical expression expansion calculation means are the same or only the calculation symbols at the same positions in the calculation results are different between the [+] symbol and the [−] symbol. A calculation result judging means,
When the calculation result determination means determines that the calculation results of the two mathematical expressions are the same, one calculation result is output, and only the operation symbols at the same position in the calculation results are the [+] symbol and the [− ] Calculation result output means for replacing the operation symbol at the same position with the [±] symbol and outputting the result as a single calculation result, otherwise outputting the respective calculation results, respectively. ,
An electronic computer characterized by comprising:
ことを特徴とする請求項1に記載の電子計算機。 The mathematical expression input means has sign reverse input means for inputting a symbol obtained by reversing the sign of the [±] symbol when the [±] key is continuously input in response to a user operation of the key input unit.
The electronic computer according to claim 1.
前記コンピュータを、
前記キー入力部のユーザ操作に応じた数式を入力する数式入力手段、
この数式入力手段により入力された数式を前記表示部に表示させる数式表示手段、
前記数式入力手段により入力された数式に[±]記号が含まれるか判断する演算記号判断手段、
この演算記号判断手段により前記数式に[±]記号が含まれると判断された場合に、当該数式をその[±]記号のうち[+]記号を含む数式と[−]記号を含む数式との2つの数式に展開し、各数式について演算実行する数式展開演算手段、
この数式展開演算手段により演算された前記2つの数式の各計算結果が同じであるか、または各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なるかを判断する計算結果判断手段、
この計算結果判断手段により前記2つの数式の各計算結果が同じであると判断された場合は1つの計算結果を前記表示部に出力し、各計算結果における同じ位置の演算記号のみが[+]記号と[−]記号とで異なると判断された場合は同位置の演算記号を[±]記号に置き換え1つの計算結果に纏めて前記表示部に出力し、そうでない場合は前記各計算結果をそれぞれ前記表示部に出力する計算結果出力手段、
として機能させるためのプログラム。 A program for controlling a computer of an electronic computer having a key input unit having a [±] key and a display unit,
The computer,
Formula input means for inputting a formula corresponding to a user operation of the key input unit,
Formula display means for displaying the formula input by the formula input means on the display unit,
Arithmetic symbol determination means for determining whether or not a [±] symbol is included in the mathematical formula input by the mathematical formula input means;
When the arithmetic symbol determination means determines that the [±] symbol is included in the mathematical expression, the mathematical expression is divided into a mathematical expression including a [+] symbol and a mathematical expression including a [−] symbol among the [±] symbols. Formula expansion calculation means for expanding into two formulas and executing the calculation for each formula,
It is determined whether the calculation results of the two mathematical expressions calculated by the mathematical expression expansion calculation means are the same or only the calculation symbols at the same positions in the calculation results are different between the [+] symbol and the [−] symbol. Calculation result judgment means to
When the calculation result determination means determines that the calculation results of the two mathematical expressions are the same, one calculation result is output to the display unit, and only the operation symbol at the same position in each calculation result is [+]. If it is determined that the symbol and the [−] symbol are different, the calculation symbol at the same position is replaced with a [±] symbol, and the result is output to the display unit as a single calculation result. Calculation result output means for outputting to the display unit,
Program to function as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010276815A JP5659760B2 (en) | 2010-12-13 | 2010-12-13 | Electronic computer and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010276815A JP5659760B2 (en) | 2010-12-13 | 2010-12-13 | Electronic computer and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012128483A true JP2012128483A (en) | 2012-07-05 |
JP5659760B2 JP5659760B2 (en) | 2015-01-28 |
Family
ID=46645465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010276815A Active JP5659760B2 (en) | 2010-12-13 | 2010-12-13 | Electronic computer and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5659760B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62107359A (en) * | 1985-11-06 | 1987-05-18 | Casio Comput Co Ltd | Electronic calculator |
JPS62130453A (en) * | 1985-12-03 | 1987-06-12 | Casio Comput Co Ltd | Electronic calculator |
JPH0944451A (en) * | 1995-07-31 | 1997-02-14 | Toshiba Corp | Numerical arithmetic unit and numerical arithmetic method |
JP2003030159A (en) * | 2001-07-11 | 2003-01-31 | Casio Comput Co Ltd | Square root sign display controlling device, its method and program |
-
2010
- 2010-12-13 JP JP2010276815A patent/JP5659760B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62107359A (en) * | 1985-11-06 | 1987-05-18 | Casio Comput Co Ltd | Electronic calculator |
JPS62130453A (en) * | 1985-12-03 | 1987-06-12 | Casio Comput Co Ltd | Electronic calculator |
JPH0944451A (en) * | 1995-07-31 | 1997-02-14 | Toshiba Corp | Numerical arithmetic unit and numerical arithmetic method |
JP2003030159A (en) * | 2001-07-11 | 2003-01-31 | Casio Comput Co Ltd | Square root sign display controlling device, its method and program |
Also Published As
Publication number | Publication date |
---|---|
JP5659760B2 (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5790070B2 (en) | Display control apparatus and program | |
JP4888502B2 (en) | Graph display control device and program | |
JP6269220B2 (en) | Formula display control apparatus, formula display control method, formula display control program | |
JP2007264741A (en) | Mathematical expression display controller and mathematical expression display control program | |
JP2008276741A (en) | Function calculator and control program therefor | |
JP5659760B2 (en) | Electronic computer and program | |
JP2011034340A (en) | Formula input device and program | |
JP6504128B2 (en) | Electronic device, data processing method and program | |
JP5979212B2 (en) | Electronic equipment and programs | |
JP5488071B2 (en) | Electronic calculator and program | |
JP5141208B2 (en) | Prime factorization calculator | |
JP5326263B2 (en) | Numerical computer and program | |
JP2011043917A (en) | Mathematical expression display arithmetic unit and program | |
JP2009282769A (en) | Electronic calculator | |
JP5315712B2 (en) | Electronic device having arithmetic function and arithmetic processing program | |
JP5381152B2 (en) | Formula arithmetic device and program | |
JP6521047B2 (en) | Formula display control device, formula display control method, formula display control program | |
JP2008146289A (en) | Fraction input display device and fraction input display program | |
JP2008059314A (en) | Formula calculation device and program | |
JP5532890B2 (en) | Display device and program | |
JP5494227B2 (en) | Graphic learning apparatus and program | |
JP5700147B2 (en) | Electronic calculator and program | |
JP5505531B2 (en) | Electronic calculator | |
JP4126497B2 (en) | Electronic calculation apparatus and calculation display processing program | |
JP4893340B2 (en) | Calculation apparatus and calculation program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20131206 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20141029 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20141104 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20141117 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5659760 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |