[go: up one dir, main page]

JP2011186771A - Arithmetic unit and program - Google Patents

Arithmetic unit and program Download PDF

Info

Publication number
JP2011186771A
JP2011186771A JP2010051210A JP2010051210A JP2011186771A JP 2011186771 A JP2011186771 A JP 2011186771A JP 2010051210 A JP2010051210 A JP 2010051210A JP 2010051210 A JP2010051210 A JP 2010051210A JP 2011186771 A JP2011186771 A JP 2011186771A
Authority
JP
Japan
Prior art keywords
unit
solution
calculation
formula
calculation formula
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2010051210A
Other languages
Japanese (ja)
Inventor
Yuichiro Saegusa
雄一郎 三枝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010051210A priority Critical patent/JP2011186771A/en
Publication of JP2011186771A publication Critical patent/JP2011186771A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electrically Operated Instructional Devices (AREA)
  • Calculators And Similar Devices (AREA)

Abstract

【課題】計算式の解の単位が正しい物理単位であるか否かの評価を可能とすることで、ユーザの学習効果を高めること。
【解決手段】所定の単位を適正単位として記憶する適正単位テーブル71を記憶する記憶13と、単位を伴う数値又は文字を構成要素とする計算式を表示する表示部15と、表示部15に表示された計算式の解を演算により求めるCPU11と、このCPU11により求められた計算式の解の単位が適正単位テーブル71により記憶された何れの適正単位とも一致しない場合には、その旨を表示する表示部15と、を備える。
【選択図】図2
An object of the present invention is to improve the learning effect of a user by making it possible to evaluate whether or not the solution unit of a calculation formula is a correct physical unit.
A storage unit that stores a proper unit table that stores a predetermined unit as a proper unit, a display unit that displays a numerical value or character with a unit as a constituent element, and a display unit that displays the calculation unit. If the CPU 11 obtains the solution of the calculated expression by calculation and the unit of the solution of the calculation expression obtained by the CPU 11 does not match any appropriate unit stored in the appropriate unit table 71, this is displayed. And a display unit 15.
[Selection] Figure 2

Description

本発明は演算装置及びプログラムに関する。 The present invention relates to an arithmetic device and a program.

近年、関数計算などの多様多種な計算処理が行える関数電卓と称する小型電子計算機を、計算の学習用として利用することが行われている。   2. Description of the Related Art In recent years, a small electronic computer called a scientific calculator that can perform various types of calculation processing such as function calculation has been used for learning of calculation.

関数電卓に関する技術としては、文字式(物理学の分野で用いられる文字式)からなる等式の左辺及び右辺それぞれに対応する物理単位を、文字式と物理単位が対応付けられたテーブルから求め、それらが一致するか否かを判別することにより、等式の正誤を判定する技術が知られている(例えば、特許文献1参照)。   As a technique related to the scientific calculator, a physical unit corresponding to each of the left side and the right side of an equation consisting of a character expression (character expression used in the field of physics) is obtained from a table in which the character expression and the physical unit are associated, A technique for determining whether an equation is correct or not by determining whether or not they match is known (see, for example, Patent Document 1).

特開2000−163381号公報JP 2000-163381 A

しかしながら、上記の特許文献1の技術では、文字式の正誤を物理単位の一致・不一致で判定することはできるが、物理単位付きの計算式が入力された際に、その解の物理単位が適正な物理単位であるか否かを評価することはできなかった。   However, in the technique of the above-mentioned Patent Document 1, it is possible to determine whether a character expression is correct or incorrect by matching or mismatching of physical units. However, when a calculation formula with physical units is input, the physical unit of the solution is appropriate. It was not possible to evaluate whether it was a physical unit.

ここで、教育の分野(特に、物理・化学の分野)においては、物理単位に関する正しい理解が非常に重要である。しかし、ユーザ(生徒)によっては、物理単位に関する正しい理解が定着していないユーザもいる。このようなユーザは、関数電卓に誤った計算式を入力してしまうこともある。例えば、重力の計算において、本来ならば、3[kg]×9.8[m/s^2](^は、続く数値を指数とする累乗であることを示す)との計算式を入力すべきところを、誤った計算式(例えば、3[kg]÷9.8[m/s^2])を入力してしまう場合も考えられる。この場合、ユーザにより入力された計算式の解の物理単位[kg・s^2/m]は求めるべき適正な物理単位ではない(適正な物理単位は[kg・m/s^2])。   Here, in the field of education (especially in the fields of physics and chemistry), a correct understanding of physical units is very important. However, some users (students) do not have a correct understanding of physical units. Such a user may enter an incorrect calculation formula into the scientific calculator. For example, in the calculation of gravity, a calculation formula of 3 [kg] × 9.8 [m / s ^ 2] (^ indicates a power with the following numerical value as an exponent) is input. It is also conceivable that an incorrect calculation formula (for example, 3 [kg] ÷ 9.8 [m / s ^ 2]) is input. In this case, the physical unit [kg · s ^ 2 / m] of the solution of the calculation formula input by the user is not an appropriate physical unit to be obtained (the appropriate physical unit is [kg · m / s ^ 2]).

このような場合において、従来の技術では、計算式の解の物理単位が適正な物理単位であるか否かを評価し、当該評価に基づいて、入力された計算式が誤っていることをユーザに知らせる機能はない。このため、ユーザは、計算式の入力の誤りに気付くことができず、物理単位に関する正しい知識を習得する機会を得ることができなかった。すなわち、ユーザの学習効果を高めることができなかった。   In such a case, the conventional technique evaluates whether or not the physical unit of the solution of the calculation formula is an appropriate physical unit, and based on the evaluation, the user determines that the input calculation formula is incorrect. There is no function to inform. For this reason, the user cannot notice an error in the input of the calculation formula, and cannot obtain an opportunity to acquire correct knowledge about the physical unit. That is, the user's learning effect could not be enhanced.

本発明の課題は、計算式の解の物理単位が適正な物理単位であるか否かの評価を可能とすることで、ユーザの学習効果を高めることのできる演算装置及びプログラムを提供することを目的とする。   An object of the present invention is to provide an arithmetic device and a program capable of enhancing a user's learning effect by enabling evaluation of whether a physical unit of a solution of a calculation formula is an appropriate physical unit. Objective.

以上の課題を解決するため、請求項1に記載の発明の演算装置は、
所定の単位を適正単位として記憶する適正単位記憶手段と、
単位を伴う数値又は文字を構成要素とする計算式を表示する式表示手段と、
前記式表示手段に表示された計算式の解を演算により求める演算手段と、
この演算手段により求められた計算式の解の単位が前記適正単位記憶手段により記憶された何れの適正単位とも一致しない場合には、その旨を表示する判別結果表示手段と、を備える。
In order to solve the above problems, an arithmetic device according to claim 1 is provided:
An appropriate unit storage means for storing a predetermined unit as an appropriate unit;
Formula display means for displaying a calculation formula including a numerical value or a character with a unit as a constituent element;
A calculation means for calculating a solution of the calculation formula displayed on the formula display means;
When the unit of the solution of the calculation formula obtained by the calculation means does not match any appropriate unit stored by the appropriate unit storage means, a determination result display means for displaying the fact is provided.

請求項2に記載の発明は、請求項1に記載の演算装置において、
前記計算式にSI単位系以外の単位を含む場合、当該SI単位系以外の単位をSI単位に変換する変換手段と、
前記変換手段により変換されたSI単位を含む変換式を作成する変換式作成手段と、
前記変換式作成手段により作成された変換式の解を演算により求める変換式演算手段と、
前記変換式演算手段により求められた変換式の解を表示する変換式解表示手段と、を備える。
According to a second aspect of the present invention, in the arithmetic device according to the first aspect,
A conversion means for converting a unit other than the SI unit system into an SI unit when the calculation formula includes a unit other than the SI unit system;
A conversion expression creating means for creating a conversion expression including the SI unit converted by the conversion means;
A conversion formula calculation means for calculating a solution of the conversion formula created by the conversion formula creation means;
Conversion formula solution display means for displaying a solution of the conversion formula obtained by the conversion formula calculation means.

請求項3に記載の発明は、請求項2に記載の演算装置において、
前記計算式にSI単位系以外の単位を含む場合、当該SI単位系以外の単位をSI単位に変換せずに前記計算式の解を演算により求める計算式演算手段と、
前記計算式演算手段により求められた計算式の解と、前記変換式演算手段により演算された変換式の解とを表示する解表示手段と、備える。
The invention according to claim 3 is the arithmetic unit according to claim 2,
When the calculation formula includes a unit other than the SI unit system, a calculation formula calculation means for calculating a solution of the calculation formula without converting a unit other than the SI unit system into an SI unit;
Solution display means for displaying the solution of the calculation formula obtained by the calculation formula calculation means and the solution of the conversion formula calculated by the conversion formula calculation means.

請求項4に記載の発明は、請求項2又は3に記載の演算装置において、
前記計算式の解及び前記変換式の解の少なくとも1つにSI単位系の基本単位が組み立てられた組立単位を含む場合、当該組立単位を、当該組立単位を表す固有名称からなる単位に変換する単位変換手段と、
前記単位変換手段により変換された固有名称からなる単位を表示する固有名称表示手段と、を備える。
According to a fourth aspect of the present invention, in the arithmetic device according to the second or third aspect,
When at least one of the solution of the calculation formula and the solution of the conversion formula includes an assembly unit in which a basic unit of the SI unit system is assembled, the assembly unit is converted into a unit having a unique name representing the assembly unit. Unit conversion means;
Specific name display means for displaying a unit consisting of the unique name converted by the unit conversion means.

請求項5に記載の発明は、請求項3又は4に記載の演算装置において、
前記計算式の解の単位が前記適正単位記憶手段により記憶された何れの適正単位とも一致せず、前記計算式の解の単位要素が前記適正単位記憶手段に記憶された単位の単位要素と同じ構成である場合、前記計算式の解の単位が適正な物理単位となる前記計算式の候補を表示する候補表示手段を備える。
The invention according to claim 5 is the arithmetic device according to claim 3 or 4,
The unit of solution of the calculation formula does not match any appropriate unit stored by the appropriate unit storage means, and the unit element of the solution of the calculation formula is the same as the unit element of the unit stored in the appropriate unit storage means In the case of the configuration, a candidate display unit is provided for displaying the calculation formula candidate in which the unit of the solution of the calculation formula is an appropriate physical unit.

請求項6に記載の発明は、請求項1から5のいずれか一項に記載の演算装置において、
前記計算式に含まれる単位、当該単位と対応する次元、及び当該単位と対応する接頭辞の少なくとも1つを選択入力するための入力手段を備える。
The invention according to claim 6 is the arithmetic device according to any one of claims 1 to 5,
Input means for selectively inputting at least one of a unit included in the calculation formula, a dimension corresponding to the unit, and a prefix corresponding to the unit.

請求項7に記載の発明のプログラムは、
コンピュータを、
所定の単位を適正単位として記憶する適正単位記憶手段、
単位を伴う数値又は文字を構成要素とする計算式を表示する式表示手段、
前記式表示手段に表示された計算式の解を演算により求める演算手段、
この演算手段により求められた計算式の解の単位が前記適正単位記憶手段により記憶された何れの適正単位とも一致しない場合には、その旨を表示する判別結果表示手段、
として機能させる。
The program of the invention described in claim 7 is:
Computer
An appropriate unit storage means for storing a predetermined unit as an appropriate unit;
Formula display means for displaying a calculation formula including a numerical value or a character with a unit as a component,
Calculation means for obtaining a solution of the calculation formula displayed on the expression display means by calculation,
When the unit of the solution of the calculation formula obtained by the calculation means does not match any appropriate unit stored by the appropriate unit storage means, a determination result display means for displaying that effect,
To function as.

本発明によれば、計算式の解の物理単位が適正な物理単位であるか否かの評価を可能とすることで、ユーザの学習効果を高めることができる。   ADVANTAGE OF THE INVENTION According to this invention, a user's learning effect can be heightened by enabling evaluation of whether the physical unit of the solution of a formula is an appropriate physical unit.

本発明に係る実施の形態の関数電卓の概略構成を示す図である。It is a figure which shows schematic structure of the scientific calculator of embodiment which concerns on this invention. 関数電卓の内部構成を示す図である。It is a figure which shows the internal structure of a scientific calculator. 単位呼出テーブルを示す図である。It is a figure which shows a unit call table. SI単位換算テーブルを示す図である。It is a figure which shows SI unit conversion table. 接頭辞テーブルを示す図である。It is a figure which shows a prefix table. 組立単位変換テーブルを示す図である。It is a figure which shows an assembly unit conversion table. 適正単位テーブルを示す図である。It is a figure which shows an appropriate unit table. 単位判別処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a unit discrimination | determination process. 計算式入力処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a calculation formula input process. 解出力処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a solution output process. 単位判別処理に伴う表示動作を示す図(その1)である。It is FIG. (1) which shows the display operation accompanying a unit discrimination | determination process. 単位判別処理に伴う表示動作を示す図(その2)である。It is FIG. (2) which shows the display operation accompanying a unit discrimination | determination process. 単位判別処理に伴う表示動作を示す図(その3)である。FIG. 10 is a diagram (No. 3) illustrating a display operation associated with unit determination processing. 単位判別処理に伴う表示動作を示す図(その4)である。It is FIG. (4) which shows the display operation accompanying a unit discrimination | determination process. 単位判別処理に伴う表示動作を示す図(その5)である。It is FIG. (5) which shows the display operation accompanying a unit discrimination | determination process. 単位判別処理に伴う表示動作を示す図(その6)である。It is FIG. (6) which shows the display operation accompanying a unit discrimination | determination process. 文字式が入力された場合における表示動作を示す図である。It is a figure which shows the display operation when a character type | formula is input.

以下、添付図面を参照して本発明に係る実施の形態の一例を詳細に説明する。ただし、発明の範囲は、図示例に限定されない。   Hereinafter, an example of an embodiment according to the present invention will be described in detail with reference to the accompanying drawings. However, the scope of the invention is not limited to the illustrated examples.

図1〜16を参照して、本発明に係る実施の形態を説明する。先ず、図1を参照して、本発明に係る演算装置としての関数電卓1の概略図を説明する。図1に示すように、関数電卓1は、各種キー群を有する入力キー群2と、ディスプレイ3と、を備えている。   Embodiments according to the present invention will be described with reference to FIGS. First, with reference to FIG. 1, the schematic of the scientific calculator 1 as an arithmetic unit which concerns on this invention is demonstrated. As shown in FIG. 1, the scientific calculator 1 includes an input key group 2 having various key groups and a display 3.

入力キー群2は、ユーザから数値や演算記号等の数式構成要素の入力操作を受けたり、各種処理の指示操作を受けたりするためのキー群であり、それぞれ固有の機能を割り当てられた複数のキーを備えている。   The input key group 2 is a key group for receiving an input operation of a mathematical expression component such as a numerical value or an arithmetic symbol from a user or an instruction operation of various processes, and a plurality of keys each assigned a unique function. Has a key.

ディスプレイ3は、LCD(Liquid Crystal Display)やELD(Electronic
Luminescent Display)等により構成される。具体的には、ディスプレイ3は、入力ペン(図示省略)や入力キー群2の操作に応じた文字や符号、数式、演算結果などの他、関数電卓1を使用するために必要な各種データを表示する。また、ディスプレイ3には、タッチパネル14F(図2参照)が表示画面全面に亘って一体的に設けられている。
The display 3 is an LCD (Liquid Crystal Display) or ELD (Electronic).
Luminescent Display). Specifically, the display 3 displays various data necessary for using the scientific calculator 1 in addition to characters, symbols, mathematical expressions, and calculation results according to the operation of an input pen (not shown) or the input key group 2. indicate. In addition, the display 3 is integrally provided with a touch panel 14F (see FIG. 2) over the entire display screen.

次に、図2を参照して、関数電卓1の内部構成を説明する。関数電卓1は、制御部であるCPU(Central Processing Unit)11と、主記憶部であるRAM(Random Access Memory)12と、記憶部13と、入力部14と、表示部15と、を備えて構成されている。   Next, the internal configuration of the scientific calculator 1 will be described with reference to FIG. The scientific calculator 1 includes a CPU (Central Processing Unit) 11 that is a control unit, a RAM (Random Access Memory) 12 that is a main storage unit, a storage unit 13, an input unit 14, and a display unit 15. It is configured.

CPU11は、関数電卓1の各部を中央制御する。具体的には、CPU11は、記憶部13に記憶されているシステムプログラム及び各種アプリケーションプログラムの中から指定されたプログラムをRAM12に展開し、RAM12に展開されたプログラムとの協働で、各種処理を実行する。   The CPU 11 centrally controls each part of the scientific calculator 1. Specifically, the CPU 11 expands a program specified from the system program and various application programs stored in the storage unit 13 in the RAM 12 and performs various processes in cooperation with the program expanded in the RAM 12. Execute.

具体的には、CPU11は、後述する単位判別処理を行うプログラムとの協働により、表示部15に表示された計算式の解を演算により求め、当該求められた計算式の解が、適正単位テーブル71に記憶されたいずれの適正単位とも一致しない場合には、その旨(例えば、後述する図14(h)又は図15(b)に示すようなエラー表示)を表示部15に表示させる。   Specifically, the CPU 11 obtains a solution of the calculation formula displayed on the display unit 15 by calculation in cooperation with a program for performing unit determination processing described later, and the solution of the calculated calculation formula is an appropriate unit. If it does not match any of the appropriate units stored in the table 71, a message to that effect (for example, an error display as shown in FIG. 14 (h) or FIG. 15 (b) described later) is displayed on the display unit 15.

RAM12は、情報を一時的に格納する揮発性のメモリであり、実行される各種プログラムやこれら各種プログラムに係るデータ等を格納する複数のワークエリアを有する。   The RAM 12 is a volatile memory that temporarily stores information, and has a plurality of work areas that store various programs to be executed and data related to these various programs.

記憶部13は、ROM(Read Only Memory)等により構成される不揮発性のメモリである。記憶部13は、各種処理プログラム13A及び単位テーブル13Bを含む各種データを記憶する。各種処理プログラム13Aには、後述する単位判別処理を行うプログラム(図8参照)が含まれる。単位テーブル13Bは、単位呼出テーブル31と、SI単位換算テーブル41と、接頭辞テーブル51と、組立単位変換テーブル61と、適正単位テーブル71と、を有する。各テーブルの詳細な説明については後述する(図3〜図7参照)。   The storage unit 13 is a non-volatile memory configured by a ROM (Read Only Memory) or the like. The storage unit 13 stores various data including various processing programs 13A and a unit table 13B. The various processing programs 13A include a program (see FIG. 8) for performing unit determination processing described later. The unit table 13B includes a unit call table 31, an SI unit conversion table 41, a prefix table 51, an assembly unit conversion table 61, and an appropriate unit table 71. Detailed description of each table will be described later (see FIGS. 3 to 7).

入力部14は、上述の入力キー群2を備えており、押下されたキーに対応する操作信号をCPU11に出力するようになっている。具体的には、入力部14は、機能キー14Aと、数字・文字キー14Bと、決定キー14Cと、カーソルキー14Dと、ACキー14Eと、タッチパネル14Fとを有する。   The input unit 14 includes the input key group 2 described above, and outputs an operation signal corresponding to the pressed key to the CPU 11. Specifically, the input unit 14 includes a function key 14A, numeric / character keys 14B, an enter key 14C, a cursor key 14D, an AC key 14E, and a touch panel 14F.

機能キー14Aは、関数電卓1の各種機能を使用する指示の入力操作を受けるキーである。数字・文字キー14Bは、数字又は文字の入力操作を受けるキーである。決定キー14Cは、処理の実行指示や決定指示の入力操作を受けるキーである。カーソルキー14Dは、ディスプレイ3内で編集対象位置や選択対象位置を示すカーソルを所定の移動方向に移動させる指示の入力操作を受けるキーである。ACキー14Eは、記憶部13の記憶領域をクリアする指示の入力操作を受けるキーである。   The function key 14 </ b> A is a key that receives an input operation of an instruction to use various functions of the scientific calculator 1. The number / character key 14B is a key for receiving an operation of inputting numbers or characters. The determination key 14 </ b> C is a key that receives a process execution instruction or a determination instruction input operation. The cursor key 14D is a key that receives an input operation of an instruction to move the cursor indicating the editing target position or the selection target position in the display 3 in a predetermined movement direction. The AC key 14E is a key that receives an input operation of an instruction to clear the storage area of the storage unit 13.

タッチパネル14Fは、表示画面(ディスプレイ3の表示画面)に接触する入力ペン(図示省略)等の接触位置を検出し、その情報をCPU11に出力する。具体的には、タッチパネル14Fは、例えば、表示部15の表示画面上或いは表示画面よりも内側に設けられ、電磁誘導方式、磁気歪式、感圧式等の方式により、表示画面上における接触位置のXY座標を検出し、その情報をCPU11に出力する。   The touch panel 14F detects a contact position of an input pen (not shown) or the like that contacts the display screen (display screen of the display 3), and outputs the information to the CPU 11. Specifically, the touch panel 14F is provided on the display screen of the display unit 15 or on the inner side of the display screen, for example, and the position of the contact position on the display screen is determined by a method such as an electromagnetic induction method, a magnetostriction method, or a pressure sensitive method. XY coordinates are detected and the information is output to the CPU 11.

表示部15は、上述のディスプレイ3を備えており、CPU11からの表示信号に従って画面表示を行う。また、表示部15は、タッチパネル14Fと一体的に構成される。   The display unit 15 includes the display 3 described above, and performs screen display according to a display signal from the CPU 11. The display unit 15 is configured integrally with the touch panel 14F.

次に、図3〜図7を参照して、記憶部13に記憶されている各テーブルについて説明する。先ず、図3を参照して、単位呼出テーブル31について説明する。図3に示すように、単位呼出テーブル31は、どのような物理量であるかを示す「次元」と、物理単位を示す「単位」と、読みや意味を示す「読み・意味」と、を有し、それぞれが対応付けて記憶されている。例えば、次元「長さ」と、単位「m」と、読み・意味「メートル」とが対応付けて記憶されている。以下、単に「単位」と言った場合にも「物理単位」を指すものとする。   Next, each table stored in the storage unit 13 will be described with reference to FIGS. First, the unit call table 31 will be described with reference to FIG. As shown in FIG. 3, the unit call table 31 has “dimension” indicating what physical quantity it is, “unit” indicating physical unit, and “reading / meaning” indicating reading and meaning. These are stored in association with each other. For example, a dimension “length”, a unit “m”, and a reading / meaning “meter” are stored in association with each other. Hereinafter, the term “unit” also refers to “physical unit”.

次に、図4を参照して、SI単位換算テーブル41について説明する。図4に示すように、SI単位換算テーブル41は、前記「次元」と、SI単位系以外の単位を示す「単位」と、SI単位系の基本単位に所定の数値を乗じてなる「SI単位換算」と、を有し、それぞれが対応付けて記憶されている。例えば、次元「長さ」と、単位「y」と、SI単位換算「0.9144m」とが対応付けて記憶されている。なお、SI単位系とは、国際単位系ともいい、現在ほとんどの国で合法的に使用でき、多くの国で使用することが義務づけられている単位系である。従って、SI単位系以外の単位をSI単位系の単位(以下、単に「SI単位」ともいう。)に変換することに意義がある。   Next, the SI unit conversion table 41 will be described with reference to FIG. As shown in FIG. 4, the SI unit conversion table 41 is obtained by multiplying the “dimension”, “unit” indicating a unit other than the SI unit system, and a basic unit of the SI unit system by a predetermined numerical value. Conversion "and each of them is stored in association with each other. For example, the dimension “length”, the unit “y”, and the SI unit conversion “0.9144m” are stored in association with each other. The SI unit system is also called an international unit system, and is a unit system that can be used legally in most countries and is required to be used in many countries. Therefore, it is meaningful to convert units other than the SI unit system into units of the SI unit system (hereinafter also simply referred to as “SI units”).

次に、図5を参照して、接頭辞テーブル51について説明する。図5に示すように、接頭辞テーブル51は、物理単位の接頭辞を示す「接頭辞」と、当該接頭辞が意味する値である「10」と、を有し、それぞれが対応付けて記憶されている。例えば、接頭辞「n」と、10「10−9」とが対応付けて記憶されている。 Next, the prefix table 51 will be described with reference to FIG. As shown in FIG. 5, the prefix table 51 includes a “prefix” indicating a prefix of a physical unit and “10 n ” that is a value that the prefix means. It is remembered. For example, the prefix “n” and 10 n “10 −9 ” are stored in association with each other.

次に、図6を参照して、組立単位変換テーブル61について説明する。図6に示すように、組立単位変換テーブル61は、複数のSI単位系の基本単位が組み立てられた「組立単位」と、当該組立単位を表す固有名称からなる単位である「固有名称」とを有し、それぞれが対応付けて記憶されている。例えば、組立単位「kg・m/s^2」と、固有名称「N」とが対応付けて記憶されている。   Next, the assembly unit conversion table 61 will be described with reference to FIG. As shown in FIG. 6, the assembly unit conversion table 61 includes an “assembly unit” in which basic units of a plurality of SI unit systems are assembled, and a “unique name” that is a unit including a unique name representing the assembly unit. Each of which is stored in association with each other. For example, the assembly unit “kg · m / s ^ 2” and the unique name “N” are stored in association with each other.

次に、図7を参照して、適正単位テーブル71について説明する。図7に示すように、適正単位テーブル71には、適正単位が記憶されている。適正単位としては、物理単位を含む通常の計算において、解として得られる物理的に意味のある物理単位が予め記憶されている。特に、学習初心者が行う計算の解として得られる簡単な物理単位に限定しても良い。   Next, the appropriate unit table 71 will be described with reference to FIG. As shown in FIG. 7, the appropriate unit table 71 stores appropriate units. As appropriate units, physically meaningful physical units obtained as solutions in normal calculations including physical units are stored in advance. In particular, it may be limited to a simple physical unit obtained as a solution for calculation performed by a learning beginner.

次に、図8〜図16を参照して、関数電卓1で実行される単位判別処理を説明する。単位判別処理は、ユーザにより入力された計算式を演算し、演算された解の単位が適正な物理単位であるか否かを判別し、当該判別結果を表示部15に表示する処理である。以下、計算式として数式が入力された場合について説明する。また、予め、関数電卓1で実行される複数のモード(後述する単位判別モードや通常計算を実行するモード等)を選択できる選択画面が表示部15に表示されているものとする。   Next, with reference to FIG. 8 to FIG. 16, a unit determination process executed by the scientific calculator 1 will be described. The unit determination process is a process of calculating a calculation formula input by the user, determining whether the calculated solution unit is an appropriate physical unit, and displaying the determination result on the display unit 15. Hereinafter, a case where a mathematical formula is input as a calculation formula will be described. In addition, it is assumed that a selection screen in which a plurality of modes (unit determination mode, which will be described later, a mode for executing normal calculation, etc.) to be executed on the scientific calculator 1 can be selected in advance is displayed on the display unit 15.

先ず、ユーザからのモード選択入力が受け付けられる(ステップS1)。ステップS1の実行後、ステップS1において入力されたモードがUnit Verifyモード(単位判別モード)であるか否かが判別される(ステップS2)。Unit Verifyモードとは、計算式の解の単位が適正単位テーブル71に記憶されている単位であるか否かを判別するモードのことをいう。   First, a mode selection input from the user is accepted (step S1). After execution of step S1, it is determined whether or not the mode input in step S1 is the unit verify mode (unit determination mode) (step S2). The unit verify mode is a mode for determining whether or not the unit of the solution of the calculation formula is a unit stored in the appropriate unit table 71.

ステップS2において、Unit Verifyモードが選択されていないと判別された場合(ステップS2;NO)、関数電卓1における他のモードによる通常計算が実行されるので、説明を省略する。   If it is determined in step S2 that the unit verify mode has not been selected (step S2; NO), normal calculation in another mode in the scientific calculator 1 is executed, and thus description thereof is omitted.

ステップS2において、Unit Verifyモードが選択されたと判別された場合(ステップS2;YES)、計算式入力処理が実行される(ステップS3)。例えば、Unit Verifyモードが選択されたと判別されると、図11(a)に示すように、「Unit Verify:ON」の文字が表示部15に表示される。   If it is determined in step S2 that the unit verify mode has been selected (step S2; YES), calculation formula input processing is executed (step S3). For example, when it is determined that the unit verify mode is selected, the characters “Unit Verify: ON” are displayed on the display unit 15 as shown in FIG.

ここで、図9を参照して、ステップS3で実行される計算式入力処理について説明する。先ず、数値・演算子が入力に応じて表示される(ステップS11)。例えば、数値「14200」が入力部14を介して入力された場合、図11(b)に示すように、数値「14200」が表示部15に表示される。   Here, the calculation formula input process executed in step S3 will be described with reference to FIG. First, numerical values / operators are displayed according to the input (step S11). For example, when the numerical value “14200” is input via the input unit 14, the numerical value “14200” is displayed on the display unit 15 as illustrated in FIG.

ステップS11の実行後、ユーザにより入力部14を介して単位呼び出し操作が行われたか否かが判別される(ステップS12)。単位呼び出し操作とは、入力された数値の単位を、記憶部13に記憶された単位呼出テーブル31から読み出して、当該読み出された単位を表示部15に表示させるための操作のことをいう。   After execution of step S11, it is determined whether or not a unit call operation has been performed by the user via the input unit 14 (step S12). The unit call operation refers to an operation for reading an input numerical unit from the unit call table 31 stored in the storage unit 13 and displaying the read unit on the display unit 15.

ステップS12において、単位呼び出し操作が行われていないと判別された場合(ステップS12;NO)、後述するステップS20に移行される。ステップS12において、単位呼び出し操作が行われたと判別された場合(ステップS12;YES)、現在のカーソル位置が単位入力可能な位置であるか否かが判別される(ステップS13)。単位入力可能な位置とは、数値の直後やスカラー量を表す文字の直後を指す。例えば、図11(b)に示すように、現在のカーソル位置(アンダーバーの位置)が数値「14200」の直後に位置する場合は、カーソルが単位入力可能な位置であると判別される。   If it is determined in step S12 that the unit call operation has not been performed (step S12; NO), the process proceeds to step S20 described later. If it is determined in step S12 that the unit call operation has been performed (step S12; YES), it is determined whether or not the current cursor position is a position where unit input is possible (step S13). The position where unit input is possible refers to the position immediately after the numerical value or the character representing the scalar quantity. For example, as shown in FIG. 11B, when the current cursor position (underbar position) is located immediately after the numerical value “14200”, it is determined that the cursor is a position where unit input is possible.

ステップS13において、単位入力可能な位置でないと判別された場合(ステップS13;NO)、Error表示(エラー表示)される(ステップ14)。例えば、カーソル位置が演算子の直後にあった場合には、単位入力が可能でないので、カーソル位置が単位入力可能でない位置である旨のエラーが表示部15に表示される。   If it is determined in step S13 that the unit input is not possible (step S13; NO), Error display (error display) is performed (step 14). For example, when the cursor position is immediately after the operator, unit input is not possible, and therefore an error indicating that the cursor position is a position where unit input is not possible is displayed on the display unit 15.

ステップS13において、単位入力可能な位置であると判別された場合(ステップS13;YES)、単位呼出テーブル31から次元が読み出され、当該読み出された次元が表示部14に一覧表示される(ステップS15)。   If it is determined in step S13 that the unit can be input (step S13; YES), the dimensions are read from the unit call table 31, and the read dimensions are displayed as a list on the display unit 14 ( Step S15).

ステップS15において次元が一覧表示されると、ユーザによる入力部14を介した入力操作により、ユーザ所望の次元の選択入力を受け付ける(ステップS16)。   When the dimension is displayed as a list in step S15, a user's desired dimension selection input is accepted by an input operation via the input unit 14 by the user (step S16).

ステップS16において次元の選択入力を受け付けると、接頭辞と、選択された次元の単位とが一覧表示される(ステップS17)。具体的には、接頭辞テーブル51から接頭辞が読み出され、単位呼出テーブル31からステップS16において選択された次元に対応する単位が読み出される。そして、当該読み出された接頭辞と、当該読み出された単位とが表示部15に一覧表示される。このとき、例えば、図11(c)に示すように、次元、接頭辞及び単位が表示部15に一覧表示される。   When a dimension selection input is received in step S16, the prefix and the unit of the selected dimension are displayed in a list (step S17). Specifically, the prefix is read from the prefix table 51, and the unit corresponding to the dimension selected in step S16 is read from the unit call table 31. Then, the read prefix and the read unit are displayed in a list on the display unit 15. At this time, for example, as shown in FIG. 11C, dimensions, prefixes, and units are displayed in a list on the display unit 15.

ステップS17の実行後、接頭辞及び単位の選択受付が実行される(ステップS18)。具体的には、ユーザによる入力部14を介した入力操作により、ステップ17において一覧表示された接頭辞及び単位の中から、ユーザ所望の接頭辞及び単位の選択入力が受け付けられる。例えば、図11(c)に示すように、次元:長さ、接頭辞:なし、単位:m「メートル」がユーザにより選択入力されると、選択受付が実行され、選択入力された箇所が反転表示される。   After execution of step S17, a prefix and unit selection reception is executed (step S18). Specifically, the user's input operation via the input unit 14 accepts a user-desired prefix and unit selection input from among the prefixes and units displayed in a list in step 17. For example, as shown in FIG. 11C, when the dimension: length, prefix: none, and unit: m “meter” are selected and input by the user, selection reception is executed, and the selected and input location is reversed. Is displayed.

ステップS18の実行後、選択された接頭辞及び単位が表示される(ステップS19)。例えば、次元:長さ、接頭辞:なし、単位:m「メートル」がユーザにより選択入力された場合、図11(d)に示すように、単位:mが表示される。   After execution of step S18, the selected prefix and unit are displayed (step S19). For example, when dimension: length, prefix: none, unit: m “meter” is selected and input by the user, unit: m is displayed as shown in FIG.

ステップS19の実行後、演算実行操作があったか否かが判別される(ステップS20)。具体的には、ユーザによる入力部14を介した入力操作により、入力された計算式に対して演算を実行する旨の入力操作(演算実行操作)が受け付けられたか否かが判別される。   After execution of step S19, it is determined whether or not there has been a calculation execution operation (step S20). Specifically, it is determined whether or not an input operation (calculation execution operation) for performing an operation on the input calculation formula is accepted by an input operation via the input unit 14 by the user.

ステップS20において、演算実行操作がないと判別された場合(ステップS20;NO)、ステップS11に戻る。ステップS20において、演算実行操作があったと判別された場合(ステップS20;YES)、計算式入力処理は終了され、単位判別処理に戻る。
例えば、図11(d)の状態から演算子「÷」が入力されると、演算実行操作がないと判別され(ステップS20;NO)、演算子「÷」が入力に応じて表示される(ステップS11)。その後、上記処理を繰り返し、図12(e)に示す計算式が入力された状態で演算実行操作があったと判別されると(ステップS20;YES)、計算式入力処理を終了する。
If it is determined in step S20 that there is no operation execution operation (step S20; NO), the process returns to step S11. In step S20, when it is determined that there has been a calculation execution operation (step S20; YES), the calculation formula input process is terminated and the process returns to the unit determination process.
For example, when the operator “÷” is input from the state of FIG. 11D, it is determined that there is no operation execution operation (step S20; NO), and the operator “÷” is displayed according to the input ( Step S11). Thereafter, the above processing is repeated, and when it is determined that there has been an operation execution operation in a state where the calculation formula shown in FIG. 12E is input (step S20; YES), the calculation formula input processing is terminated.

図8に示す単位判別処理に戻り、解出力処理が実行される(ステップS4)。ここで、図10を参照して、数式演算処理のステップS4で実行される解出力処理について説明する。   Returning to the unit determination process shown in FIG. 8, the solution output process is executed (step S4). Here, with reference to FIG. 10, the solution output process executed in step S4 of the mathematical expression calculation process will be described.

先ず、計算式入力処理において入力された計算式にSI単位系以外の単位があるか否かが判別される(ステップS31)。具体的には、入力された計算式の単位と、SI単位換算テーブル41とが参照され、入力された計算式の単位にSI単位換算テーブル41に記憶されている単位が存在するか否かが判別される。例えば、図12(e)に示す計算式が入力された場合、計算式には、SI単位換算テーブル41に記憶されている単位である「h」を含む。この場合、本ステップでは、YESと判別される。   First, it is determined whether or not there is a unit other than the SI unit system in the calculation formula input in the calculation formula input process (step S31). Specifically, the unit of the input calculation formula and the SI unit conversion table 41 are referred to, and whether or not the unit stored in the SI unit conversion table 41 exists in the unit of the input calculation formula. Determined. For example, when the calculation formula shown in FIG. 12E is input, the calculation formula includes “h” that is a unit stored in the SI unit conversion table 41. In this case, YES is determined in this step.

ステップS31において、計算式にSI単位系以外の単位がないと判別された場合(ステップS31;NO)、後述するステップS33に移行される。ステップS31において、計算式にSI単位系以外の単位があると判別された場合(ステップS31;YES)、該当部分がSI単位系に変換された変換式が作成される(ステップS32)。すなわち、SI単位換算テーブル41に記憶されている単位(該当部分)が当該テーブルにおいて対応付けられたSI単位系の単位(SI単位)に変換され、当該変換されたSI単位を含む変換式が作成される。   If it is determined in step S31 that there is no unit other than the SI unit system in the calculation formula (step S31; NO), the process proceeds to step S33 described later. If it is determined in step S31 that there is a unit other than the SI unit system in the calculation formula (step S31; YES), a conversion formula in which the corresponding part is converted into the SI unit system is created (step S32). That is, the unit (corresponding part) stored in the SI unit conversion table 41 is converted to the SI unit system unit (SI unit) associated in the table, and a conversion formula including the converted SI unit is created. Is done.

例えば、図12(e)に示す式の場合、単位「h」はSI単位換算テーブル41に記憶されている単位であるため、当該「h」が該当部分となる。この場合、SI単位換算テーブル41の単位「h」と対応付けて記憶されている「3600s」が読み出され、当該読み出された「3600s」と、単位「h」の数値である「2」との乗算が実行される。すなわち、図11B(f)に示すように、計算式14200[m]÷4[s]÷2[h]を変換した変換式14200[m]÷4[s]÷7200[s]が作成される。このとき、変換式は、表示部15には表示されなくても良い。   For example, in the case of the equation shown in FIG. 12E, the unit “h” is a unit stored in the SI unit conversion table 41, and therefore “h” is a corresponding portion. In this case, “3600 s” stored in association with the unit “h” in the SI unit conversion table 41 is read out, and the read out “3600 s” and the numerical value of the unit “h” “2”. And multiplication is performed. That is, as shown in FIG. 11B (f), a conversion formula 14200 [m] ÷ 4 [s] ÷ 7200 [s] obtained by converting the calculation formula 14200 [m] ÷ 4 [s] ÷ 2 [h] is created. The At this time, the conversion formula may not be displayed on the display unit 15.

ステップS32の実行後、各式について計算が実行される(ステップS33)。例えば、図12(f)の場合、計算式14200[m]÷4[s]÷2[h]と、変換式14200[m]÷4[s]÷7200[s]とについての計算がそれぞれ実行される。これにより、計算式の解と変換式の解とが計算により求められる。
この際行われる計算は、数値(文字でも良い)と、単位とを分けて行われる。すなわち、図12(f)を例にとると、計算式14200[m]÷4[s]÷2[h]のうち、数値部分の計算14200÷4÷2が実行され、解の数値部分1775が算出される。また、単位部分の計算m÷s÷hが実行され、解の単位部分[m・(s・h)]が算出される。そしてこれらを組み合わせた1775[m/(h・s)]が解として得られる。
After execution of step S32, calculation is performed for each formula (step S33). For example, in the case of FIG. 12F, the calculation formulas 14200 [m] ÷ 4 [s] ÷ 2 [h] and the conversion formulas 14200 [m] ÷ 4 [s] ÷ 7200 [s] are respectively calculated. Executed. Thereby, the solution of the calculation formula and the solution of the conversion formula are obtained by calculation.
The calculation performed at this time is performed separately for numerical values (may be characters) and units. That is, taking FIG. 12 (f) as an example, of the calculation formula 14200 [m] ÷ 4 [s] ÷ 2 [h], the numerical portion calculation 14200 ÷ 4 ÷ 2 is executed, and the numerical portion 1775 of the solution. Is calculated. Further, the unit part calculation m ÷ s ÷ h is executed, and the unit part [m · (s · h)] of the solution is calculated. Then, 1775 [m / (h · s)] combining these is obtained as a solution.

ステップS33の実行後、固有の名称を持つ組立単位があるか否かが判別される(ステップS34)。具体的には、ステップS33で求められた解の単位と、組立単位変換テーブル61とが比較され、計算式の解及び変換式の解の少なくとも1つに組立変換テーブル61の組立単位が含まれるか否かにより、本ステップの判別が行われる。   After execution of step S33, it is determined whether there is an assembly unit having a unique name (step S34). Specifically, the solution unit obtained in step S33 and the assembly unit conversion table 61 are compared, and the assembly unit of the assembly conversion table 61 is included in at least one of the solution of the calculation formula and the solution of the conversion formula. Whether or not this step is determined is determined depending on whether or not.

例えば、ユーザにより、図16(a)に示す計算式が入力されたとする。この場合、図16(b)に示すように、計算式1[t]×10[y/s^2]を変換した変換式1000[kg]×(10×0.9144)[m/s^2]が作成される。そして、各式の計算が実行される。
このとき、解9144[kg・m/s^2]に含まれる単位[kg・m/s^2]は、組立単位変換テーブル61の組立単位[kg・m/s^2]と一致するので、変換式の解には、組立単位変換テーブル61の組立単位が含まれる。この場合、本ステップではYESと判別される。
For example, it is assumed that the calculation formula shown in FIG. In this case, as shown in FIG. 16B, a conversion formula 1000 [kg] × (10 × 0.9144) [m / s ^ obtained by converting the calculation formula 1 [t] × 10 [y / s ^ 2]. 2] is created. Then, calculation of each formula is executed.
At this time, the unit [kg · m / s ^ 2] included in the solution 9144 [kg · m / s ^ 2] matches the assembly unit [kg · m / s ^ 2] of the assembly unit conversion table 61. The solution of the conversion formula includes the assembly unit of the assembly unit conversion table 61. In this case, YES is determined in this step.

ステップS34において、固有の名称を持つ組立単位がないと判別された場合(ステップS34;NO)、後述するステップS36に移行される。ステップS34において、固有の名称を持つ組立単位があると判別された場合(ステップS34;YES)、単位変換が実行される(ステップS35)。すなわち、組立単位が固有名称に変換される。例えば、図16(b)に示すように、変換式の解9144[kg・m/s^2]は組立単位[kg・m/s^2]を含む。この場合、組立単位変換テーブル61の組立単位[kg・m/s^2]に対応付けて記憶されている固有名称「N」が読み出され、組立単位[kg・m/s^2]は固有名称「N」に単位変換される。なお、図16(b)では、変換式の解に組立単位を含む場合を示したが、計算式の解に組立単位を含む場合は、計算式の解に含まれる組立単位が固有名称に変換される。   If it is determined in step S34 that there is no assembly unit having a unique name (step S34; NO), the process proceeds to step S36 described later. If it is determined in step S34 that there is an assembly unit having a unique name (step S34; YES), unit conversion is executed (step S35). That is, the assembly unit is converted into a unique name. For example, as shown in FIG. 16B, the solution 9144 [kg · m / s ^ 2] of the conversion formula includes an assembly unit [kg · m / s ^ 2]. In this case, the unique name “N” stored in association with the assembly unit [kg · m / s ^ 2] in the assembly unit conversion table 61 is read, and the assembly unit [kg · m / s ^ 2] is The unit is converted to the unique name “N”. FIG. 16B shows the case where the conversion unit includes an assembly unit. However, when the calculation solution includes an assembly unit, the assembly unit included in the calculation solution is converted into a unique name. Is done.

ステップS35の実行後、解の単位と、適正単位テーブルの単位とが一致するか否かが判別される(ステップS36)。具体的には、計算式の解の単位及び変換式の解の単位と、適正単位テーブル71に記憶されている適正単位とが比較され、計算式の解の単位又は変換式の解の単位が、適正単位テーブル71に記憶されている適正単位に何れか1つでも一致するか否かが判別される。本ステップにおいて、解の単位と、適正単位テーブル71に記憶されている単位とが一致すると判別された場合は、解の単位は適正な物理単位であると判別される。また、解の単位と、適正単位テーブル71に記憶されている単位とが一致しないと判別された場合は、解の単位は適正な物理単位ではないと判別される。   After the execution of step S35, it is determined whether or not the solution unit matches the unit of the appropriate unit table (step S36). Specifically, the solution unit of the calculation formula and the solution unit of the conversion formula are compared with the proper unit stored in the proper unit table 71, and the solution unit of the calculation formula or the solution unit of the conversion formula is determined. It is determined whether any one of the proper units stored in the proper unit table 71 matches. In this step, if it is determined that the solution unit matches the unit stored in the appropriate unit table 71, the solution unit is determined to be an appropriate physical unit. If it is determined that the solution unit and the unit stored in the appropriate unit table 71 do not match, it is determined that the solution unit is not an appropriate physical unit.

ステップS36において、解の単位と、適正単位テーブルの単位とが一致すると判別された場合(ステップS36;YES)、結果が出力される(ステップS37)。このとき、変換式が作成されていた場合は、変換式の解と、計算式の解とが識別可能に表示部15に表示される。すなわち、変換式の解と、SI単位系以外の単位をSI単位に変換せずに演算により求められた解とが表示部15に表示される。例えば、図12(g)に示すように、変換式の解0.5[m/s^2]と、計算式の解1775[m/(h・s)]とが表示部15に表示され、計算式の解は括弧付きで表示される。また、図16(c)に示すように、変換式の解9144[N]と、計算式の解10[t・m/s^2]とが表示部15に表示され、計算式の解は括弧付きで表示される。ステップS37の実行後、単位判別処理に戻る。   If it is determined in step S36 that the solution unit matches the unit in the appropriate unit table (step S36; YES), the result is output (step S37). At this time, if a conversion formula has been created, the solution of the conversion formula and the solution of the calculation formula are displayed on the display unit 15 in an identifiable manner. That is, the display unit 15 displays the solution of the conversion formula and the solution obtained by calculation without converting units other than the SI unit system to SI units. For example, as shown in FIG. 12 (g), the solution 0.5 [m / s ^ 2] of the conversion formula and the solution 1775 [m / (h · s)] of the calculation formula are displayed on the display unit 15. The solution of the calculation formula is displayed in parentheses. Further, as shown in FIG. 16C, the conversion formula solution 9144 [N] and the calculation formula solution 10 [t · m / s ^ 2] are displayed on the display unit 15, and the calculation formula solution is Displayed with parentheses. After executing step S37, the process returns to the unit determination process.

ステップS36において、解の単位と適正単位テーブルの単位とが一致しないと判別された場合(ステップS36;NO)、解の単位と同じ単位要素で構成された単位が適正単位テーブルにあるか否かが判別される(ステップS38)。すなわち、計算式の解の単位の単位要素が適正単位テーブル71に記憶されている適正単位の単位要素と同じ構成であるか否かが判別される。例えば、図13(a)〜(d)、図13(e)〜(f)に示すような画面表示が順に実行され、その後、図14(g)に示す3[kg]÷9.8[m/s^2]の計算が実行されたとする。この場合、計算結果の単位[kg・s^2/m]と同じ単位要素で構成された単位[kg・m/s^2]が適正単位テーブル71に含まれる。この場合、本ステップではYESと判別される。   If it is determined in step S36 that the unit of the solution does not match the unit of the appropriate unit table (step S36; NO), whether or not there is a unit composed of the same unit elements as the unit of the solution in the appropriate unit table. Is discriminated (step S38). That is, it is determined whether the unit element of the solution unit of the calculation formula has the same configuration as the unit element of the appropriate unit stored in the appropriate unit table 71. For example, the screen displays as shown in FIGS. 13A to 13D and FIGS. 13E to 13F are executed in order, and then 3 [kg] /9.8 [9.8] shown in FIG. Assume that calculation of m / s ^ 2] is executed. In this case, the unit [kg · m / s ^ 2] composed of the same unit elements as the unit [kg · s ^ 2 / m] of the calculation result is included in the appropriate unit table 71. In this case, YES is determined in this step.

ステップS38において、解の単位と同じ単位要素で構成された単位が適正単位テーブルにあると判別された場合(ステップS38;YES)、Error表示とともに、適正な物理単位が算出されるように計算式の演算子を変更したものが候補として表示される(ステップS39)。すなわち、計算式が間違っていることを示すError表示(エラー表示)とともに、計算式の解の単位が適正な物理単位となる計算式の候補が表示される。例えば、図14(h)に示すように、「Invalid Unit Calculation ERROR!」とのError表示(エラー表示)がされるとともに、計算式の解の単位として適正な物理単位が算出されるように計算式の演算子を変更した3[kg]×9.8[m/s^2]が「?」を付して候補として表示される。
なお、変換式が作成された場合において、変換式の解の単位と同じ単位要素で構成された単位が適正単位テーブル71にあると判別される場合も考えられる。ここで、ユーザにとっては、入力した計算式がどこで間違っているかを知ることが単位計算を学習する上では重要である。このため、変換式の解の単位と同じ単位要素で構成された単位が適正単位テーブル71にあると判別された場合には、計算式の解として適正な物理単位となる計算式の候補が表示される。すなわち、変換式の解の単位が適正単位テーブルにある単位となるように変換式の演算子を変更した場合と同様の演算子の変更を、計算式に反映し、計算式の解として適正な物理単位となる計算式の候補として表示される。ステップS39の実行後、単位判別処理に戻る。
In step S38, when it is determined that a unit composed of the same unit element as the solution unit is in the appropriate unit table (step S38; YES), the calculation formula is calculated so that an appropriate physical unit is calculated together with the error display. Are displayed as candidates (step S39). That is, along with an error display (error display) indicating that the calculation formula is incorrect, a calculation formula candidate in which the solution unit of the calculation formula is an appropriate physical unit is displayed. For example, as shown in FIG. 14 (h), an error display (error display) “Invalid Unit Calculation ERROR!” Is displayed, and calculation is performed so that an appropriate physical unit is calculated as a solution unit of the calculation formula. 3 [kg] × 9.8 [m / s ^ 2] in which the operator of the expression is changed is displayed as a candidate with “?” Added.
In addition, when the conversion formula is created, there may be a case where it is determined that the unit composed of the same unit element as the solution unit of the conversion formula is in the appropriate unit table 71. Here, it is important for the user to learn the unit calculation to know where the input calculation formula is wrong. For this reason, when it is determined that the unit composed of the same unit element as the solution unit of the conversion formula is in the appropriate unit table 71, a calculation formula candidate that is an appropriate physical unit is displayed as the solution of the calculation formula. Is done. In other words, the same operator change as when the operator of the conversion formula is changed so that the unit of the solution of the conversion formula is the unit in the appropriate unit table is reflected in the calculation formula, It is displayed as a candidate for a calculation formula that becomes a physical unit. After execution of step S39, the process returns to the unit determination process.

ステップS38において、計算結果の単位と同じ単位要素で構成された単位が適正単位テーブルにないと判別された場合(ステップS38;NO)、Error表示がされる(ステップS40)。例えば、図13(a)に示す計算式の計算が実行された場合、当該計算結果の単位[kg・s^3/m]と同じ単位要素で構成された単位は、適正単位テーブル71には存在しない。このため、図15(b)に示すように、「Invalid Unit Calculation ERROR!」とのエラー表示がされる。ステップS40の実行後、単位判別処理に戻る。   If it is determined in step S38 that a unit composed of the same unit elements as the unit of the calculation result is not in the appropriate unit table (step S38; NO), an error display is displayed (step S40). For example, when the calculation of the calculation formula shown in FIG. 13A is executed, the unit composed of the same unit elements as the unit [kg · s ^ 3 / m] of the calculation result is stored in the appropriate unit table 71. not exist. Therefore, as shown in FIG. 15B, an error message “Invalid Unit Calculation ERROR!” Is displayed. After executing step S40, the process returns to the unit determination process.

図8に示す単位判別処理に戻り、単位判別処理は終了する。   Returning to the unit determination process shown in FIG. 8, the unit determination process ends.

以上、本実施の形態によれば、計算式の解の単位が、適正単位テーブル71に記憶された何れの適正単位とも一致しないか否かを判別するので、計算式の解の単位が適正な物理単位であるか否かの評価が可能となる。また、誤った計算式が入力された場合であっても、誤った計算式であることを示す旨(例えば、図14(h)又は図15(b)に示すようなエラー表示)が表示部15に表示されるので、ユーザは計算式の誤りに気付くことができる。これにより、ユーザは単位系の正しい知識を習得する機会を得ることができ、ユーザの学習効果を高めることができる。   As described above, according to the present embodiment, it is determined whether the solution unit of the calculation formula does not match any of the proper units stored in the proper unit table 71. Therefore, the solution unit of the calculation formula is appropriate. It is possible to evaluate whether or not it is a physical unit. In addition, even when an incorrect calculation formula is input, the display unit indicates that the calculation formula is incorrect (for example, an error display as shown in FIG. 14 (h) or FIG. 15 (b)). 15, the user can notice an error in the calculation formula. Thereby, the user can obtain an opportunity to acquire correct knowledge of the unit system, and the learning effect of the user can be enhanced.

また、変換式の解を演算し、演算された変換式の解が表示部15に表示されるので、ユーザは、正規な単位であるSI単位で表された解を参照することができる。   Further, since the solution of the conversion equation is calculated and the calculated solution of the conversion equation is displayed on the display unit 15, the user can refer to the solution expressed in SI units which are normal units.

また、計算式の解と、変換式の解とが表示部15に表示されるので、ユーザは、計算式の解と、変換式の解との比較をすることができる。また、ユーザは、計算式の解と変換式の解との比較によって、SI単位への変換についての学習効果を高めることができる。   Further, since the solution of the calculation formula and the solution of the conversion formula are displayed on the display unit 15, the user can compare the solution of the calculation formula with the solution of the conversion formula. In addition, the user can enhance the learning effect on the conversion to the SI unit by comparing the solution of the calculation formula and the solution of the conversion formula.

また、計算式の解及び変換式の解の少なくとも1つに組立単位を含む場合、当該組立単位を固有名称に変換して表示部15に表示するので、ユーザは、正規であり、且つ簡潔な解を参照することが可能となる。   Further, when an assembly unit is included in at least one of the solution of the calculation formula and the solution of the conversion formula, the assembly unit is converted into a unique name and displayed on the display unit 15, so that the user is regular and concise. It is possible to refer to the solution.

また、適正単位と、計算式の解の単位とが一致せず、計算式の解の単位の単位要素が適正単位の単位要素と同じである場合、計算式の解の単位が適正な物理単位となる計算式の候補が表示部15に表示される。これにより、ユーザは、入力した計算式が間違っていた場合であっても、計算式がどこで間違っていることを知ることができるとともに、正しい計算式の候補を知ることができる。   Also, if the appropriate unit and the solution unit of the formula do not match and the unit element of the solution unit of the formula is the same as the unit element of the appropriate unit, the unit of the solution of the formula is the appropriate physical unit The calculation formula candidates to be displayed are displayed on the display unit 15. Thereby, even if the input calculation formula is wrong, the user can know where the calculation formula is wrong and can know a candidate for the correct calculation formula.

また、ユーザは、単位、次元、及び接頭辞を選択入力することができる。これにより、ユーザは、所望の数式を入力することができる。また、例えば、単位の表記が同じである場合(例えば、単位「m」は、表記は「m」で同じであるが、メートル、又は分の両方の意味を持つ)であっても、ユーザは、所望の単位の次元を選択することができる。   The user can also select and input units, dimensions, and prefixes. Thereby, the user can input a desired mathematical expression. In addition, for example, even when the unit notation is the same (for example, the unit “m” is the same as “m” but has the same meaning as meter or minute), the user has the same meaning. The desired unit dimension can be selected.

なお、上記実施の形態における記述は、本発明に係る計算機及びプログラムの一例であり、これに限定されるものではない。   The description in the above embodiment is an example of a computer and a program according to the present invention, and the present invention is not limited to this.

例えば、上記実施の形態では、計算式として数式が入力された場合における数式演算処理について説明したがこれに限定されるものではない。例えば、図17(a)に示すように、文字式が入力された場合であっても、同様の処理が実行される。図17(a)に示す文字式が入力された場合、変換式が作成され、作成された変換式と計算式との計算が実行される(図17(b)参照)。そして、変換式の計算結果0.9144mgh[J]と、計算式の計算結果mgh[kg・m・y/s^2]とが表示部15に表示される(図17(c)参照)。   For example, in the above-described embodiment, the mathematical formula calculation process in the case where a mathematical formula is input as a calculation formula has been described, but the present invention is not limited to this. For example, as shown in FIG. 17A, similar processing is executed even when a character expression is input. When the character formula shown in FIG. 17A is input, a conversion formula is created, and the created conversion formula and calculation formula are calculated (see FIG. 17B). Then, the calculation result 0.9144 mgh [J] of the conversion formula and the calculation result mgh [kg · m · y / s ^ 2] of the calculation formula are displayed on the display unit 15 (see FIG. 17C).

また、計算式の解に含まれる単位の文字数が一定数以上になると、計算式の解は適正な物理単位でないと判別することとしてもよい。ここで、単位の文字数とは、表示部に表示される計算式の解における物理単位を構成する文字数のことをいう。例えば、図16(c)における単位の文字数は、「N」は「1」、「t・m/s^2」は、「t」と、「m」と、「s」とからなるので「3」となる。
本実施の形態に係る発明は、特に単位計算の初心者に対して単位への理解を深めさせることを目的としているため、正解に含まれる単位の文字数が一定数を超えるような複雑な計算式を与えることは考えにくい。よってこのような判別方法とすることも有効である。
この場合において、例えば、計算式の解に含まれる単位の文字数の基準(基準単位)として「6」が定められている場合、計算式の解に含まれる単位の文字数が「6」を超えない場合は、計算式の解に含まれる単位は適正な物理単位であり、計算式の解に含まれる単位の文字数が「6」を超える場合は、計算式の解に含まれる単位は適正な物理単位でないと判別することとしてもよい。
Further, when the number of characters in a unit included in the solution of the calculation formula becomes a certain number or more, it may be determined that the solution of the calculation formula is not an appropriate physical unit. Here, the number of characters of a unit means the number of characters constituting a physical unit in the solution of the calculation formula displayed on the display unit. For example, the number of characters in the unit in FIG. 16C is “1” for “N” and “t · m / s ^ 2” for “t”, “m”, and “s”. 3 ”.
The invention according to the present embodiment is intended to deepen the understanding of units, particularly for beginners of unit calculation, and therefore, a complicated calculation formula in which the number of characters of units included in the correct answer exceeds a certain number is used. It is hard to think about giving. Therefore, it is effective to use such a determination method.
In this case, for example, when “6” is defined as the reference (reference unit) of the number of characters of the unit included in the solution of the calculation formula, the number of characters of the unit included in the calculation formula solution does not exceed “6”. In this case, the unit included in the solution of the calculation formula is an appropriate physical unit. If the number of characters of the unit included in the solution of the calculation formula exceeds “6”, the unit included in the solution of the calculation formula is an appropriate physical unit. It may be determined that it is not a unit.

また、上記の実施の形態における関数電卓1の各構成要素の細部構成及び細部動作に関しては、本発明の趣旨を逸脱しない範囲で適宜変更可能であることは勿論である。   In addition, it goes without saying that the detailed configuration and detailed operation of each component of the scientific calculator 1 in the above embodiment can be changed as appropriate without departing from the spirit of the present invention.

1 関数電卓
2 入力キー群
11 CPU
12 RAM
13 記憶部
14 入力部
15 表示部
13A 各種処理プログラム
13B 単位テーブル
31 単位呼出テーブル
41 単位換算テーブル
51 接頭辞テーブル
61 組立単位変換テーブル
71 適正単位テーブル
1 Scientific calculator 2 Input key group 11 CPU
12 RAM
13 Storage Unit 14 Input Unit 15 Display Unit 13A Various Processing Programs 13B Unit Table 31 Unit Call Table 41 Unit Conversion Table 51 Prefix Table 61 Assembly Unit Conversion Table 71 Appropriate Unit Table

Claims (7)

所定の単位を適正単位として記憶する適正単位記憶手段と、
単位を伴う数値又は文字を構成要素とする計算式を表示する式表示手段と、
前記式表示手段に表示された計算式の解を演算により求める演算手段と、
この演算手段により求められた計算式の解の単位が前記適正単位記憶手段により記憶された何れの適正単位とも一致しない場合には、その旨を表示する判別結果表示手段と、
を備える演算装置。
An appropriate unit storage means for storing a predetermined unit as an appropriate unit;
Formula display means for displaying a calculation formula including a numerical value or a character with a unit as a constituent element;
A calculation means for calculating a solution of the calculation formula displayed on the formula display means;
When the unit of the solution of the calculation formula obtained by the calculation means does not match any appropriate unit stored by the appropriate unit storage means, a determination result display means for displaying that fact;
An arithmetic device comprising:
前記計算式にSI単位系以外の単位を含む場合、当該SI単位系以外の単位をSI単位に変換する変換手段と、
前記変換手段により変換されたSI単位を含む変換式を作成する変換式作成手段と、
前記変換式作成手段により作成された変換式の解を演算により求める変換式演算手段と、
前記変換式演算手段により求められた変換式の解を表示する変換式解表示手段と、
を備える請求項1に記載の演算装置。
A conversion means for converting a unit other than the SI unit system into an SI unit when the calculation formula includes a unit other than the SI unit system;
A conversion expression creating means for creating a conversion expression including the SI unit converted by the conversion means;
A conversion formula calculation means for calculating a solution of the conversion formula created by the conversion formula creation means;
Conversion formula solution display means for displaying a solution of the conversion formula obtained by the conversion formula calculation means;
The arithmetic device according to claim 1, comprising:
前記計算式にSI単位系以外の単位を含む場合、当該SI単位系以外の単位をSI単位に変換せずに前記計算式の解を演算により求める計算式演算手段と、
前記計算式演算手段により求められた計算式の解と、前記変換式演算手段により演算された変換式の解とを表示する解表示手段と、
備える請求項2に記載の演算装置。
When the calculation formula includes a unit other than the SI unit system, a calculation formula calculation means for calculating a solution of the calculation formula without converting a unit other than the SI unit system into an SI unit;
Solution display means for displaying a solution of the calculation formula obtained by the calculation formula calculation means and a solution of the conversion formula calculated by the conversion formula calculation means;
The arithmetic device according to claim 2 provided.
前記計算式の解及び前記変換式の解の少なくとも1つにSI単位系の基本単位が組み立てられた組立単位を含む場合、当該組立単位を、当該組立単位を表す固有名称からなる単位に変換する単位変換手段と、
前記単位変換手段により変換された固有名称からなる単位を表示する固有名称表示手段と、
を備える請求項2又は3に記載の演算装置。
When at least one of the solution of the calculation formula and the solution of the conversion formula includes an assembly unit in which a basic unit of the SI unit system is assembled, the assembly unit is converted into a unit having a unique name representing the assembly unit. Unit conversion means;
Unique name display means for displaying a unit consisting of the unique name converted by the unit conversion means;
The arithmetic unit according to claim 2 or 3.
前記計算式の解の単位が前記適正単位記憶手段により記憶された何れの適正単位とも一致せず、前記計算式の解の単位要素が前記適正単位記憶手段に記憶された単位の単位要素と同じ構成である場合、前記計算式の解の単位が適正な物理単位となる前記計算式の候補を表示する候補表示手段を備える請求項1から4のいずれか一項に記載の演算装置。   The unit of solution of the calculation formula does not match any appropriate unit stored by the appropriate unit storage means, and the unit element of the solution of the calculation formula is the same as the unit element of the unit stored in the appropriate unit storage means 5. The arithmetic device according to claim 1, further comprising: a candidate display unit configured to display a candidate for the calculation formula in which a unit of a solution of the calculation formula is an appropriate physical unit. 前記計算式に含まれる単位、当該単位と対応する次元、及び当該単位と対応する接頭辞の少なくとも1つを選択入力するための入力手段を備える請求項1から5のいずれか一項に記載の演算装置。   The input unit for selecting and inputting at least one of a unit included in the calculation formula, a dimension corresponding to the unit, and a prefix corresponding to the unit, according to claim 1. Arithmetic unit. コンピュータを、
所定の単位を適正単位として記憶する適正単位記憶手段、
単位を伴う数値又は文字を構成要素とする計算式を表示する式表示手段、
前記式表示手段に表示された計算式の解を演算により求める演算手段、
この演算手段により求められた計算式の解の単位が前記適正単位記憶手段により記憶された何れの適正単位とも一致しない場合には、その旨を表示する判別結果表示手段、
として機能させるプログラム。

Computer
An appropriate unit storage means for storing a predetermined unit as an appropriate unit;
Formula display means for displaying a calculation formula including a numerical value or a character with a unit as a component,
Calculation means for obtaining a solution of the calculation formula displayed on the expression display means by calculation,
When the unit of the solution of the calculation formula obtained by the calculation means does not match any appropriate unit stored by the appropriate unit storage means, a determination result display means for displaying that effect,
Program to function as.

JP2010051210A 2010-03-09 2010-03-09 Arithmetic unit and program Pending JP2011186771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010051210A JP2011186771A (en) 2010-03-09 2010-03-09 Arithmetic unit and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010051210A JP2011186771A (en) 2010-03-09 2010-03-09 Arithmetic unit and program

Publications (1)

Publication Number Publication Date
JP2011186771A true JP2011186771A (en) 2011-09-22

Family

ID=44792960

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010051210A Pending JP2011186771A (en) 2010-03-09 2010-03-09 Arithmetic unit and program

Country Status (1)

Country Link
JP (1) JP2011186771A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020024627A (en) * 2018-08-08 2020-02-13 カシオ計算機株式会社 Electronic device, method of inputting operation number to the electronic device, and program
JP2024007937A (en) * 2022-07-07 2024-01-19 カシオ計算機株式会社 Input support device, input support method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020024627A (en) * 2018-08-08 2020-02-13 カシオ計算機株式会社 Electronic device, method of inputting operation number to the electronic device, and program
JP2024007937A (en) * 2022-07-07 2024-01-19 カシオ計算機株式会社 Input support device, input support method and program
JP7601063B2 (en) 2022-07-07 2024-12-17 カシオ計算機株式会社 Input support device, input support method and program

Similar Documents

Publication Publication Date Title
CN102193895B (en) Graph display apparatus and graph display method
JP6221323B2 (en) Graph display device and control program thereof
US20110219051A1 (en) Electronic calculator, display method, and recording medium for displaying mathematical expression in full color
JP2015184683A (en) Calculation device and program
CN102193894B (en) Mathematical expression calculation apparatus and method
JP2011175400A (en) Mathematical expression input device and program
US20190220254A1 (en) Programming support device, programming support method, and non-transitory recording medium
JP2011186771A (en) Arithmetic unit and program
JP2009059256A (en) Electronic device and program capable of drawing graph
JP7156463B2 (en) ELECTRONIC DEVICE, ELECTRONIC DEVICE SYSTEM, COORDINATE SYSTEM SETTING METHOD, AND PROGRAM
CN109117412A (en) Graphic display method, image generation method, electronic equipment and recording medium
JP4961792B2 (en) Formula editing apparatus and formula editing program
CN104063358B (en) Matrix computations device, matrix computational approach
JP2016177507A (en) Electronic equipment, computer program
JP2011043917A (en) Mathematical expression display arithmetic unit and program
JP4126498B2 (en) Electronic calculation apparatus and calculation display processing program
JP2011180267A (en) Electronic device and program
US9372822B2 (en) Mathematical expression display control apparatus, mathematical expression display control method, and computer readable medium recording mathematical expression display control program
JP5487844B2 (en) Computer apparatus and program
JP7087679B2 (en) Graph display method, graph generation method, electronic devices and programs
JP4811177B2 (en) Graph display device and graph display processing program
JP5724617B2 (en) Matrix calculation device and program
JP5353152B2 (en) Formula arithmetic processing apparatus and formula arithmetic processing program
US20060235911A1 (en) Contemporaneous symbolic and numeric presentation
JP5380981B2 (en) Mathematical formula calculation apparatus and mathematical formula calculation program