JP5919699B2 - Mathematical expression display device and program - Google Patents

Mathematical expression display device and program Download PDF

Info

Publication number
JP5919699B2
JP5919699B2 JP2011212044A JP2011212044A JP5919699B2 JP 5919699 B2 JP5919699 B2 JP 5919699B2 JP 2011212044 A JP2011212044 A JP 2011212044A JP 2011212044 A JP2011212044 A JP 2011212044A JP 5919699 B2 JP5919699 B2 JP 5919699B2
Authority
JP
Japan
Prior art keywords
formula
display
mathematical expression
line
mathematical
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.)
Active
Application number
JP2011212044A
Other languages
Japanese (ja)
Other versions
JP2013073427A (en
Inventor
湖城 孝
孝 湖城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2011212044A priority Critical patent/JP5919699B2/en
Publication of JP2013073427A publication Critical patent/JP2013073427A/en
Application granted granted Critical
Publication of JP5919699B2 publication Critical patent/JP5919699B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、数式表示装置及びプログラムに関する。   The present invention relates to a mathematical expression display device and a program.

従来、電子式計算機などの数式表示装置においては、括弧を複数段含む数式を入力すると、対応する開括弧と閉括弧を段数毎に同色で表示することができるようになっている(例えば特許文献1参照)。   Conventionally, in a mathematical expression display device such as an electronic calculator, when a mathematical expression including a plurality of parentheses is input, a corresponding open parenthesis and closed parenthesis can be displayed in the same color for each number of stages (for example, Patent Documents). 1).

特許第3837759号Japanese Patent No. 3837759

しかしながら、特許文献1記載の技術では、対応する開括弧と閉括弧に同色が付されるために括弧の対応関係は明確になるものの、式変形により括弧の段数が変化すると括弧に付される色が変化するので、式変形前後における数式部分の対応関係がわからなくなってしまう。   However, in the technique described in Patent Document 1, the same color is attached to the corresponding open parenthesis and the close parenthesis, so the correspondence between the parentheses becomes clear, but the color attached to the parentheses when the number of parenthesis stages changes due to the expression transformation Changes, it becomes difficult to understand the correspondence between the mathematical expression parts before and after the expression modification.

本発明の課題は、計算式中で同値の数式部分を分かりやすく識別表示することのできる数式表示装置及びプログラムを提供することである。   The subject of this invention is providing the numerical formula display apparatus and program which can carry out identification display of the equivalent numerical formula part in a calculation formula in an easy-to-understand manner.

以上の課題を解決するため、請求項1に記載の発明は、数式表示装置において、
表示部と、
前記表示部に計算式を表示させる計算式表示制御手段と、
前記計算式が、変数と数式部分との置換式である場合に、当該数式部分と当該変数とを対応付けて記憶する数式部分変数記憶手段と、
前記計算式から、括弧で囲まれた部分を含む数式部分を検出する数式部分検出手段と、
前記数式部分検出手段により検出された数式部分を記憶する数式部分記憶手段と、
前記計算式のうち、前記数式部分記憶手段に記憶された数式部分と、当該数式部分の一部を前記置換式の変数で置き換えた各数式部分とを同一表示形態で表示させる数式部分識別表示制御手段と、
を備えることを特徴とする。
In order to solve the above problems, the invention according to claim 1 is a mathematical expression display device,
A display unit;
A calculation formula display control means for Ru display the calculation formula on the display unit,
Formula part variable storage means for storing the formula part and the variable in association with each other when the calculation formula is a substitution formula for the variable and formula part;
Formula part detection means for detecting a formula part including a part enclosed in parentheses from the formula,
Formula part storage means for storing the formula part detected by the formula part detection means;
Wherein among the formulas, and it remembers been mathematical expression part into the equation partial storage means and each formula moiety by replacing part of the mathematical expression part in the variable of the substituent formula, formulas partial identification to be displayed in the same display form Display control means;
It is characterized by providing.

本発明によれば、計算式中で同値の数式部分を分かりやすく識別表示することができる。   According to the present invention, it is possible to easily identify and display an equivalent mathematical part in a calculation formula.

関数電卓の概略構成を示す平面図である。It is a top view which shows schematic structure of a scientific calculator. 関数電卓の機能構成を示すブロック図である。It is a block diagram which shows the function structure of a scientific calculator. 数式部分記憶エリアによる記憶内容の一例を示す図である。It is a figure which shows an example of the memory content by a numerical formula partial storage area. 数式表示処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a numerical formula display process. ディスプレイの表示内容を示す図である。It is a figure which shows the display content of a display. ディスプレイの表示内容を示す図である。It is a figure which shows the display content of a display. ディスプレイの表示内容を示す図である。It is a figure which shows the display content of a display.

以下、添付図面を参照して本発明に係る実施形態の一例を詳細に説明する。ただし、発明の範囲は、図示例に限定されない。   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.1 外観構成]
図1は、本発明に係る電子機器を適用した関数電卓1の概略構成を示す平面図である。
この図に示すように、関数電卓1は、各種キー群を有する入力キー群2と、ディスプレイ3と、を備えている。
[1.1 External configuration]
FIG. 1 is a plan view showing a schematic configuration of a scientific calculator 1 to which an electronic apparatus according to the present invention is applied.
As shown in the figure, the scientific calculator 1 includes an input key group 2 having various key groups and a display 3.

入力キー群2は、ユーザから数値や演算記号等の数式構成要素の入力操作を受けたり、各種処理の指示操作を受けたりするためのキー群であり、それぞれ固有の機能を割り当てられた複数のキーを備えている。本実施の形態においては、入力キー群2は、テンキー20や演算記号キー21、カーソルキー22、EXEキー23、DELキー24等を備えている。   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. In the present embodiment, the input key group 2 includes a numeric keypad 20, an operation symbol key 21, a cursor key 22, an EXE key 23, a DEL key 24, and the like.

このうち、テンキー20は数値の入力操作を受けるキーであり、演算記号キー21は四則演算の演算子や括弧などの入力操作を受けるキーである。   Among these, the numeric keypad 20 is a key for receiving a numerical input operation, and the operation symbol key 21 is a key for receiving an input operation such as an arithmetic operation operator or parentheses.

カーソルキー22は、ディスプレイ3内で編集対象位置や選択対象位置を示すカーソルを所定の方向に移動させる場合等に押下されるキーであり、本実施の形態においては、上下左右の4方向について入力可能に構成されている。   The cursor key 22 is a key that is pressed when the cursor indicating the editing target position or the selection target position is moved in a predetermined direction in the display 3. It is configured to be possible.

EXEキー23は、処理の実行指示や決定指示の入力操作を受けるキーであり、例えば数式の入力後には演算処理の実行を指示するキーとして機能するようになっている。DELキー24は、ディスプレイ3に表示されている数値や演算記号などの削除操作を受けるキーである。   The EXE key 23 is a key that receives an input operation of a process execution instruction or a determination instruction. For example, after the mathematical expression is input, the EXE key 23 functions as a key that instructs the execution of the arithmetic process. The DEL key 24 is a key for receiving a deletion operation such as a numerical value or a calculation symbol displayed on the display 3.

ディスプレイ3は、LCD(Liquid Crystal Display)やELD(Electronic Luminescent Display)等により構成されており、入力キー群2などの操作に応じた文字や符号、数式、演算結果などの他、関数電卓1を使用するために必要な各種データを表示するようになっている。なお、本実施の形態におけるディスプレイ3には、タッチパネル30が表示画面全面に亘って一体的に設けられている。   The display 3 is composed of an LCD (Liquid Crystal Display), an ELD (Electronic Luminescent Display), etc. In addition to characters, symbols, mathematical formulas, calculation results, etc. according to the operation of the input key group 2, the scientific calculator 1 is provided. Various data necessary for use is displayed. Note that the display 3 in the present embodiment is integrally provided with a touch panel 30 over the entire display screen.

[1.2 機能構成]
続いて、関数電卓1の機能構成を説明する。
図2は、関数電卓1の概略的な機能構成を示すブロック図である。
[1.2 Functional configuration]
Next, the functional configuration of the scientific calculator 1 will be described.
FIG. 2 is a block diagram illustrating a schematic functional configuration of the scientific calculator 1.

この図に示すように、関数電卓1は、入力部14と、表示部15と、記録媒体読取部17と、メモリ12と、CPU(Central Processing Unit)11と、を備えて構成されている。   As shown in the figure, the scientific calculator 1 includes an input unit 14, a display unit 15, a recording medium reading unit 17, a memory 12, and a CPU (Central Processing Unit) 11.

入力部14は、上述の入力キー群2やタッチパネル30を備えており、押下されたキーやタッチパネル30の位置に対応する操作信号をCPU11に出力するようになっている。   The input unit 14 includes the input key group 2 and the touch panel 30 described above, and outputs an operation signal corresponding to the pressed key or the position of the touch panel 30 to the CPU 11.

表示部15は、上述のディスプレイ3を備えており、CPU11からの表示信号に従って各種情報をディスプレイ3に表示するようになっている。   The display unit 15 includes the display 3 described above, and displays various types of information on the display 3 in accordance with display signals from the CPU 11.

記録媒体読取部17は、着脱自在に装着されるUSBメモリ等の外部情報記憶媒体17Aから情報を読み取るものである。   The recording medium reading unit 17 reads information from an external information storage medium 17A such as a USB memory that is detachably mounted.

メモリ12は、各種プログラム及び各種データを記憶している。具体的には、メモリ12は、本発明に係るプログラムとしての数式表示処理プログラム122を記憶している。また、メモリ12は、実行される各種プログラムやこれら各種プログラムに係るデータ等を格納する複数のワークエリアを有する。例えば、本実施の形態におけるメモリ12は、ワークエリアとして数式部分記憶エリア120や入力データ記憶エリア121などを有するようになっている。   The memory 12 stores various programs and various data. Specifically, the memory 12 stores a mathematical expression display processing program 122 as a program according to the present invention. The memory 12 also has a plurality of work areas for storing various programs to be executed and data related to these various programs. For example, the memory 12 in the present embodiment has a mathematical expression partial storage area 120, an input data storage area 121, and the like as work areas.

数式表示処理プログラム122は、後述の数式表示処理(図4参照)をCPU11に実行させるためのプログラムである。   The mathematical expression display processing program 122 is a program for causing the CPU 11 to execute mathematical expression display processing (see FIG. 4) described later.

数式部分記憶エリア120は、図3に示すように、後述の数式表示処理(図4参照)における識別表示の表示形態として複数種類の表示形態を記憶しており、この数式表示処理において入力された計算式中、識別表示の対象とすべき各数式部分を、表示形態に対応付けて記憶するようになっている。また、変数に等号で結ばれた数式部分を記憶する場合には、数式部分記憶エリア120は、この数式部分に対応する表示形態に当該変数(置き換える変数)を更に対応付けて記憶するようになっている。ここで、本実施の形態においては、識別表示の表示形態として、複数種類の色(識別表示の対象とすべき数式部分を構成する文字の表示色)及び下線(識別表示の対象とすべき数式部分に付される下線)が用いられている。そして、識別表示の対象とすべき各数式部分は、対応する表示形態(色、下線)で表示されるようになっている。   As shown in FIG. 3, the formula partial storage area 120 stores a plurality of types of display forms as display forms of identification display in a formula display process (see FIG. 4) described later, and is input in this formula display process. In the calculation formula, each mathematical formula portion to be identified and displayed is stored in association with the display form. Further, in the case of storing a mathematical expression part connected with an equal sign to a variable, the mathematical expression part storage area 120 stores the variable (replacement variable) in association with the display form corresponding to the mathematical expression part. It has become. Here, in the present embodiment, as the display form of the identification display, a plurality of types of colors (display colors of the characters constituting the mathematical expression part to be the object of identification display) and underline (the mathematical expression to be the object of the identification display) The underline attached to the part is used. Each mathematical formula portion to be identified and displayed is displayed in a corresponding display form (color, underline).

入力データ記憶エリア121は、ユーザにより入力された計算式のデータを記憶するようになっている。   The input data storage area 121 stores calculation formula data input by the user.

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

[1.3 関数電卓の動作]
続いて、関数電卓1の動作について説明する。
[1.3 Operation of scientific calculator]
Next, the operation of the scientific calculator 1 will be described.

図4は、数式表示処理の動作を説明するためのフローチャートである。なお、この数式表示処理は、ユーザにより入力部14を介して数式表示処理の実行指示が入力されると、メモリ12から数式表示処理プログラム122が読み出されてメモリ12内のワークエリアに適宜展開される結果、当該数式表示処理プログラム122とCPU11との協働によって実行される。   FIG. 4 is a flowchart for explaining the operation of the mathematical expression display process. In addition, in this mathematical expression display process, when an instruction to execute the mathematical expression display process is input by the user via the input unit 14, the mathematical expression display processing program 122 is read from the memory 12 and appropriately expanded in the work area in the memory 12. As a result, the mathematical expression display processing program 122 and the CPU 11 are executed in cooperation.

この図に示すように、数式表示処理においては、まずCPU11は、数式部分記憶エリア120の数式部分をリセットし(ステップS1)、ユーザ操作による1行目の計算式の入力を検知する(ステップS2)。ここで、本実施の形態においては、計算式として、ユーザ操作により入力される入力式、または、当該入力式を変形してユーザ操作により入力される変形式が用いられる。また各計算式に括弧又は関数が含まれていてもよい。   As shown in this figure, in the formula display process, first, the CPU 11 resets the formula portion of the formula portion storage area 120 (step S1) and detects the input of the calculation formula in the first row by the user operation (step S2). ). Here, in the present embodiment, as a calculation formula, an input formula input by a user operation or a modified formula input by a user operation by modifying the input formula is used. Each calculation formula may include parentheses or a function.

次に、CPU11は、入力操作に応じた計算式をディスプレイ3に表示させる(ステップS3)。   Next, the CPU 11 displays a calculation formula corresponding to the input operation on the display 3 (step S3).

次に、CPU11は、入力された計算式の中に、変数に等号で結ばれた数式部分が含まれるか否かを判定し(ステップS4)、変数に等号で結ばれた数式部分が含まれないと判定した場合(ステップS4;No)には、後述のステップS7に移行する。ここで、本実施の形態においては、変数に等号で結ばれた数式部分とは、少なくとも1つの変数を含むものであり、変数に等号で結ばれた数値(定数)は、変数に等号で結ばれた数式部分に該当しない。   Next, the CPU 11 determines whether or not a mathematical expression part connected to the variable with an equal sign is included in the input calculation formula (step S4), and the mathematical expression part connected to the variable with an equal sign is determined. If it is determined that it is not included (step S4; No), the process proceeds to step S7 described later. Here, in the present embodiment, the mathematical expression part connected to the variable with an equal sign includes at least one variable, and the numerical value (constant) connected to the variable with an equal sign is equal to the variable. It does not correspond to the formula part connected by the number.

また、ステップS4において入力された計算式の中に、変数に等号で結ばれた数式部分が含まれると判定した場合(ステップS4;Yes)には、CPU11は、ステップS4にて検出された数式部分と同値の数式部分が数式部分記憶エリア120にあるか否かを判定する(ステップS5)。   On the other hand, when it is determined that the formula entered in step S4 includes a mathematical expression part connected with an equal sign in the variable (step S4; Yes), the CPU 11 detects the formula in step S4. It is determined whether or not a mathematical formula portion having the same value as the mathematical formula portion exists in the mathematical formula portion storage area 120 (step S5).

このステップS5において同値の数式部分があると判定した場合(ステップS5;Yes)には、CPU11は、後述のステップS7に移行する。   If it is determined in step S5 that there is an equivalent mathematical part (step S5; Yes), the CPU 11 proceeds to step S7 described later.

また、ステップS5において同値の数式部分がないと判定した場合(ステップS5;No)には、CPU11は、変数に等号で結ばれた数式部分と、当該変数と、これらの表示形態としての色及び下線の種類とを対応付けて数式部分記憶エリア120に記憶させる(ステップS6)。   On the other hand, if it is determined in step S5 that there is no equivalent mathematical part (step S5; No), the CPU 11 determines the mathematical part connected to the variable with an equal sign, the variable, and the color of these display forms. And the underline type are stored in the mathematical expression partial storage area 120 in association with each other (step S6).

次に、CPU11は、入力された計算式中に開括弧または関数があるか否かを判定し(ステップS7)、開括弧または関数がないと判定した場合(ステップS7;No)には、後述のステップS11に移行する。   Next, the CPU 11 determines whether or not there is an open parenthesis or function in the input calculation formula (step S7), and if it is determined that there is no open parenthesis or function (step S7; No), it will be described later. The process proceeds to step S11.

ここで、本実施の形態においては、関数とは、前置関数、後置関数若しくは括弧付き関数又はこれらの合成関数である。前置関数としては、√,log,ln,ex,10x,sin,cos,tan などが挙げられる。後置関数としては、x2,x-1,x!,x√ などが挙げられる。括弧付き関数としては、d/dx,d2/dx2,∫dx,Σ などが挙げられる。 Here, in the present embodiment, the function is a prefix function, a postfix function, a function with parentheses, or a composite function thereof. Examples of the prefix function include √, log, ln, e x , 10 x , sin, cos, and tan. Examples of postfix functions include x 2 , x −1 , x !, x√, and the like. Examples of functions with parentheses include d / dx, d 2 / dx 2 , ∫dx, and Σ.

また、上述のステップS7において開括弧または関数があると判定した場合(ステップS7;Yes)には、CPU11は、入力された計算式中の各開括弧について、この開括弧及びこれに対応する閉括弧により囲まれた部分を、それぞれ数式部分として検出するとともに、入力された計算式中の各関数について、引数を含むこの関数全体を、それぞれ数式部分として検出する(ステップS8)。なお、本実施の形態においては、括弧により囲まれた数式部分には、開括弧及び閉括弧それ自体が含まれる。   If it is determined in step S7 that there is an open parenthesis or a function (step S7; Yes), the CPU 11 determines, for each open parenthesis in the input calculation formula, this open parenthesis and the corresponding close parenthesis. The parts surrounded by parentheses are detected as mathematical parts, respectively, and the entire function including arguments is detected as mathematical parts for each function in the inputted calculation formula (step S8). In the present embodiment, the formula part enclosed by parentheses includes an open parenthesis and a close parenthesis itself.

次に、CPU11は、ステップS8にて検出された各数式部分について、これと同値の数式部分が数式部分記憶エリア120にあるか否かを判定し(ステップS9)、同値の数式部分があると判定した場合(ステップS9;Yes)には、後述のステップS11に移行する。   Next, the CPU 11 determines, for each mathematical formula part detected in step S8, whether or not there is a mathematical formula part having the same value in the mathematical formula part storage area 120 (step S9). When it determines (step S9; Yes), it transfers to below-mentioned step S11.

また、ステップS9において同値の数式部分がないと判定した場合(ステップS9;No)には、CPU11は、ステップS8において検出した各数式部分とこれらの表示形態としての色及び下線の種類とを対応付けて数式部分記憶エリア120に記憶させる(ステップS10)。   When it is determined in step S9 that there is no equivalent mathematical part (step S9; No), the CPU 11 associates each mathematical part detected in step S8 with the color and underline type as the display form. In addition, it is stored in the mathematical formula partial storage area 120 (step S10).

次に、CPU11は、入力された計算式の中に、分子又は分母に加減算を具備する分数が含まれるか否かを判定し(ステップS11)、分子又は分母に加減算を具備する分数が含まれないと判定した場合(ステップS11;No)には、後述のステップS15に移行する。   Next, the CPU 11 determines whether or not the input calculation formula includes a fraction having addition / subtraction in the numerator or denominator (step S11), and the fraction having addition / subtraction in the numerator or denominator is included. If it is determined that there is not (step S11; No), the process proceeds to step S15 described later.

また、ステップS11において分子又は分母に加減算を具備する分数が含まれると判定した場合(ステップS11;Yes)には、CPU11は、このような分数をそれぞれ数式部分として検出する(ステップS12)。   If it is determined in step S11 that the numerator or denominator includes a fraction having addition and subtraction (step S11; Yes), the CPU 11 detects each such fraction as a mathematical expression part (step S12).

次に、CPU11は、ステップS12にて検出した各数式部分について、これと同値の数式部分が数式部分記憶エリア120にあるか否かを判定し(ステップS13)、同値の数式部分があると判定した場合(ステップS13;Yes)には、後述のステップS15に移行する。   Next, the CPU 11 determines, for each mathematical part detected in step S12, whether there is a mathematical part with the same value in the mathematical part storage area 120 (step S13), and determines that there is a mathematical part with the same value. If so (step S13; Yes), the process proceeds to step S15 described later.

また、ステップS13において同値の数式部分がないと判定した場合(ステップS13;No)には、CPU11は、ステップS12にて検出した各数式部分とこれらの表示形態としての色及び下線の種類とを対応付けて数式部分記憶エリア120に記憶させる(ステップS14)。   When it is determined in step S13 that there is no equivalent mathematical part (step S13; No), the CPU 11 determines each mathematical part detected in step S12 and the color and underline type as the display form. Corresponding data are stored in the mathematical formula partial storage area 120 (step S14).

次に、CPU11は、入力された計算式中で、数式部分記憶エリア120に記憶された数式部分と同値の各数式部分を、各数式部分に対応して記憶された表示形態でディスプレイ3に識別表示させる(ステップS15)。   Next, the CPU 11 identifies, in the input calculation formula, each formula portion having the same value as the formula portion stored in the formula portion storage area 120 on the display 3 in a display form stored corresponding to each formula portion. It is displayed (step S15).

より詳細には、このときCPU11は、入力された計算式中で数式部分記憶エリア120に記憶された数式部分と同値の各数式部分について、各数式部分に対応して記憶された表示形態を、数式部分の長さの降順で上書き設定し、この上書き設定した表示形態で各数式部分をディスプレイ3に識別表示させる。具体的には、まず、CPU11は、数式部分記憶エリア120に記憶された数式部分のうち最長の数式部分について、これに対応する表示形態(色、下線)を設定する。次に、CPU11は、2番目に長い数式部分について、これに対応する表示形態(色、下線)を、それまでの表示形態に上書き設定する。これにより、最長の数式部分と2番目に長い数式部分が重畳している場合には、この重畳部分について、2番目に長い数式部分に対応する表示形態(色、下線)が設定される。以降同様にして、CPU11は、数式部分記憶エリア120に記憶された全ての数式部分について、長い数式部分から順に、各数式部分に対応する表示形態(色、下線)を、それまでの表示形態に上書き設定する。これにより、入力された計算式中で複数の数式部分が重畳している場合には、この重畳部分は、重畳している数式部分のうち最後に表示される数式部分(最短の数式部分)に対応する表示形態(色、下線)でディスプレイ3に表示される。   More specifically, at this time, the CPU 11 displays the display form stored corresponding to each formula part for each formula part having the same value as the formula part stored in the formula part storage area 120 in the inputted calculation formula. Overwriting is set in descending order of the length of the mathematical formula portion, and each mathematical formula portion is identified and displayed on the display 3 in this overwritten display form. Specifically, first, the CPU 11 sets a display form (color, underline) corresponding to the longest mathematical expression part among the mathematical expression parts stored in the mathematical expression part storage area 120. Next, the CPU 11 overwrites and sets the display form (color, underline) corresponding to the second long mathematical expression part to the display form so far. As a result, when the longest mathematical expression part and the second longest mathematical expression part are superimposed, the display form (color, underline) corresponding to the second longest mathematical expression part is set for this superposed part. Thereafter, in the same manner, the CPU 11 changes the display form (color, underline) corresponding to each mathematical expression part from all the mathematical expression parts stored in the mathematical expression part storage area 120 in order from the long mathematical expression part to the previous display form. Set to overwrite. As a result, when a plurality of mathematical expression parts are superimposed in the input calculation formula, the superimposed part is added to the mathematical expression part (the shortest mathematical expression part) displayed last among the superimposed mathematical expression parts. A corresponding display form (color, underline) is displayed on the display 3.

次に、CPU11は、2行目以降の変形式の入力操作が行われるか否かを判定し(ステップS16)、変形式の入力操作が行われたと判定した場合(ステップS16;Yes)には、前述のステップS3に移行する。   Next, the CPU 11 determines whether or not a deformable input operation on the second and subsequent lines is performed (step S16), and when it is determined that a deformable input operation is performed (step S16; Yes). The process proceeds to step S3 described above.

また、ステップS16において変形式の入力操作が行われたと判定した場合(ステップS16;No)には、CPU11は、ユーザによる終了操作が行われるか否かを判定する(ステップS17)。   If it is determined in step S16 that a deformable input operation has been performed (step S16; No), the CPU 11 determines whether or not an end operation by the user is performed (step S17).

そして、このステップS17において、終了操作が行われていないと判定した場合(ステップS17;No)には、CPU11は、他の処理を行う一方、終了操作が行われたと判定した場合(ステップS17;Yes)には、数式表示処理を終了する。   If it is determined in step S17 that the end operation has not been performed (step S17; No), the CPU 11 performs other processing while determining that the end operation has been performed (step S17; In Yes), the mathematical expression display process is terminated.

[1.4 動作例]
続いて、図面を参照しつつ、上述した関数電卓1の動作を具体的に説明する。なお、以下の動作例1及び動作例2で参照する図中、破線で囲まれている領域は、この領域に対する符号の対応色(「B」:青色(Blue)、「R」:赤色(Red)、「G」:緑色(Green)、「P」:ピンク(Pink)、「Lb」:水色(Light blue)、「Yg」:黄緑色(Yellow green)、「V」:バイオレット(Violet))によって当該領域内の文字が表示されていることを示している。また、以下の動作例3で参照する図中、囲み枠Fの符号「F」に対する添え字「b」は、当該囲み枠Fが青(blue)で表示されていることを示している。同様に、囲み枠Fの符号「F」に対する添え字「b」,「r」,「g」,「p」,「lb」,「yg」,「v」,「o」,「ib」,「br」は、当該囲み枠Fが青色(blue),赤色(red),緑色(green),ピンク(pink),水色(light blue),黄緑色(yellow green),バイオレット(violet),橙色(orange),藍色(indigo blue),茶色(brown)で表示されていることを示している。
[1.4 Operation example]
Next, the operation of the scientific calculator 1 described above will be specifically described with reference to the drawings. In the drawings referred to in the following operation example 1 and operation example 2, the region surrounded by a broken line indicates the corresponding color of the code for this region (“B”: Blue (Blue), “R”: Red (Red ), “G”: Green, “P”: Pink, “Lb”: Light blue, “Yg”: Yellow green, “V”: Violet) Indicates that characters in the area are displayed. Further, in the drawing referred to in the following operation example 3, the subscript “b” with respect to the symbol “F” of the surrounding frame F indicates that the surrounding frame F is displayed in blue. Similarly, subscripts “b”, “r”, “g”, “p”, “lb”, “yg”, “v”, “o”, “ib”, For “br”, the frame F is blue, red, green, pink, light blue, yellow green, violet, orange ( It is displayed in orange, indigo blue, and brown.

(動作例1)
まず、数式表示処理が実行されると、数式部分記憶エリア120の数式部分がリセットされる(ステップS1)。
(Operation example 1)
First, when the formula display process is executed, the formula portion in the formula portion storage area 120 is reset (step S1).

次に図5の1行目に示すように、ユーザが計算式「a+b=A」を入力すると(ステップS2)、入力操作に応じた計算式「a+b=A」がディスプレイ3の1行目に入力されて表示される(ステップS3)。   Next, as shown in the first line of FIG. 5, when the user inputs the calculation formula “a + b = A” (step S <b> 2), the calculation formula “a + b = A” corresponding to the input operation is displayed on the first line of the display 3. It is input and displayed (step S3).

ここで、本動作例1の関数電卓1は、入力された計算式を、少ない行数での表示形式(一行表示形式)にて、ディスプレイ3に表示するようになっている。これにより、例えば、aの2乗は「a^2」と表示されるようになっている。   Here, the scientific calculator 1 according to the first operation example displays the input calculation formula on the display 3 in a display format (one-line display format) with a small number of rows. Thereby, for example, the square of a is displayed as “a ^ 2”.

次に、1行目の計算式「a+b=A」に変数「A」と等号で結ばれた数式部分「a+b」が含まれると判定されて(ステップS4;Yes)、この変数に等号で結ばれた数式部分「a+b」と同値の数式部分が数式部分記憶エリア120にないと判定されると(ステップS5;No)、図3に示すように、数式部分「a+b」及び変数「A」が、表示形態としての「青色」及び「直線の下線」に対応付けて数式部分記憶エリア120に記憶される(ステップS6)。   Next, it is determined that the formula part “a + b” connected with the variable “A” and the equal sign is included in the calculation formula “a + b = A” in the first line (step S4; Yes), and the equal sign is included in this variable. When it is determined that there is no mathematical expression part having the same value as the mathematical expression part “a + b” connected in the mathematical expression part storage area 120 (step S5; No), as shown in FIG. 3, the mathematical expression part “a + b” and the variable “A” "Is stored in the mathematical formula portion storage area 120 in association with" blue "and" straight line underline "as display forms (step S6).

次に、1行目の計算式「a+b=A」中に開括弧又は関数がないと判定されて(ステップS7;No)、当該計算式「a+b=A」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図5の1行目に示すように、ディスプレイ3に表示されている1行目の計算式「a+b=A」のうち数式部分記憶エリア120に記憶された数式部分「a+b」及び同値の変数「A」が、対応する表示形態(「青色」、「直線の下線」)で識別表示される(ステップS15)。なお、図5においては、識別表示された数式部分に付される下線の図示を省略している。   Next, it is determined that there is no open parenthesis or function in the calculation formula “a + b = A” in the first line (Step S7; No), and the numerator or denominator is provided with addition / subtraction in the calculation formula “a + b = A”. If it is determined that the fraction to be included is not included (step S11; No), as shown in the first line of FIG. 5, the mathematical expression “a + b = A” in the first line displayed on the display 3 is calculated. The mathematical expression portion “a + b” and the equivalent variable “A” stored in the partial storage area 120 are identified and displayed in a corresponding display form (“blue”, “line underline”) (step S15). In FIG. 5, the underline attached to the mathematical expression part that is identified and displayed is omitted.

次に図5の2行目に示すように、ユーザが計算式「(a+b+c)^2」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「(a+b+c)^2」がディスプレイ3の2行目に入力されて表示される(ステップS3)。   Next, as shown in the second line of FIG. 5, when the user inputs the calculation formula “(a + b + c) ^ 2” (step S16; Yes), the calculation formula “(a + b + c) ^ 2” corresponding to the input operation is displayed. 3 is input and displayed on the second line (step S3).

次に、2行目の計算式「(a+b+c)^2」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、当該計算式中に開括弧及び関数があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part ((a + b + c) ^ 2) on the second line does not include the formula part connected to the variable with an equal sign (step S4; No), It is determined that there is a function (step S7; Yes).

次に、括弧に囲まれた数式部分として「(a+b+c)」が検出されるとともに、関数の数式部分として「(a+b+c)^2」が検出されると(ステップS8)、これらの数式部分(「(a+b+c)」又は「(a+b+c)^2」)と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして図3に示すように、数式部分「(a+b+c)」は表示形態としての「赤色」及び「二重線の下線」に対応付けて数式部分記憶エリア120に記憶され(ステップS10)、数式部分「(a+b+c)^2」は表示形態としての「緑色」及び「破線の下線」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。   Next, when “(a + b + c)” is detected as an equation part enclosed in parentheses and “(a + b + c) ^ 2” is detected as an equation part of a function (step S8), these equation parts (“ (A + b + c) ”or“ (a + b + c) ^ 2 ”) is determined that there is no mathematical expression part in the mathematical expression partial storage area 120 (No in step S9). Then, as shown in FIG. 3, the formula part “(a + b + c)” is stored in the formula part storage area 120 in association with “red” and “underlined double line” as the display form (step S10). “(A + b + c) ^ 2” is stored in the mathematical expression partial storage area 120 in association with “green” and “dashed underline” as display forms (step S10).

次に、2行目の計算式「(a+b+c)^2」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図5の2行目に示すように、ディスプレイ3に表示されている2行目の計算式「(a+b+c)^2」のうち数式部分記憶エリア120に記憶された数式部分「a+b」、「(a+b+c)」、及び「(a+b+c)^2」が、対応する表示形態(色、下線)で、長い数式部分から順に識別表示される(ステップS15)。   Next, if it is determined that the calculation formula “(a + b + c) ^ 2” in the second row does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), the second row in FIG. As shown, the formula parts “a + b”, “(a + b + c)” and “((a + b + c) ^ 2” stored in the formula part storage area 120 of the calculation formula “(a + b + c) ^ 2” on the second line displayed on the display 3 are shown. "a + b + c) ^ 2" is identified and displayed in order from the long mathematical expression part in the corresponding display form (color, underline) (step S15).

具体的には、先ず、これらのうち最長の数式部分である「(a+b+c)^2」について、対応する表示形態(「緑色」、「波線の下線」)が、設定される。次に、2番目に長い数式部分である「(a+b+c)」について、対応する表示形態(「赤色」、「二重線の下線」)が、上書き設定される。そして最後に、最短の数式部分である「a+b」について、対応する表示形態(「青色」、「直線の下線」)が、上書き設定される。従って図5の2行目に示すように、2行目の計算式「(a+b+c)^2」は、計算式の左の構成要素から順に「(」が表示形態(「赤色」、「二重線の下線」)で、「a+b」が表示形態(「青色」、「直線の下線」)で、「+c)」が表示形態(「赤色」、「二重線の下線」)で、「^2」が表示形態(「緑色」、「波線の下線」)でディスプレイ3に表示される。   Specifically, first, a corresponding display form (“green”, “underline of wavy line”) is set for “(a + b + c) ^ 2” which is the longest mathematical expression portion among them. Next, for “(a + b + c)”, which is the second longest mathematical expression portion, the corresponding display form (“red”, “underlined double line”) is overwritten. Finally, the corresponding display form (“blue”, “straight line underline”) is overwritten for “a + b” which is the shortest mathematical expression portion. Therefore, as shown in the second line of FIG. 5, the calculation formula “(a + b + c) ^ 2” in the second line is displayed in order from the left component of the calculation formula with “(” in the display form (“red”, “double” "A + b" is a display form ("blue", "straight line underline"), "+ c)" is a display form ("red", "double line underline"), and "^ 2 ”is displayed on the display 3 in a display form (“ green ”,“ underlined wavy line ”).

次に図5の3行目に示すように、ユーザが2行目の計算式「(a+b+c)^2」を変形した変形式「=(A+c)^2」を入力すると(ステップS16;Yes)、入力操作に応じた変形式「=(A+c)^2」がディスプレイ3の3行目に入力されて表示される(ステップS3)。   Next, as shown in the third line of FIG. 5, when the user inputs a modified expression “= (A + c) ^ 2” obtained by modifying the calculation expression “(a + b + c) ^ 2” in the second line (step S16; Yes). The modified expression “= (A + c) ^ 2” corresponding to the input operation is input and displayed on the third line of the display 3 (step S3).

次に、3行目の計算式「=(A+c)^2」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、当該計算式「=(A+c)^2」中に開括弧及び関数があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part “= (A + c) ^ 2” on the third line does not include the formula part connected to the variable by an equal sign (step S4; No), and the formula “= (A + c) ) ^ "Is determined to have an open parenthesis and a function (step S7; Yes).

次に、括弧に囲まれた数式部分として「(A+c)」が検出されるとともに、関数の数式部分として「(A+c)^2」が検出されると(ステップS8)、これらの数式部分(「(A+c)」又は「(A+c)^2」)と同値の数式部分である「(a+b+c)」と「(a+b+c)^2」とが数式部分記憶エリア120にあると判定される(ステップS9;Yes)。   Next, when “(A + c)” is detected as an equation part surrounded by parentheses and “(A + c) ^ 2” is detected as an equation part of a function (step S8), these equation parts (“ It is determined that “(a + b + c)” and “(a + b + c) ^ 2”, which are mathematical parts equivalent to (A + c) ”or“ (A + c) ^ 2 ”), are in the mathematical expression part storage area 120 (step S9; Yes).

次に、3行目の計算式「=(A+c)^2」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図5の3行目に示すように、ディスプレイ3に表示されている3行目の計算式「=(A+c)^2」のうち数式部分記憶エリア120に記憶された数式部分と同値の数式部分「(A+c)」(数式部分「(a+b+c)」と同値)及び「(A+c)^2」(数式部分「(a+b+c)^2」と同値)、並びに数式部分「a+b」と同値の変数「A」が、対応する表示形態(色、下線)で、長い数式部分から順に識別表示される(ステップS15)。   Next, if it is determined that the calculation formula “= (A + c) ^ 2” in the third row does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), the third row in FIG. As shown in FIG. 4, in the calculation formula “= (A + c) ^ 2” on the third line displayed on the display 3, a formula portion “(A + c)” (equivalent to the formula portion stored in the formula portion storage area 120) The expression “(a + b + c)” and “(A + c) ^ 2” (equal to the expression part “(a + b + c) ^ 2”) and the variable “A” having the same value as the expression part “a + b” In the form (color, underline), identification and display are performed in order from the long mathematical expression (step S15).

具体的には、先ず、これらのうち最長の数式部分である「(A+c)^2」について、対応する表示形態(「緑色」、「波線の下線」)が、設定される。次に、2番目に長い数式部分である「(A+c)」について、対応する表示形態(「赤色」、「二重線の下線」)が、上書き設定される。そして最後に、最短の数式部分である「a+b」と同値の変数「A」について、対応する表示形態(「青色」、「直線の下線」)が、上書き設定される。従って図5の3行目に示すように、3行目の計算式「=(A+c)^2」は、計算式の左の構成要素から順に「(」が表示形態(「赤色」、「二重線の下線」)で、「A」が表示形態(「青色」、「直線の下線」)で、「+c)」が表示形態(「赤色」、「二重線の下線」)で、「^2」が表示形態(「緑色」、「波線の下線」)でディスプレイ3に表示される。   Specifically, first, a corresponding display form (“green”, “underline of wavy line”) is set for “(A + c) ^ 2” which is the longest mathematical expression portion among them. Next, for “(A + c)” which is the second longest mathematical expression portion, the corresponding display form (“red”, “underlined double line”) is overwritten. Finally, the corresponding display form (“blue”, “straight line underline”) is overwritten for the variable “A” having the same value as “a + b” which is the shortest mathematical expression portion. Therefore, as shown in the third line of FIG. 5, the calculation formula “= (A + c) ^ 2” in the third line is displayed in order from the left component of the calculation formula with “(” in the display form (“red”, “two "A" is the display form ("blue", "straight line underline"), "+ c)" is the display form ("red", "double line underline"), ^ 2 "is displayed on the display 3 in a display form (" green "," underlined wavy line ").

次に図5の4行目に示すように、ユーザが3行目の計算式「=(A+c)^2」を変形した変形式「=A^2+2Ac+c^2」を入力すると(ステップS16;Yes)、入力操作に応じた変形式「=A^2+2Ac+c^2」がディスプレイ3の4行目に入力されて表示される(ステップS3)。   Next, as shown in the fourth line of FIG. 5, when the user inputs a modified expression “= A ^ 2 + 2Ac + c ^ 2” obtained by modifying the calculation expression “= (A + c) ^ 2” in the third line (step S16; Yes). ), A modified expression “= A ^ 2 + 2Ac + c ^ 2” corresponding to the input operation is input and displayed on the fourth line of the display 3 (step S3).

次に、4行目の計算式「=A^2+2Ac+c^2」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、当該計算式「=A^2+2Ac+c^2」中に関数があると判定される(ステップS7;Yes)。   Next, it is determined that the mathematical expression “= A ^ 2 + 2Ac + c ^ 2” in the fourth row does not include a mathematical expression part connected to the variable by an equal sign (step S4; No). It is determined that there is a function in “2 + 2Ac + c ^ 2” (step S7; Yes).

次に、関数の数式部分として「A^2」と「c^2」が検出されると(ステップS8)、これらの数式部分(「A^2」又は「c^2」)と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして図3に示すように、数式部分「A^2」は表示形態としての「ピンク」及び「点線の下線」に対応付けて数式部分記憶エリア120に記憶され(ステップS10)、数式部分「c^2」は表示形態としての「水色」及び「二重点線の下線」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。   Next, when “A ^ 2” and “c ^ 2” are detected as the mathematical expression part of the function (step S8), mathematical expressions equivalent to these mathematical expression parts (“A ^ 2” or “c ^ 2”). It is determined that the portion is not in the formula partial storage area 120 (step S9; No). As shown in FIG. 3, the formula part “A ^ 2” is stored in the formula part storage area 120 in association with “pink” and “underlined dotted line” as display forms (step S10), and the formula part “c” is stored. “^ 2” is stored in the formula partial storage area 120 in association with “light blue” and “underline of double dotted line” as display forms (step S10).

次に、4行目の計算式「=A^2+2Ac+c^2」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図5の4行目に示すように、ディスプレイ3に表示されている4行目の計算式「=A^2+2Ac+c^2」のうち数式部分記憶エリア120に記憶された数式部分「A^2」及び「c^2」、数式部分記憶エリア120に記憶された数式部分と同値の数式部分「A^2+2Ac+c^2」(数式部分「(a+b+c)^2」と同値)、並びに数式部分「a+b」と同値の変数「A」が、対応する表示形態(色、下線)で、長い数式部分から順に識別表示される(ステップS15)。   Next, if it is determined that the calculation formula “= A ^ 2 + 2Ac + c ^ 2” in the fourth line does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), the fourth line in FIG. As shown in FIG. 4, the formula parts “A ^ 2” and “c ^ 2” stored in the formula part storage area 120 among the calculation formulas “= A ^ 2 + 2Ac + c ^ 2” displayed on the display 3 are displayed. , A mathematical expression portion “A ^ 2 + 2Ac + c ^ 2” (equivalent to the mathematical expression portion “(a + b + c) ^ 2”) equivalent to the mathematical expression portion stored in the mathematical expression portion storage area 120, and a variable “A” equivalent to the mathematical expression portion “a + b”. Are displayed in the corresponding display form (color, underline) in order from the long mathematical expression (step S15).

具体的には、先ず、これらのうち最長の数式部分である「A^2+2Ac+c^2」について、対応する表示形態(「緑色」、「波線の下線」)が、設定される。次に、2番目に長い数式部分である「A^2」について、対応する表示形態(「ピンク」、「点線の下線」)が、上書き設定される。次に、3番目に長い数式部分である「a+b」と同値の変数「A」について、対応する表示形態(「青色」、「直線の下線」)が、上書き設定される。そして最後に、最短の数式部分である「c^2」について、対応する表示形態(「水色」、「二重点線の下線」)が、上書き設定される。従って図5の4行目に示すように、4行目の計算式「=A^2+2Ac+c^2」は、計算式の左の構成要素から順に「A」が表示形態(「青色」、「直線の下線」)で、「^2」が表示形態(「ピンク」、「点線の下線」)で、「+2」が表示形態(「緑色」、「波線の下線」)で、「A」が表示形態(「青色」、「直線の下線」)で、「c+」が表示形態(「緑色」、「波線の下線」)で、「c^2」が表示形態(「水色」、「二重点線の下線」)でディスプレイ3に表示される。   Specifically, first, a corresponding display form (“green”, “underline of wavy line”) is set for “A ^ 2 + 2Ac + c ^ 2”, which is the longest mathematical expression portion among them. Next, with respect to “A ^ 2”, which is the second longest mathematical expression portion, the corresponding display form (“pink”, “underlined dotted line”) is overwritten. Next, the corresponding display form (“blue”, “straight line underline”) is overwritten for the variable “A” having the same value as “a + b”, which is the third longest mathematical expression portion. Finally, the corresponding display form (“light blue”, “underlined double dotted line”) is overwritten for “c ^ 2” which is the shortest mathematical expression portion. Accordingly, as shown in the fourth line of FIG. 5, the calculation formula “= A ^ 2 + 2Ac + c ^ 2” in the fourth line is displayed in the form of “A” in order from the left component of the calculation formula (“blue”, “straight line”). "^ 2" is the display form ("pink", "dotted line underline"), "+2" is the display form ("green", "dashed line"), and "A" is displayed In the form (“blue”, “line underline”), “c +” is the display form (“green”, “underlined wavy line”), and “c ^ 2” is the display form (“light blue”, “double dotted line”) Underlined ")" is displayed on the display 3.

次に図5の5行目に示すように、ユーザが4行目の計算式「=A^2+2Ac+c^2」を変形した変形式「=(a+b)^2+2(a+b)c+c^2」を入力すると(ステップS16;Yes)、入力操作に応じた変形式「=(a+b)^2+2(a+b)c+c^2」がディスプレイ3の5行目に入力されて表示される(ステップS3)。   Next, as shown in the fifth line of FIG. 5, the user inputs a modified expression “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” obtained by modifying the calculation expression “= A ^ 2 + 2Ac + c ^ 2” on the fourth line. Then (step S16; Yes), the transformation formula “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” corresponding to the input operation is input and displayed on the fifth line of the display 3 (step S3).

次に、5行目の計算式「=(a+b)^2+2(a+b)c+c^2」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、5行目の計算式「=(a+b)^2+2(a+b)c+c^2」中に開括弧及び関数があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” in the fifth line does not include a mathematical expression part connected by an equal sign to the variable (Step S4; No), 5 It is determined that there is an open parenthesis and a function in the calculation formula “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” on the line (step S7; Yes).

次に、括弧に囲まれた数式部分として「(a+b)」が検出されるとともに、関数の数式部分として「(a+b)^2」と「c^2」が検出されると(ステップS8)、これらの数式部分(「(a+b)」、「(a+b)^2」、又は「c^2」)と同一又は同値の数式部分である「a+b」、「A^2」、及び「c^2」が数式部分記憶エリア120にあると判定される(ステップS9;Yes)。   Next, when “(a + b)” is detected as an equation part surrounded by parentheses, and “(a + b) ^ 2” and “c ^ 2” are detected as an equation part of a function (step S8), “A + b”, “A ^ 2”, and “c ^ 2” that are the same or equivalent to those mathematical parts (“(a + b)”, “(a + b) ^ 2”, or “c ^ 2”) "Is in the formula partial storage area 120 (step S9; Yes).

次に、5行目の計算式「=(a+b)^2+2(a+b)c+c^2」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図5の5行目に示すように、ディスプレイ3に表示されている5行目の計算式「=(a+b)^2+2(a+b)c+c^2」のうち数式部分記憶エリア120に記憶された数式部分「c^2」、並びに数式部分記憶エリア120に記憶された数式部分と同値の数式部分「(a+b)」(数式部分「a+b」と同値)、「(a+b)^2」(数式部分「A^2」と同値)、及び「(a+b)^2+2(a+b)c+c^2」(数式部分「(a+b+c)^2」と同値)が、対応する表示形態(色、下線)で、長い数式部分から順に識別表示される(ステップS15)。   Next, when it is determined that the calculation formula “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” on the fifth line does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), As shown in the fifth line of FIG. 5, the formula stored in the formula partial storage area 120 among the calculation formulas “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” displayed on the display 3. The part “c ^ 2” and the mathematical part “(a + b)” (equivalent to the mathematical part “a + b”) and “(a + b) ^ 2” (the mathematical part “ Equivalent to A ^ 2) and "(a + b) ^ 2 + 2 (a + b) c + c ^ 2" (equivalent to the mathematical expression part "(a + b + c) ^ 2") in the corresponding display form (color, underline) and a long mathematical expression Identifications are displayed in order from the portion (step S15).

具体的には、先ず、これらのうち最長の数式部分である「(a+b)^2+2(a+b)c+c^2」について、対応する表示形態(「緑色」、「波線の下線」)が、設定される。次に、2番目に長い数式部分である「(a+b)^2」について、対応する表示形態(「ピンク」、「点線の下線」)が、上書き設定される。次に、3番目に長い数式部分である「(a+b)」について、対応する表示形態(「青色」、「直線の下線」)が、上書き設定される。そして最後に、最短の数式部分である「c^2」について、対応する表示形態(「水色」、「二重点線の下線」)が、上書き設定される。従って図5の5行目に示すように、5行目の計算式「=(a+b)^2+2(a+b)c+c^2」は、計算式の左の構成要素から順に「(a+b)」が表示形態(「青色」、「直線の下線」)で、「^2」が表示形態(「ピンク」、「点線の下線」)で、「+2」が表示形態(「緑色」、「波線の下線」)で、「(a+b)」が表示形態(「青色」、「直線の下線」)で、「c+」が表示形態(「緑色」、「波線の下線」)で、「c^2」が表示形態(「水色」、「二重点線の下線」)でディスプレイ3に表示される。   Specifically, first, the corresponding display form (“green”, “underline of wavy line”) is set for “(a + b) ^ 2 + 2 (a + b) c + c ^ 2”, which is the longest mathematical part of these. The Next, with respect to “(a + b) ^ 2” which is the second longest mathematical expression portion, the corresponding display form (“pink”, “dashed underline”) is overwritten. Next, for “(a + b)”, which is the third longest mathematical expression portion, the corresponding display form (“blue”, “straight line underline”) is overwritten. Finally, the corresponding display form (“light blue”, “underlined double dotted line”) is overwritten for “c ^ 2” which is the shortest mathematical expression portion. Accordingly, as shown in the fifth line of FIG. 5, the calculation formula “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” in the fifth line displays “(a + b)” in order from the left component of the calculation formula. In the form (“blue”, “straight line underline”), “^ 2” is the display form (“pink”, “dotted line underline”), and “+2” is the display form (“green”, “underlined wavy line”) ), “(A + b)” is the display form (“blue”, “underlined straight line”), “c +” is the display form (“green”, “underlined wavy line”), and “c ^ 2” is displayed It is displayed on the display 3 in the form (“light blue”, “double underline”).

次に図5の6行目に示すように、ユーザが5行目の計算式「=(a+b)^2+2(a+b)c+c^2」を変形した変形式「=a^2+2ab+b^2+2ac+2bc+c^2」を入力すると(ステップS16;Yes)、入力操作に応じた変形式「=a^2+2ab+b^2+2ac+2bc+c^2」がディスプレイ3の6行目に入力されて表示される(ステップS3)。   Next, as shown in the sixth line of FIG. 5, the user modifies the calculation formula “= (a + b) ^ 2 + 2 (a + b) c + c ^ 2” in the fifth line “= a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2”. Is input (step S16; Yes), a deformation formula “= a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2” corresponding to the input operation is input and displayed on the sixth line of the display 3 (step S3).

次に、6行目の計算式「=a^2+2ab+b^2+2ac+2bc+c^2」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、6行目の計算式「=a^2+2ab+b^2+2ac+2bc+c^2」中に関数があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part “= a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2” on the sixth line does not include a mathematical expression part connected with an equal sign to the variable (step S4; No), and the calculation on the sixth line It is determined that there is a function in the expression “= a 2 + 2ab + b 2 + 2ac + 2bc + c 2” (step S7; Yes).

次に、関数の数式部分として「a^2」と「b^2」が検出されると(ステップS8)、これらの数式部分(「a^2」又は「b^2」)と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして図3に示すように、数式部分「a^2」は表示形態としての「黄緑色」と「二重波線の下線」に対応付けて数式部分記憶エリア120に記憶され(ステップS10)、数式部分「b^2」は表示形態としての「バイオレット」と「破線の下線」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。   Next, when “a ^ 2” and “b ^ 2” are detected as the mathematical expression parts of the function (step S8), the mathematical expressions equivalent to these mathematical expression parts (“a ^ 2” or “b ^ 2”). It is determined that the portion is not in the formula partial storage area 120 (step S9; No). Then, as shown in FIG. 3, the formula part “a ^ 2” is stored in the formula part storage area 120 in association with “yellowish green” and “underline of double wavy lines” as display forms (step S10). The part “b ^ 2” is stored in the mathematical expression part storage area 120 in association with “violet” and “dashed underline” as display forms (step S10).

次に、6行目の計算式「=a^2+2ab+b^2+2ac+2bc+c^2」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図5の6行目に示すように、ディスプレイ3に表示されている6行目の計算式「=a^2+2ab+b^2+2ac+2bc+c^2」のうち数式部分記憶エリア120に記憶された数式部分「a^2」、「b^2」、及び「c^2」、並びに数式部分記憶エリア120に記憶された数式部分と同値の数式部分「a^2+2ab+b^2」(数式部分「A^2」と同値)及び「a^2+2ab+b^2+2ac+2bc+c^2」(数式部分「(a+b+c)^2」と同値)が、対応する表示形態(色、下線)で、長い数式部分から順に識別表示される(ステップS15)。   Next, when it is determined that the calculation formula “= a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2” on the sixth line does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), 6 in FIG. As shown in the line, among the calculation formulas “= a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2” on the sixth line displayed on the display 3, the formula parts “a ^ 2”, “ b ^ 2 "and" c ^ 2 ", and a mathematical expression part" a ^ 2 + 2ab + b ^ 2 "(equivalent to the mathematical expression part" A ^ 2 ") and" a "equivalent to the mathematical expression part stored in the mathematical expression part storage area 120 ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2 "(equivalent to the formula part" (a + b + c) ^ 2 ") is identified and displayed in order from the long formula part in the corresponding display form (color, underline) (step S15).

具体的には、先ず、これらのうち最長の数式部分である「a^2+2ab+b^2+2ac+2bc+c^2」について、対応する表示形態(「緑色」、「波線の下線」)が、設定される。次に、2番目に長い数式部分である「a^2+2ab+b^2」について、対応する表示形態(「ピンク」、「点線の下線」)が、上書き設定される。ここで、残った3つの数式部分「a^2」、「b^2」、及び「c^2」は互いに同じ長さであるので、これ以降、数式部分記憶エリア120に先に記憶された数式部分から順に、対応する表示形態が上書き設定される。これにより、次に、「c^2」について、対応する表示形態(「水色」、「二重点線の下線」)が、上書き設定される。次に、「a^2」について、対応する表示形態(「黄緑色」、「二重波線の下線」)が、上書き設定される。そして最後に、「b^2」について、対応する表示形態(「バイオレット」、「破線の下線」)が、上書き設定される。従って図5の6行目に示すように、6行目の計算式「=a^2+2ab+b^2+2ac+2bc+c^2」は、計算式の左の構成要素から順に「a^2」が表示形態(「黄緑色」、「二重波線の下線」)で、「+2ab+」が表示形態(「ピンク」、「点線の下線」)で、「b^2」が表示形態(「バイオレット」、「破線の下線」)で、「+2ac+2bc+」が表示形態(「緑色」、「波線の下線」)で、「c^2」が表示形態(「水色」、「二重点線の下線」)でディスプレイ3に表示される。   Specifically, first, a corresponding display form (“green”, “underline of wavy line”) is set for “a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2” which is the longest mathematical expression portion. Next, for “a ^ 2 + 2ab + b ^ 2”, which is the second longest mathematical expression portion, the corresponding display form (“pink”, “dotted line underline”) is overwritten. Here, since the remaining three mathematical expression parts “a ^ 2”, “b ^ 2”, and “c ^ 2” have the same length, they are stored in the mathematical expression part storage area 120 first. The corresponding display form is overwritten in order from the mathematical expression portion. Thereby, next, for “c ^ 2”, the corresponding display form (“light blue”, “underlined double dotted line”) is overwritten. Next, for “a ^ 2”, the corresponding display form (“yellowish green”, “underlined double wavy line”) is overwritten. Finally, for “b ^ 2”, the corresponding display form (“violet”, “dashed underline”) is overwritten. Accordingly, as shown in the sixth line of FIG. 5, the calculation formula “= a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2” in the sixth line is displayed in the form of “a ^ 2” in order from the left component of the calculation formula (“yellow "Green", "double underline"), "+ 2ab +" is the display form ("pink", "dotted line underline"), and "b ^ 2" is the display form ("violet", "dashed line underline") ), “+ 2ac + 2bc +” is displayed on the display 3 in the display form (“green”, “underlined wavy line”) and “c ^ 2” is displayed in the display form (“light blue”, “underlined double dotted line”). .

次に図5の7行目に示すように、ユーザが6行目の計算式「=a^2+2ab+b^2+2ac+2bc+c^2」を変形した変形式「=a^2+b^2+c^2+2ab+2bc+2ca」を入力すると(ステップS16;Yes)、入力操作に応じた変形式「=a^2+b^2+c^2+2ab+2bc+2ca」がディスプレイ3の7行目に入力されて表示される(ステップS3)。   Next, as shown in the seventh line of FIG. 5, when the user inputs a modified expression “= a ^ 2 + b ^ 2 + c ^ 2 + 2ab + 2bc + 2ca” obtained by modifying the calculation expression “= a ^ 2 + 2ab + b ^ 2 + 2ac + 2bc + c ^ 2” on the sixth line ( In step S16; Yes), a modified expression “= a ^ 2 + b ^ 2 + c ^ 2 + 2ab + 2bc + 2ca” corresponding to the input operation is input and displayed on the seventh line of the display 3 (step S3).

次に、7行目の計算式「=a^2+b^2+c^2+2ab+2bc+2ca」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、7行目の計算式中に関数があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part “= a ^ 2 + b ^ 2 + c ^ 2 + 2ab + 2bc + 2ca” on the seventh line does not include a mathematical expression part connected with an equal sign (step S4; No), and the calculation on the seventh line It is determined that there is a function in the expression (step S7; Yes).

次に、関数の数式部分として「a^2」、「b^2」、及び「c^2」が検出されると(ステップS8)、これらの数式部分(「a^2」、「b^2」、及び「c^2」)が数式部分記憶エリア120にあると判定される(ステップS9;Yes)。   Next, when “a ^ 2”, “b ^ 2”, and “c ^ 2” are detected as the mathematical part of the function (step S8), these mathematical parts (“a ^ 2”, “b ^”) are detected. 2 ”and“ c ^ 2 ”) are determined to be in the formula partial storage area 120 (step S9; Yes).

次に、7行目の計算式「=a^2+b^2+c^2+2ab+2bc+2ca」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図5の7行目に示すように、ディスプレイ3に表示されている7行目の計算式「=a^2+b^2+c^2+2ab+2bc+2ca」のうち数式部分記憶エリア120に記憶された数式部分「a^2」、「b^2」、及び「c^2」、並びに数式部分記憶エリア120に記憶された数式部分と同値の数式部分「a^2+b^2+c^2+2ab+2bc+2ca」(数式部分「(a+b+c)^2」と同値)が、対応する表示形態(色、下線)で、長い数式部分から順に識別表示される(ステップS15)。   Next, when it is determined that the calculation formula “= a ^ 2 + b ^ 2 + c ^ 2 + 2ab + 2bc + 2ca” on the seventh line does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), 7 in FIG. As shown in the line, among the calculation formulas “= a ^ 2 + b ^ 2 + c ^ 2 + 2ab + 2bc + 2ca” displayed on the display 3, the mathematical expression parts “a ^ 2”, “ b ^ 2 "and" c ^ 2 ", and a mathematical expression part" a ^ 2 + b ^ 2 + c ^ 2 + 2ab + 2bc + 2ca "equivalent to the mathematical expression part stored in the mathematical expression part storage area 120 (equivalent to the mathematical expression part" (a + b + c) ^ 2 ") ) In the corresponding display form (color, underline) are displayed in order from the long mathematical part (step S15).

具体的には、先ず、これらのうち最長の数式部分である「a^2+b^2+c^2+2ab+2bc+2ca」について、対応する表示形態(「緑色」、「波線の下線」)が、設定される。ここで、残った3つの数式部分「a^2」、「b^2」、及び「c^2」は互いに同じ長さであるので、これ以降、数式部分記憶エリア120に先に記憶された数式部分から順に、対応する表示形態が上書き設定される。これにより、次に、「c^2」について、対応する表示形態(「水色」、「二重点線の下線」)が、上書き設定される。次に、「a^2」について、対応する表示形態(「黄緑色」、「二重波線の下線」)が、上書き設定される。そして最後に、「b^2」について、対応する表示形態(「バイオレット」、「破線の下線」)が、上書き設定される。従って図5の7行目に示すように、7行目の計算式は、計算式の左の構成要素から順に「a^2」が表示形態(「黄緑色」、「二重波線の下線」)で、「+」が表示形態(「緑色」、「波線の下線」)で、「b^2」が表示形態(「バイオレット」、「破線の下線」)で、「+」が表示形態(「緑色」、「波線の下線」)で、「c^2」が表示形態(「水色」、「二重点線の下線」)で、「+2ab+2bc+2ca」が表示形態(「緑色」、「波線の下線」)でディスプレイ3に表示される。   Specifically, first, a corresponding display form (“green”, “underline of wavy line”) is set for “a ^ 2 + b ^ 2 + c ^ 2 + 2ab + 2bc + 2ca” which is the longest mathematical expression portion. Here, since the remaining three mathematical expression parts “a ^ 2”, “b ^ 2”, and “c ^ 2” have the same length, they are stored in the mathematical expression part storage area 120 first. The corresponding display form is overwritten in order from the mathematical expression portion. Thereby, next, for “c ^ 2”, the corresponding display form (“light blue”, “underlined double dotted line”) is overwritten. Next, for “a ^ 2”, the corresponding display form (“yellowish green”, “underlined double wavy line”) is overwritten. Finally, for “b ^ 2”, the corresponding display form (“violet”, “dashed underline”) is overwritten. Accordingly, as shown in the seventh line of FIG. 5, the calculation formula of the seventh line is “a ^ 2” in order from the left component of the calculation formula (“yellowish green”, “double underline”). ), “+” Is a display form (“green”, “underlined wavy line”), “b ^ 2” is a display form (“violet”, “dashed underline”), and “+” is a display form ( “Green”, “underline of wavy line”), “c ^ 2” is display form (“light blue”, “underline of double dotted line”), “+ 2ab + 2bc + 2ca” is display form (“green”, “underline of wavy line”) ]) Is displayed on the display 3.

(動作例2)
まず、数式表示処理が実行されると、上述の動作例1と同様に、数式部分記憶エリア120の数式部分がリセットされる(ステップS1)。
(Operation example 2)
First, when the mathematical expression display process is executed, the mathematical formula portion in the mathematical formula portion storage area 120 is reset in the same manner as in the first operation example (step S1).

次に図6の1行目に示すように、ユーザが1行目の計算式「2x+y=8」を入力すると(ステップS2)、入力操作に応じた計算式「2x+y=8」がディスプレイ3の1行目に入力されて表示される(ステップS3)。   Next, as shown in the first line of FIG. 6, when the user inputs the calculation formula “2x + y = 8” in the first line (step S <b> 2), the calculation formula “2x + y = 8” corresponding to the input operation is displayed on the display 3. It is input and displayed on the first line (step S3).

次に、1行目の計算式「2x+y=8」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、1行目の計算式「2x+y=8」中に開括弧又は関数がないと判定される(ステップS7;No)。そして、1行目の計算式「2x+y=8」中に分子又は分母に加減算を具備する分数が含まれないと判定される(ステップS11;No)。なお、この段階において、数式部分記憶エリア120には数式部分が何も記憶されていないため、ステップS15における数式部分の識別表示はなされない。   Next, it is determined that the formula part “2x + y = 8” on the first line does not include the mathematical expression part connected to the variable by an equal sign (step S4; No), and the formula “2x + y = 8” on the first line. It is determined that there is no open parenthesis or function in “” (step S7; No). Then, it is determined that the calculation formula “2x + y = 8” in the first row does not include a fraction having addition / subtraction in the numerator or denominator (Step S11; No). At this stage, since no mathematical formula portion is stored in the mathematical formula portion storage area 120, the identification display of the mathematical formula portion in step S15 is not performed.

次に図6の2行目に示すように、ユーザが2行目の計算式「3x−4y=1」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「3x−4y=1」がディスプレイ3の2行目に入力されて表示される(ステップS3)。   Next, as shown in the second line of FIG. 6, when the user inputs the calculation formula “3x-4y = 1” in the second line (step S16; Yes), the calculation formula “3x-4y =” corresponding to the input operation. "1" is input and displayed on the second line of the display 3 (step S3).

次に、1行目の計算式と同様に、2行目の計算式「3x−4y=1」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、2行目の計算式「3x−4y=1」中に開括弧又は関数がないと判定される(ステップS7;No)。そして、2行目の計算式「3x−4y=1」中に分子又は分母に加減算を具備する分数が含まれないと判定される(ステップS11;No)。なお、この段階において、数式部分記憶エリア120には数式部分が何も記憶されていないため、ステップS15における数式部分の識別表示はなされない。   Next, similarly to the calculation formula in the first row, it is determined that the formula expression “3x-4y = 1” in the second row does not include a mathematical expression part connected to the variable by an equal sign (Step S4; No). ) It is determined that there is no open parenthesis or function in the calculation formula “3x−4y = 1” in the second row (step S7; No). Then, it is determined that the calculation formula “3x−4y = 1” in the second row does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No). At this stage, since no mathematical formula portion is stored in the mathematical formula portion storage area 120, the identification display of the mathematical formula portion in step S15 is not performed.

次に図6の3行目に示すように、ユーザが3行目の計算式「y=8−2x」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「y=8−2x」がディスプレイ3の3行目に入力されて表示される(ステップS3)。   Next, as shown in the third line of FIG. 6, when the user inputs the calculation formula “y = 8-2x” in the third line (step S16; Yes), the calculation formula “y = 8− 2x "is input and displayed on the third line of the display 3 (step S3).

次に、3行目の計算式「y=8−2x」に変数「y」と等号で結ばれた数式部分「8−2x」が含まれると判定されて(ステップS4;Yes)、この変数に等号で結ばれた数式部分「8−2x」と同値の数式部分が数式部分記憶エリア120にないと判定されると(ステップS5;No)、数式部分「8−2x」及び変数「y」が、表示形態としての「青色」に対応付けて数式部分記憶エリア120に記憶される(ステップS6)。なお、本動作例2において、数式部分は、表示形態としての色(文字の色)のみと対応付けて数式部分記憶エリア120に記憶されるようになっている。   Next, it is determined that the formula part “8-2x” connected to the variable “y” by the equal sign is included in the calculation formula “y = 8-2x” on the third line (step S4; Yes). If it is determined that there is no mathematical expression part equivalent to the mathematical expression part “8-2x” connected to the variable in the mathematical expression part storage area 120 (No in step S5), the mathematical expression part “8-2x” and the variable “ “y” is stored in the formula partial storage area 120 in association with “blue” as the display form (step S6). In the second operation example, the formula portion is stored in the formula portion storage area 120 in association with only the color (character color) as the display form.

次に、3行目の計算式「y=8−2x」中に開括弧又は関数がないと判定されて(ステップS7;No)、3行目の計算式「y=8−2x」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図6の3行目に示すように、ディスプレイ3に表示されている3行目の計算式のうち数式部分記憶エリア120に記憶された数式部分「8−2x」及び置き換える変数「y」が、対応する表示形態(「青色」)で識別表示される(ステップS15)。   Next, it is determined that there is no open parenthesis or function in the calculation formula “y = 8-2x” on the third line (step S7; No), and in the calculation formula “y = 8-2x” on the third line. When it is determined that the numerator or the denominator does not include a fraction having addition / subtraction (step S11; No), as shown in the third line of FIG. Of these, the mathematical formula portion “8-2x” and the replacement variable “y” stored in the mathematical formula portion storage area 120 are identified and displayed in a corresponding display form (“blue”) (step S15).

以下、4行目以降の計算式については、ステップS15において識別表示される数式部分又は変数を含む行の計算式についてのみ記載する。   Hereinafter, the calculation formulas for the fourth and subsequent lines will be described only for the calculation formulas for the lines including the formula portion or variable identified and displayed in step S15.

次に図6の5行目に示すように、4行目の計算式「3x−4y=1」が表示された後、ユーザが5行目の計算式「3x−4(8−2x)=1」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「3x−4(8−2x)=1」がディスプレイ3の5行目に入力されて表示される(ステップS3)。   Next, as shown in the fifth line of FIG. 6, after the calculation formula “3x−4y = 1” on the fourth line is displayed, the user calculates the calculation formula “3x−4 (8−2x) = 5” on the fifth line. When "1" is input (step S16; Yes), the calculation formula "3x-4 (8-2x) = 1" corresponding to the input operation is input and displayed on the fifth line of the display 3 (step S3).

次に、5行目の計算式「3x−4(8−2x)=1」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、5行目の計算式「3x−4(8−2x)=1」中に開括弧があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part “3x-4 (8-2x) = 1” in the fifth line does not include a mathematical expression part connected with an equal sign in the variable (Step S4; No), the fifth line It is determined that there is an open parenthesis in the formula “3x-4 (8-2x) = 1” (step S7; Yes).

次に、括弧に囲まれた数式部分として「(8−2x)」が検出されると(ステップS8)、この数式部分と同値の数式部分である「8−2x」が数式部分記憶エリア120にあると判定される(ステップS9;Yes)。   Next, when “(8-2x)” is detected as a formula part enclosed in parentheses (step S8), “8-2x”, which is a formula part equivalent to the formula part, is stored in the formula part storage area 120. It is determined that there is (step S9; Yes).

次に、5行目の計算式「3x−4(8−2x)=1」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図6の5行目に示すように、ディスプレイ3に表示されている5行目の計算式のうち数式部分記憶エリア120に記憶された数式部分と同値の数式部分「(8−2x)」(数式部分「8−2x」と同値)が、対応する表示形態(「青色」)で識別表示される(ステップS15)。   Next, when it is determined that the calculation formula “3x-4 (8-2x) = 1” in the fifth row does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), FIG. As shown in the fifth line, the formula part “(8-2x)” (the formula part having the same value as the formula part stored in the formula part storage area 120 among the calculation formulas in the fifth line displayed on the display 3. (Same value as “8-2x”) is identified and displayed in a corresponding display form (“blue”) (step S15).

次に図6の9行目に示すように、8行目の計算式「x=3」が表示された後、ユーザが9行目の計算式「y=8−2x」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「y=8−2x」がディスプレイ3の9行目に入力されて表示される(ステップS3)。   Next, as shown in the ninth line of FIG. 6, after the calculation formula “x = 3” in the eighth line is displayed, the user inputs the calculation formula “y = 8-2x” in the ninth line (step S16; Yes), the calculation formula “y = 8−2x” corresponding to the input operation is input and displayed on the ninth line of the display 3 (step S3).

次に、9行目の計算式「y=8−2x」に変数「y」と等号で結ばれた数式部分「8−2x」が含まれると判定されて(ステップS4;Yes)、この変数に等号で結ばれた数式部分「8−2x」が数式部分記憶エリア120にあると判定される(ステップS5;Yes)。   Next, it is determined that the formula part “8-2x” connected to the variable “y” by the equal sign is included in the calculation formula “y = 8-2x” on the ninth line (step S4; Yes). It is determined that the formula part “8-2x” connected to the variable with an equal sign is in the formula part storage area 120 (step S5; Yes).

次に、9行目の計算式「y=8−2x」中に開括弧又は関数がないと判定されて(ステップS7;No)、9行目の計算式「y=8−2x」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図6の9行目に示すように、ディスプレイ3に表示されている9行目の計算式「y=8−2x」のうち数式部分記憶エリア120に記憶された数式部分と同値の数式部分「8−2x」及び変数「y」が、対応する表示形態(「青色」)で識別表示される(ステップS15)。   Next, it is determined that there is no open parenthesis or function in the calculation formula “y = 8-2x” on the ninth line (step S7; No), and in the calculation formula “y = 8-2x” on the ninth line. When it is determined that the numerator or the denominator does not include a fraction having addition / subtraction (step S11; No), as shown in the ninth line of FIG. The expression part “8-2x” and the variable “y” equivalent to the expression part stored in the expression part storage area 120 in “y = 8-2x” are identified and displayed in the corresponding display form (“blue”). (Step S15).

次に図6の10行目に示すように、9行目の計算式「y=8−2x」が表示された後、ユーザが10行目の計算式「y=8−2・3=2」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「y=8−2・3=2」がディスプレイ3の10行目に入力されて表示される(ステップS3)。   Next, as shown in the 10th line in FIG. 6, after the calculation formula “y = 8-2x” in the 9th line is displayed, the user calculates the calculation formula “y = 8−2 · 3 = 2” in the 10th line. "(Step S16; Yes), the calculation formula" y = 8-2 · 3 = 2 "corresponding to the input operation is input and displayed on the 10th line of the display 3 (step S3).

次に、10行目の計算式「y=8−2・3=2」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、10行目の計算式「y=8−2・3=2」中に開括弧又は関数がないと判定される(ステップS7;No)。そして、10行目の計算式「y=8−2・3=2」中に分子又は分母に加減算を具備する分数が含まれないと判定される(ステップS11;No)。   Next, it is determined that the formula part “y = 8−2 · 3 = 2” in the 10th line does not include a mathematical expression part connected to the variable by an equal sign (Step S4; No), It is determined that there is no open parenthesis or function in the calculation formula “y = 8−2 · 3 = 2” (step S7; No). Then, it is determined that the calculation formula “y = 8−2 · 3 = 2” in the 10th row does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No).

次に、図6の10行目に示すように、ディスプレイ3に表示されている10行目の計算式のうち数式部分記憶エリア120に記憶された数式部分「8−2x」を置き換える変数「y」が、対応する表示形態(「青色」)で識別表示される(ステップS15)。   Next, as shown in the 10th line in FIG. 6, the variable “y” that replaces the formula part “8-2x” stored in the formula part storage area 120 among the calculation formulas in the 10th line displayed on the display 3. "Is identified and displayed in a corresponding display form (" blue ") (step S15).

(動作例3)
まず、数式表示処理が実行されると、上述の動作例1及び動作例2と同様に、数式部分記憶エリア120の数式部分がリセットされる(ステップS1)。
(Operation example 3)
First, when the mathematical expression display process is executed, the mathematical formula portion in the mathematical formula portion storage area 120 is reset in the same manner as in the above-described operation example 1 and operation example 2 (step S1).

なお、本動作例3における数式部分記憶エリア120は、数式部分と表示形態としての枠の色とを対応付けて記憶するようになっている。また、変数に等号で結ばれた数式部分については、この数式部分に対応する枠の色に当該変数を更に対応付けて記憶するようになっている。ここで枠の色とは、後述のステップS15にて表示対象を枠で囲んで識別表示させる場合における、枠の色を示している。   Note that the mathematical formula portion storage area 120 in this operation example 3 stores the mathematical formula portion and the frame color as the display form in association with each other. In addition, for the mathematical expression part connected to the variable with an equal sign, the variable is further associated with the color of the frame corresponding to the mathematical expression part and stored. Here, the color of the frame indicates the color of the frame in the case where the display target is surrounded and displayed for identification in step S15 described later.

次に図7の1行目に示すように、ユーザが1行目の計算式「(X−(1+√5)/2)(X−(1−√5)/2)」を入力すると(ステップS2)、入力操作に応じた計算式「(X−(1+√5)/2)(X−(1−√5)/2)」がディスプレイ3の1行目に入力されて表示される(ステップS3)。   Next, as shown in the first line of FIG. 7, when the user inputs the calculation formula “(X− (1 + √5) / 2) (X− (1−√5) / 2)” in the first line ( In step S2), the calculation formula “(X− (1 + √5) / 2) (X− (1−√5) / 2)” corresponding to the input operation is input and displayed on the first line of the display 3. (Step S3).

ここで、本動作例3の関数電卓1は、入力された計算式を、一般的な教科書や書籍などに表されている表示形式(自然表示形式)にて、ディスプレイ3に表示するようになっている。これにより、例えば、aの2乗は「a」と表示されるようになっている。 Here, the scientific calculator 1 of this operation example 3 displays the input calculation formula on the display 3 in a display format (natural display format) represented in a general textbook or book. ing. Thereby, for example, the square of a is displayed as “a 2 ”.

次に、1行目の計算式「(X−(1+√5)/2)(X−(1−√5)/2)」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、1行目の計算式「(X−(1+√5)/2)(X−(1−√5)/2)」中に開括弧があると判定される(ステップS7;Yes)。   Next, if the formula in the first line “(X− (1 + √5) / 2) (X− (1−√5) / 2)” does not include the mathematical expression part connected to the variable with an equal sign It is determined (Step S4; No), and it is determined that there is an open parenthesis in the calculation formula “(X− (1 + √5) / 2) (X− (1−√5) / 2)” on the first line. (Step S7; Yes).

次に、括弧に囲まれた数式部分として「(X−(1+√5)/2)」と「(X−(1−√5)/2)」が検出されると(ステップS8)、これらの数式部分(「(X−(1+√5)/2)」又は「(X−(1−√5)/2)」)と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして、数式部分「(X−1+√5/2)」は表示形態としての「青色の枠」に対応付けて数式部分記憶エリア120に記憶され(ステップS10)、数式部分「(X−1−√5/2)」は表示形態としての「赤色の枠」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。   Next, when “(X− (1 + √5) / 2)” and “(X− (1−√5) / 2)” are detected as the mathematical expression part enclosed in parentheses (step S8), It is determined that there is no formula part having the same value as the formula part (“(X− (1 + √5) / 2)” or “(X− (1−√5) / 2)”) in the formula part storage area 120. (Step S9; No). The mathematical expression part “(X−1 + √5 / 2)” is stored in the mathematical expression part storage area 120 in association with the “blue frame” as the display form (step S10), and the mathematical expression part “(X-1-−) is stored. √5 / 2) ”is stored in the mathematical expression partial storage area 120 in association with the“ red frame ”as the display form (step S10).

次に、1行目の計算式「(X−(1+√5)/2)(X−(1−√5)/2)」中に分子又は分母に加減算を具備する分数が含まれると判定されると(ステップS11;Yes)、分数の数式部分として「(1+√5)/2」と「(1−√5)/2」が検出されて(ステップS12)、これらの数式部分(「(1+√5)/2」又は「(1−√5)/2」)と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS13;No)。そして、数式部分「(1+√5)/2」は表示形態としての「緑色の枠」に対応付けて数式部分記憶エリア120に記憶され(ステップS10)、数式部分「(1−√5)/2」は表示形態としての「ピンクの枠」に対応付けて数式部分記憶エリア120に記憶される(ステップS14)。   Next, it is determined that the calculation formula “(X− (1 + √5) / 2) (X− (1−√5) / 2)” in the first row includes a fraction having addition / subtraction in the numerator or denominator. Then (step S11; Yes), “(1 + √5) / 2” and “(1−√5) / 2” are detected as fractional mathematical parts (step S12), and these mathematical parts (“ (1 + √5) / 2 ”or“ (1−√5) / 2 ”) is determined not to be in the formula portion storage area 120 (No in step S13). The formula part “(1 + √5) / 2” is stored in the formula part storage area 120 in association with the “green frame” as the display form (step S10), and the formula part “(1-√5) / “2” is stored in the mathematical expression partial storage area 120 in association with “pink frame” as the display form (step S14).

次に、図7の1行目に示すように、ディスプレイ3に表示されている1行目の計算式「(X−(1+√5)/2)(X−(1−√5)/2)」のうち数式部分記憶エリア120に記憶された数式部分「(X−(1−√5)/2)」、「(X−(1−√5)/2」、「(1+√5)/2」、及び「(1−√5/2)」が対応する表示形態(「色の枠」)で表示される(ステップS15)。   Next, as shown in the first line of FIG. 7, the calculation formula “(X− (1 + √5) / 2) (X− (1−√5) / 2” displayed on the display 3 is displayed. ) ”Stored in the formula part storage area 120“ (X− (1−√5) / 2) ”,“ (X− (1−√5) / 2 ”,“ (1 + √5) ”. / 2 ”and“ (1−√5 / 2) ”are displayed in a corresponding display form (“ color frame ”) (step S15).

具体的には、「(X−(1−√5)/2)」が表示形態としての「青色の枠」で、「(X−(1−√5)/2)」が表示形態としての「赤色の枠」で、「(1+√5)/2」が表示形態としての「緑色の枠」で、そして「(1−√5)/2」が表示形態としての「ピンクの枠」で囲まれてディスプレイ3に表示される。   Specifically, “(X− (1−√5) / 2)” is the “blue frame” as the display form, and “(X− (1−√5) / 2)” is the display form. In “red frame”, “(1 + √5) / 2” is “green frame” as a display form, and “(1−√5) / 2” is “pink frame” as a display form. It is surrounded and displayed on the display 3.

次に図7の2行目に示すように、ユーザが2行目の計算式「XX−X((1−√5)/2)−X((1+√5)/2)」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「XX−X((1−√5)/2)−X((1+√5)/2)」がディスプレイ3の2行目に入力されて表示される(ステップS3)。   Next, when the user inputs the calculation formula “XX-X ((1−√5) / 2) −X ((1 + √5) / 2)” in the second row, as shown in the second row in FIG. (Step S16; Yes), the calculation formula “XX-X ((1−√5) / 2) −X ((1 + √5) / 2)” corresponding to the input operation is input to the second line of the display 3. Is displayed (step S3).

次に、2行目の計算式「XX−X((1−√5)/2)−X((1+√5)/2)」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、2行目の計算式「XX−X((1−√5)/2)−X((1+√5)/2)」中に開括弧があると判定される(ステップS7;Yes)。   Next, the formula part “XX-X ((1−√5) / 2) −X ((1 + √5) / 2)” in the second row does not include the mathematical expression part connected to the variable by an equal sign. (Step S4; No), and there is an open parenthesis in the calculation formula "XX-X ((1-√5) / 2) -X ((1 + √5) / 2)" in the second row It is determined (step S7; Yes).

次に、括弧に囲まれた数式部分として「((1−√5)/2)」と「((1+√5)/2)」が検出されると(ステップS8)、これらの数式部分(「((1−√5)/2)」又は「((1+√5)/2)」)と同値の数式部分である「(1−√5)/2」と「(1+√5)/2」は数式部分記憶エリア120にあると判定される(ステップS9;Yes)。   Next, when “((1−√5) / 2)” and “((1 + √5) / 2)” are detected as the formula parts enclosed in parentheses (step S8), these formula parts ( “((1−√5) / 2)” or “((1 + √5) / 2)”) and “(1−√5) / 2” and “(1 + √5) / 2 ”is determined to be in the formula partial storage area 120 (step S9; Yes).

次に、2行目の計算式「XX−X((1−√5)/2)−X((1+√5)/2)」中に分子又は分母に加減算を具備する分数が含まれると判定されると(ステップS11;Yes)、分数の数式部分として「(1−√5)/2」と「(1+√5)/2」が検出されて(ステップS12)、これらの数式部分(「(1−√5)/2」及び「(1+√5)/2」)が数式部分記憶エリア120にあると判定される(ステップS13;Yes)。   Next, when the calculation formula “XX-X ((1−√5) / 2) −X ((1 + √5) / 2)” in the second row includes a fraction having addition / subtraction in the numerator or denominator. If it is determined (step S11; Yes), “(1−√5) / 2” and “(1 + √5) / 2” are detected as fractional mathematical parts (step S12), and these mathematical parts ( It is determined that “(1−√5) / 2” and “(1 + √5) / 2”) are in the formula partial storage area 120 (step S13; Yes).

次に、図7の2行目に示すように、ディスプレイ3に表示されている2行目の計算式「XX−X((1−√5)/2)−X((1+√5)/2)」のうち数式部分記憶エリア120に記憶された数式部分「(1−√5)/2」及び「(1+√5)/2」が、対応する表示形態(「色の枠」)で、表示される(ステップS15)。   Next, as shown in the second line of FIG. 7, the calculation formula “XX−X ((1−√5) / 2) −X ((1 + √5) / 2) ”, the formula parts“ (1−√5) / 2 ”and“ (1 + √5) / 2 ”stored in the formula part storage area 120 are in the corresponding display form (“ color frame ”). Are displayed (step S15).

具体的には、「(1−√5)/2」が表示形態としての「ピンクの枠」で、そして「(1+√5)/2」が表示形態としての「緑色の枠」で囲まれてディスプレイ3に表示される。   Specifically, “(1−√5) / 2” is surrounded by a “pink frame” as a display form, and “(1 + √5) / 2” is surrounded by a “green frame” as a display form. Are displayed on the display 3.

次に図7の3行目に示すように、ユーザが3行目の計算式「+((1+√5)/2)((1−√5)/2)」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「+((1+√5)/2)((1−√5)/2)」がディスプレイ3の3行目に入力されて表示される(ステップS3)。   Next, as shown in the third line of FIG. 7, when the user inputs the calculation formula “+ ((1 + √5) / 2) ((1−√5) / 2)” in the third line (step S16; Yes), the calculation formula “+ ((1 + √5) / 2) ((1−√5) / 2)” corresponding to the input operation is input and displayed on the third line of the display 3 (step S3). .

次に、3行目の計算式「+((1+√5)/2)((1−√5)/2)」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、3行目の計算式「+((1+√5)/2)((1−√5)/2)」中に開括弧があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part “+ ((1 + √5) / 2) ((1−√5) / 2)” in the third row does not include a mathematical expression part connected to the variable by an equal sign. (Step S4; No) It is determined that there is an open parenthesis in the calculation formula “+ ((1 + √5) / 2) ((1−√5) / 2)” on the third line (Step S7; Yes). ).

次に、括弧に囲まれた数式部分として「((1+√5)/2)」と「((1−√5)/2)」が検出されると(ステップS8)、これらの数式部分(「((1+√5)/2)」又は「((1−√5)/2)」)と同値の数式部分である「(1+√5)/2」と「(1−√5)/2」は数式部分記憶エリア120にあると判定される(ステップS9;Yes)。   Next, when “((1 + √5) / 2)” and “((1−√5) / 2)” are detected as parenthesized mathematical expression parts (step S8), these mathematical expression parts ( “((1 + √5) / 2)” or “((1−√5) / 2)”) is equivalent to “(1 + √5) / 2” and “(1−√5) / 2 ”is determined to be in the formula partial storage area 120 (step S9; Yes).

次に、3行目の計算式「+((1+√5)/2)((1−√5)/2)」中に分子又は分母に加減算を具備する分数が含まれると判定されると(ステップS11;Yes)、分数の数式部分として「(1+√5)/2」と「(1−√5)/2」が検出されて(ステップS12)、これらの数式部分(「(1+√5)/2」及び「(1−√5)/2」)が数式部分記憶エリア120にあると判定される(ステップS13;Yes)。   Next, when it is determined that the calculation formula “+ ((1 + √5) / 2) ((1−√5) / 2)” in the third row includes a fraction having addition / subtraction in the numerator or denominator. (Step S11; Yes), “(1 + √5) / 2” and “(1−√5) / 2” are detected as fractional mathematical parts (Step S12), and these mathematical parts (“(1 + √ 5) / 2 ”and“ (1−√5) / 2 ”) are determined to be in the formula partial storage area 120 (step S13; Yes).

次に、図7の3行目に示すように、ディスプレイ3に表示されている3行目の計算式「+((1+√5)/2)((1−√5)/2)」のうち数式部分記憶エリア120に記憶された数式部分「(1+√5)/2」及び「(1−√5)/2」が、対応する表示形態(「色の枠」)で、表示される(ステップS15)。   Next, as shown in the third line of FIG. 7, the calculation formula “+ ((1 + √5) / 2) ((1−√5) / 2)” on the third line displayed on the display 3 Of these, the formula parts “(1 + √5) / 2” and “(1−√5) / 2” stored in the formula part storage area 120 are displayed in the corresponding display form (“color frame”). (Step S15).

具体的には、「(1+√5)/2」が表示形態としての「緑色の枠」で、そして「(1−√5)/2」が表示形態としての「ピンクの枠」で囲まれてディスプレイ3に表示される。   Specifically, “(1 + √5) / 2” is surrounded by a “green frame” as a display form, and “(1−√5) / 2” is surrounded by a “pink frame” as a display form. Are displayed on the display 3.

次に図7の4行目に示すように、ユーザが4行目の計算式「XX−X((1−√5)/2+(1+√5)/2)」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「XX−X((1−√5)/2+(1+√5)/2)」がディスプレイ3の4行目に入力されて表示される(ステップS3)。   Next, as shown in the fourth line of FIG. 7, when the user inputs the calculation formula “XX−X ((1−√5) / 2 + (1 + √5) / 2)” in the fourth line (step S16; Yes), the calculation formula “XX−X ((1−√5) / 2 + (1 + √5) / 2)” corresponding to the input operation is input and displayed on the fourth line of the display 3 (step S3). .

次に、4行目の計算式「XX−X((1−√5)/2+(1+√5)/2)」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、4行目の計算式「XX−X((1−√5)/2+(1+√5)/2)」中に開括弧があると判定される(ステップS7;Yes)。   Next, it is determined that the formula “XX−X ((1−√5) / 2 + (1 + √5) / 2)” in the fourth row does not include a mathematical expression part connected with an equal sign in the variable. (Step S4; No) It is determined that there is an open parenthesis in the calculation formula “XX-X ((1−√5) / 2 + (1 + √5) / 2)” on the fourth line (Step S7; Yes). ).

次に、括弧に囲まれた数式部分として「((1−√5)/2+(1+√5)/2)」が検出されると(ステップS8)、この数式部分(「((1−√5)/2+(1+√5)/2)」)と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして、数式部分「((1−√5)/2+(1+√5)/2)」は表示形態としての「水色の枠」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。   Next, when “((1−√5) / 2 + (1 + √5) / 2)” is detected as a formula part enclosed in parentheses (step S8), this formula part (“((1-√√ 5) / 2 + (1 + √5) / 2) ”)) is determined not to be in the formula part storage area 120 (step S9; No). The mathematical formula portion “((1−√5) / 2 + (1 + √5) / 2)” is stored in the mathematical formula portion storage area 120 in association with “light blue frame” as the display form (step S10). .

次に、4行目の計算式「XX−X((1−√5)/2+(1+√5)/2)」中に分子又は分母に加減算を具備する分数が含まれると判定されると(ステップS11;Yes)、分数の数式部分として「(1−√5)/2」と「(1+√5)/2」が検出されて(ステップS12)、これらの数式部分(「(1−√5)/2」及び「(1+√5)/2」)が数式部分記憶エリア120にあると判定される(ステップS13;Yes)。   Next, when it is determined that the calculation formula “XX-X ((1−√5) / 2 + (1 + √5) / 2)” in the fourth row includes a fraction having addition / subtraction in the numerator or denominator. (Step S11; Yes), “(1-√5) / 2” and “(1 + √5) / 2” are detected as fractional mathematical parts (Step S12), and these mathematical parts (“(1- √5) / 2 ”and“ (1 + √5) / 2 ”) are determined to be in the formula partial storage area 120 (step S13; Yes).

次に、図7の4行目に示すように、ディスプレイ3に表示されている4行目の計算式「XX−X((1−√5)/2+(1+√5)/2)」のうち数式部分記憶エリア120に記憶された数式部分「((1−√5)/2+(1+√5)/2)」、「(1−√5)/2」及び「(1+√5)/2」が、対応する表示形態(「色の枠」)で、表示される(ステップS15)。   Next, as shown in the fourth line of FIG. 7, the calculation formula “XX−X ((1−√5) / 2 + (1 + √5) / 2)” of the fourth line displayed on the display 3 Of these, the mathematical expression parts “((1−√5) / 2 + (1 + √5) / 2)”, “(1−√5) / 2” and “(1 + √5) / 2 ”is displayed in a corresponding display form (“ color frame ”) (step S15).

具体的には、「((1−√5)/2+(1+√5)/2)」が表示形態としての「水色の枠」で、「(1−√5)/2」が表示形態としての「ピンクの枠」で、そして「(1+√5)/2」が表示形態としての「緑色の枠」で囲まれてディスプレイ3に表示される。   Specifically, “((1-√5) / 2 + (1 + √5) / 2)” is the “light blue frame” as the display form, and “(1-√5) / 2” is the display form. "(1 + √5) / 2" is displayed on the display 3 surrounded by a "green frame" as a display form.

次に図7の5行目に示すように、ユーザが5行目の計算式「+((1+√5)(1−√5)/4)」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「+((1+√5)(1−√5)/4)」がディスプレイ3の5行目に入力されて表示される(ステップS3)。   Next, as shown in the fifth line of FIG. 7, when the user inputs the calculation formula “+ ((1 + √5) (1−√5) / 4)” in the fifth line (step S16; Yes), the input A calculation formula “+ ((1 + √5) (1−√5) / 4)” corresponding to the operation is input and displayed on the fifth line of the display 3 (step S3).

次に、5行目の計算式「+((1+√5)(1−√5)/4)」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、5行目の計算式「+((1+√5)(1−√5)/4)」中に開括弧があると判定される(ステップS7;Yes)。   Next, it is determined that the formula part “+ ((1 + √5) (1−√5) / 4)” on the fifth line does not include a mathematical expression part connected with an equal sign in the variable (step S4; No) It is determined that there is an open parenthesis in the calculation formula “+ ((1 + √5) (1−√5) / 4)” on the fifth line (step S7; Yes).

次に、括弧に囲まれた数式部分として「((1+√5)(1−√5)/4)」、「(1+√5)」、及び「(1−√5)」が検出されると(ステップS8)、これらの数式部分(「((1+√5)(1−√5)/4)」、「(1+√5)」、又は「(1−√5)」)と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして、数式部分「((1+√5)(1−√5)/4)」は表示形態としての「黄緑色の枠」に対応付けて数式部分記憶エリア120に記憶され(ステップS10)、数式部分「(1+√5)」は表示形態としての「バイオレットの枠」に対応付けて数式部分記憶エリア120に記憶され(ステップS10)、数式部分「(1−√5)」は表示形態としての「橙色の枠」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。   Next, “((1 + √5) (1−√5) / 4)”, “(1 + √5)”, and “(1−√5)” are detected as the formula part enclosed in parentheses. And (step S8), which is the same value as those formula parts ("((1 + √5) (1-√5) / 4)", "(1 + √5)", or "(1-√5)")) It is determined that the formula part is not in the formula part storage area 120 (step S9; No). The mathematical expression portion “((1 + √5) (1−√5) / 4)” is stored in the mathematical expression portion storage area 120 in association with the “yellow-green frame” as the display form (step S10). The part “(1 + √5)” is stored in the formula part storage area 120 in association with the “violet frame” as the display form (step S10), and the formula part “(1−√5)” is displayed as the display form. It is stored in the mathematical expression partial storage area 120 in association with “orange frame” (step S10).

次に、5行目の計算式「+((1+√5)(1−√5)/4)」中に分子又は分母に加減算を具備する分数が含まれると判定されると(ステップS11;Yes)、分数の数式部分として「(1+√5)(1−√5)/4」が検出されて(ステップS12)、この数式部分「(1+√5)(1−√5)/4」と同値の数式部分「((1+√5)(1−√5)/4)」が数式部分記憶エリア120にあると判定される(ステップS13;Yes)。   Next, when it is determined that the calculation formula “+ ((1 + √5) (1−√5) / 4)” in the fifth row includes a fraction having addition / subtraction in the numerator or denominator (step S11; Yes), “(1 + √5) (1−√5) / 4” is detected as a fractional mathematical part (step S12), and this mathematical part “(1 + √5) (1−√5) / 4” It is determined that the equation part “((1 + √5) (1−√5) / 4)” having the same value as is in the equation part storage area 120 (step S13; Yes).

次に、図7の5行目に示すように、ディスプレイ3に表示されている5行目の計算式「+((1+√5)(1−√5)/4)」のうち数式部分記憶エリア120に記憶された数式部分「((1+√5)(1−√5)/4)」、「(1+√5)」及び「(1−√5)」が、対応する表示形態(「色の枠」)で、表示される(ステップS15)。   Next, as shown in the fifth line of FIG. 7, the partial expression storage is included in the calculation expression “+ ((1 + √5) (1−√5) / 4)” on the fifth line displayed on the display 3. The mathematical expression portions “((1 + √5) (1−√5) / 4)”, “(1 + √5)”, and “(1−√5)” stored in the area 120 correspond to the display forms (“ "Color frame") (step S15).

具体的には、「((1+√5)(1−√5)/4)」が表示形態としての「黄緑色の枠」で、「(1+√5)」が表示形態としての「バイオレットの枠」で、そして「(1−√5)」が表示形態としての「橙色の枠」で囲まれてディスプレイ3に表示される。   Specifically, “((1 + √5) (1−√5) / 4)” is a “yellow-green frame” as a display form, and “(1 + √5)” is a “violet” display form. “(1−√5)” is displayed on the display 3 surrounded by “orange frame” as a display form.

次に図7の6行目に示すように、ユーザが6行目の計算式「XX−X(((1−√5)+(1+√5))/2)」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「XX−X(((1−√5)+(1+√5))/2)」がディスプレイ3の6行目に入力されて表示される(ステップS3)。   Next, as shown in the sixth line of FIG. 7, when the user inputs the calculation formula “XX−X (((1−√5) + (1 + √5)) / 2)” in the sixth line (step S16). ; Yes), the calculation formula “XX−X (((1−√5) + (1 + √5)) / 2)” corresponding to the input operation is input and displayed on the sixth line of the display 3 (step). S3).

次に、6行目の計算式「XX−X(((1−√5)+(1+√5))/2)」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、6行目の計算式「XX−X(((1−√5)+(1+√5))/2)」中に開括弧があると判定される(ステップS7;Yes)。   Next, it is determined that the formula “XX−X (((1−√5) + (1 + √5)) / 2)” on the sixth line does not include a mathematical expression part connected with an equal sign to the variable. (Step S4; No), it is determined that there is an open parenthesis in the calculation formula “XX−X (((1−√5) + (1 + √5)) / 2)” on the sixth line (Step S7). ; Yes).

次に、括弧に囲まれた数式部分として「(((1−√5)+(1+√5))/2)」、「(1−√5)」、及び「(1+√5)」が検出されると(ステップS8)、これらの数式部分のうち「(1−√5)」及び「(1+√5)」が数式部分記憶エリア120にあると判定されるとともに、「(((1−√5)+(1+√5))/2)」と同値の数式部分「((1−√5)/2+(1+√5)/2)」が数式部分記憶エリア120にあると判定される(ステップS9;Yes)。   Next, “(((1−√5) + (1 + √5)) / 2)”, “(1−√5)”, and “(1 + √5)” are included as the formula part enclosed in parentheses. When it is detected (step S8), it is determined that “(1−√5)” and “(1 + √5)” of these formula parts are in the formula part storage area 120 and “(((1 −√5) + (1 + √5)) / 2) ”and the formula portion“ ((1−√5) / 2 + (1 + √5) / 2) ”are determined to be in the formula portion storage area 120. (Step S9; Yes).

次に、6行目の計算式「XX−X(((1−√5)+(1+√5))/2)」中に分子又は分母に加減算を具備する分数が含まれると判定されると(ステップS11;Yes)、分数の数式部分として「((1−√5)+(1+√5))/2」が検出されて(ステップS12)、この数式部分「((1−√5)+(1+√5))/2」と同値の数式部分「((1−√5)/2+(1+√5)/2)」が数式部分記憶エリア120にあると判定される(ステップS13;Yes)。   Next, it is determined that the calculation formula “XX−X (((1−√5) + (1 + √5)) / 2)” on the sixth line includes a fraction having addition / subtraction in the numerator or denominator. (Step S11; Yes), “((1−√5) + (1 + √5)) / 2” is detected as the fractional mathematical part (Step S12), and this mathematical part “((1−√5 ) + (1 + √5)) / 2 ”is determined to be in the formula portion storage area 120 (“ ((1−√5) / 2 + (1 + √5) / 2) ”) (step S13). ; Yes).

次に、図7の6行目に示すように、ディスプレイ3に表示されている6行目の計算式「XX−X(((1−√5)+(1+√5))/2)」のうち数式部分記憶エリア120に記憶された数式部分「(1−√5)」及び「(1+√5)」、並びに数式部分記憶エリア120に記憶された数式部分と同値の数式部分「(((1−√5)+(1+√5))/2)」が、対応する表示形態(「色の枠」)で、表示される(ステップS15)。   Next, as shown in the sixth line in FIG. 7, the calculation formula “XX−X (((1−√5) + (1 + √5)) / 2)” on the sixth line displayed on the display 3. Among the formula parts “(1−√5)” and “(1 + √5)” stored in the formula part storage area 120 and the formula part “(( (1-√5) + (1 + √5)) / 2) ”is displayed in a corresponding display form (“ color frame ”) (step S15).

具体的には、「(1−√5)」が表示形態としての「橙色の枠」で、「(1+√5)」が表示形態としての「バイオレットの枠」で、そして「(((1−√5)+(1+√5))/2)」が表示形態としての「水色の枠」で囲まれてディスプレイ3に表示される。   Specifically, “(1−√5)” is an “orange frame” as a display form, “(1 + √5)” is a “violet frame” as a display form, and “(((1 −√5) + (1 + √5)) / 2) ”is displayed on the display 3 surrounded by“ light blue frame ”as a display form.

次に図7の7行目に示すように、ユーザが7行目の計算式「+(1−(√5))/4」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「+(1−(√5))/4」がディスプレイ3の7行目に入力されて表示される(ステップS3)。 Next, when the user inputs the calculation formula “+ (1 2 − (√5) 2 ) / 4” in the seventh row (step S16; Yes), as shown in the seventh row in FIG. The calculation formula “+ (1 2 − (√5) 2 ) / 4” is input and displayed on the seventh line of the display 3 (step S3).

次に、7行目の計算式「+(1−(√5))/4」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、7行目の計算式「+(1−(√5))/4」中に関数があると判定される(ステップS7;Yes)。 Next, it is determined that the formula part “+ (1 2 − (√5) 2 ) / 4” on the seventh line does not include a mathematical expression part connected to the variable by an equal sign (step S4; No). It is determined that there is a function in the calculation formula “+ (1 2 − (√5) 2 ) / 4” on the seventh line (step S7; Yes).

次に、関数の数式部分として「(√5)」が検出されると(ステップS8)、
この数式部分「(√5)」と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして、数式部分「(√5)」は表示形態としての「藍色の枠」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。
Next, when “(√5) 2 ” is detected as the formula part of the function (step S8),
It is determined that there is no mathematical expression part equivalent to this mathematical expression part “(√5) 2 ” in the mathematical expression part storage area 120 (step S9; No). Then, the mathematical expression portion “(√5) 2 ” is stored in the mathematical expression portion storage area 120 in association with the “blue frame” as the display form (step S10).

次に、7行目の計算式「+(1−(√5))/4」中に分子又は分母に加減算を具備する分数が含まれると判定されると(ステップS11;Yes)、分数の数式部分として「(1−(√5))/4」が検出されて(ステップS12)、この数式部分「(1−(√5))/4」と同値の数式部分「(((1+√5)(1−√5))/4)」が数式部分記憶エリア120にあると判定される(ステップS13;Yes)。 Next, when it is determined that the calculation formula “+ (1 2 − (√5) 2 ) / 4” on the seventh line includes a fraction having addition / subtraction in the numerator or denominator (step S11; Yes), "(1 2- (√5) 2 ) / 4" is detected as the fractional mathematical part (step S12), and the mathematical part equivalent to this mathematical part "(1 2- (√5) 2 ) / 4" It is determined that “(((1 + √5) (1−√5)) / 4)” is in the formula partial storage area 120 (step S13; Yes).

次に、図7の7行目に示すように、ディスプレイ3に表示されている7行目の計算式「+(1−(√5))/4」のうち数式部分記憶エリア120に記憶された数式部分「(1−(√5))/4」及び「(√5)」が、対応する表示形態(「色の枠」)で、表示される(ステップS15)。 Next, as shown in the seventh line of FIG. 7, in the formula partial storage area 120 of the calculation formula “+ (1 2 − (√5) 2 ) / 4” on the seventh line displayed on the display 3. The stored mathematical formula portions “(1 2 − (√5) 2 ) / 4” and “(√5) 2 ” are displayed in the corresponding display form (“color frame”) (step S15).

具体的には、「(1−(√5))/4」が表示形態としての「黄緑色の枠」で、そして「(√5)」が表示形態としての「藍色の枠」で囲まれてディスプレイ3に表示される。 Specifically, “(1 2 − (√5) 2 ) / 4” is a “yellow-green frame” as a display form, and “(√5) 2 ” is a “blue frame as a display form. "Is displayed on the display 3.

次に図7の8行目に示すように、ユーザが8行目の計算式「X−X−2」を入力すると(ステップS16;Yes)、入力操作に応じた計算式「X−X−2」がディスプレイ3の8行目に入力されて表示される(ステップS3)。 Next, as shown in the eighth line of FIG. 7, when the user inputs the calculation formula “X 2 -X-2” on the eighth line (step S16; Yes), the calculation formula “X 2 − "X-2" is input and displayed on the eighth line of the display 3 (step S3).

次に、8行目の計算式「X−X−2」に変数に等号で結ばれた数式部分が含まれないと判定されて(ステップS4;No)、8行目の計算式「X−X−2」中に関数があると判定される(ステップS7;Yes)。 Next, it is determined that the formula “X 2 -X-2” on the 8th line does not include the mathematical expression part connected to the variable by an equal sign (step S4; No), It is determined that there is a function in “X 2 -X-2” (step S7; Yes).

次に、関数の数式部分として「X」が検出されると(ステップS8)、この数式部分「X」と同値の数式部分が数式部分記憶エリア120にないと判定される(ステップS9;No)。そして、数式部分「X」は表示形態としての「茶色の枠」に対応付けて数式部分記憶エリア120に記憶される(ステップS10)。 Next, when “X 2 ” is detected as the formula part of the function (step S8), it is determined that there is no formula part having the same value as the formula part “X 2 ” in the formula part storage area 120 (step S9; No). The mathematical formula portion “X 2 ” is stored in the mathematical formula portion storage area 120 in association with the “brown frame” as the display form (step S10).

次に、8行目の計算式「X−X−2」中に分子又は分母に加減算を具備する分数が含まれないと判定されると(ステップS11;No)、図7の8行目に示すように、ディスプレイ3に表示されている8行目の計算式「X−X−2」のうち数式部分記憶エリア120に記憶された数式部分「X」が、対応する表示形態(「色の枠」)で、表示される(ステップS15)。具体的には、「X」が表示形態としての「茶色の枠」で囲まれてディスプレイ3に表示される。 Next, when it is determined that the calculation formula “X 2 -X-2” on the eighth line does not include a fraction having addition / subtraction in the numerator or denominator (step S11; No), the eighth line in FIG. As shown in FIG. 4, the formula part “X 2 ” stored in the formula part storage area 120 in the calculation formula “X 2 -X-2” on the eighth line displayed on the display 3 is displayed in a corresponding display form ( "Color frame") (step S15). Specifically, “X 2 ” is displayed on the display 3 surrounded by a “brown frame” as a display form.

以上、本実施の形態によれば、図4のステップS7〜S15及び図5等に示したように、数式部分記憶エリア120により記憶された数式部分及び当該数式部分と同値の各数式部分を同一表示形態(同一文字色、同一種類の下線)でディスプレイ3に表示するので、計算式に含まれる括弧で囲まれた数式部分または関数の数式部分のうち、式変形すれば互いに同一となる数式部分同士を同一表示形態でディスプレイ3に表示する。従って、計算式を変形する場合であっても、同値の数式部分を分かりやすく識別表示することができる。   As described above, according to the present embodiment, as shown in steps S7 to S15 of FIG. 4 and FIG. 5 and the like, the mathematical formula portion stored in the mathematical formula portion storage area 120 and each mathematical formula portion equivalent to the mathematical formula portion are the same. Since it is displayed on the display 3 in the display form (the same font color and the same type of underline), the mathematical expression parts that are the same as each other when the expression is modified, among the mathematical expression parts enclosed in parentheses or the mathematical expression part of the function. They are displayed on the display 3 in the same display form. Therefore, even when the calculation formula is modified, the formula portion having the same value can be identified and displayed in an easy-to-understand manner.

また、図4のステップS4〜S6,S15及び図6等に示したように、計算式のうち、変数に等号で結ばれた数式部分、変数、及びこの数式部分に同値の各数式部分を、同一表示形態(同一文字色)でディスプレイ3に表示するので、数式部分を変数で置換する場合であっても、同値の数式部分を分かりやすく識別表示することができる。   Further, as shown in steps S4 to S6, S15 of FIG. 4 and FIG. 6 and the like, among the calculation formulas, a formula part connected to the variable with an equal sign, a variable, and each formula part having the same value in this formula part. Since it is displayed on the display 3 in the same display form (same character color), even if the mathematical expression portion is replaced with a variable, the mathematical expression portion of the same value can be identified and displayed in an easy-to-understand manner.

さらに、図4のステップS4〜S15及び図7等に示したように、計算式のうち、数式部分記憶エリア120に記憶された数式部分に同値の各数式部分を表示形態としての同色の枠で囲んでディスプレイ3に表示するようになっているので、計算式を変形する場合であっても、同値の数式部分を一層分かりやすく識別表示することができる。また、これらの数式部分同士が互いに重なり合う場合であっても、同値の数式部分を分かりやすく識別表示することができる。   Further, as shown in steps S4 to S15 of FIG. 4 and FIG. 7 and the like, among the calculation formulas, each formula portion having the same value as the formula portion stored in the formula portion storage area 120 is displayed in the same color frame as a display form. Since it is enclosed and displayed on the display 3, even if the calculation formula is modified, it is possible to identify and display the formula portion having the same value more easily. Even if these mathematical formula parts overlap each other, the equivalent mathematical formula parts can be easily identified and displayed.

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

例えば、本発明に係る数式表示装置を関数電卓1として説明したが、本発明が適用可能なものは、このような製品に限定されず、携帯電話、パソコン、PDA(Personal Digital Assistant)、ゲーム機などの電子機器全般に適用可能である。また、本発明に係る数式表示処理プログラム122は、関数電卓1に対して着脱可能なメモリカード、CD等に記憶されることとしてもよい。   For example, the mathematical expression display device according to the present invention has been described as the scientific calculator 1, but those to which the present invention can be applied are not limited to such products, but are mobile phones, personal computers, PDAs (Personal Digital Assistants), game machines. It can be applied to all electronic devices. The mathematical expression display processing program 122 according to the present invention may be stored in a memory card, a CD, or the like that can be attached to and detached from the scientific calculator 1.

以上、本発明のいくつかの実施形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
〔付記〕
<請求項1>
括弧または関数を含む計算式を表示する計算式表示手段と、
前記計算式から、括弧で囲まれた数式部分または関数の数式部分を検出する数式部分検出手段と、
前記数式部分検出手段により検出された数式部分を記憶する数式部分記憶手段と、
前記計算式のうち、前記数式部分記憶手段により記憶された数式部分と、当該数式部分に同値の各数式部分とを同一表示形態で表示させる数式部分識別表示制御手段と、
を備えることを特徴とする数式表示装置。
<請求項2>
請求項1記載の数式表示装置において、
前記計算式は、
ユーザ操作により入力される入力式、または、当該入力式を変形してユーザ操作により入力される変形式であることを特徴とする数式表示装置。
<請求項3>
請求項1又は2記載の数式表示装置において、
前記数式部分検出手段は、
前記計算式から、変数に等号で結ばれた数式部分を検出し、
前記数式部分記憶手段は、
前記計算式検出手段により、変数に等号で結ばれた数式部分が検出される場合に、当該数式部分と当該変数とを対応付けて記憶し、
前記数式部分識別表示制御手段は、
前記計算式記憶手段に前記数式部分と前記変数とが対応付けて記憶される場合に、当該数式部分、当該変数、及び当該数式部分に同値の各数式部分を、同一表示形態で表示させることを特徴とする数式表示装置。
<請求項4>
請求項1〜3の何れか一項に記載の数式表示装置において、
前記計算式表示手段は、
前記計算式を自然表示形式で表示し、
前記同一表示形態は、表示対象を同色の枠で囲む表示形態であることを特徴とする数式表示装置。
<請求項5>
請求項1〜4の何れか一項に記載の数式表示装置において、
前記数式部分検出手段は、
分子又は分母に加減算を具備する分数が前記計算式に含まれる場合に、当該分数を数式部分として検出することを特徴とする数式表示装置。
<請求項6>
括弧または関数を含む計算式を表示する計算式表示手段を有するコンピュータに、
前記計算式から、括弧で囲まれた数式部分または関数の数式部分を検出する数式部分検出機能と、
前記数式部分検出機能により検出された数式部分を記憶する数式部分記憶機能と、
前記計算式のうち、前記数式部分記憶機能により記憶された数式部分と当該数式部分に同値の各数式部分とを同一表示形態で表示させる数式部分識別表示制御機能と、
を実現させることを特徴とするプログラム。
As mentioned above, although several embodiment of this invention was described, the scope of the present invention is not limited to the above-mentioned embodiment, The range of the invention described in the claim, and its equivalent range Including.
The invention described in the scope of claims attached to the application of this application will be added below. The item numbers of the claims described in the appendix are as set forth in the claims attached to the application of this application.
[Appendix]
<Claim 1>
Formula display means for displaying formulas including parentheses or functions,
Formula part detection means for detecting a formula part enclosed in parentheses or a formula part of a function from the formula,
Formula part storage means for storing the formula part detected by the formula part detection means;
Of the calculation formulas, the formula part stored in the formula part storage means, and the formula part identification display control means for displaying each formula part having the same value in the formula part in the same display form,
A mathematical expression display device comprising:
<Claim 2>
The mathematical formula display device according to claim 1,
The calculation formula is
A mathematical expression display device which is an input expression input by a user operation or a modified expression input by a user operation by modifying the input expression.
<Claim 3>
In the mathematical expression display device according to claim 1 or 2,
The mathematical expression part detecting means includes
From the above formula, detect the formula part connected to the variable with an equal sign,
The mathematical formula partial storage means includes
When the mathematical expression part connected to the variable by an equal sign is detected by the calculation expression detection means, the mathematical expression part and the variable are stored in association with each other,
The mathematical expression partial identification display control means includes:
When the formula part and the variable are stored in association with each other in the calculation formula storage means, the formula part, the variable, and each formula part having the same value in the formula part are displayed in the same display form. A mathematical expression display device.
<Claim 4>
In the mathematical expression display device according to any one of claims 1 to 3,
The calculation formula display means includes
Display the calculation formula in a natural display format,
The same display form is a display form in which a display target is surrounded by a frame of the same color.
<Claim 5>
In the mathematical expression display device according to any one of claims 1 to 4,
The mathematical expression part detecting means includes
A mathematical expression display device that detects a fraction as a mathematical expression part when a fraction having addition or subtraction in a numerator or denominator is included in the calculation expression.
<Claim 6>
In a computer having a calculation formula display means for displaying a calculation formula including parentheses or a function,
A formula part detection function for detecting a formula part enclosed in parentheses or a formula part of a function from the formula,
Formula part storage function for storing the formula part detected by the formula part detection function;
Among the calculation formulas, the formula part identification display control function for displaying the formula part stored by the formula part storage function and each formula part having the same value in the formula part in the same display form;
A program characterized by realizing.

1 関数電卓
2 入力キー群
3 ディスプレイ
11 CPU
12 メモリ
14 入力部
15 表示部
17 記録媒体読取部
17A 外部情報記憶媒体
120 数式部分記憶エリア
121 入力データ記憶エリア
122 数式表示処理プログラム
1 Scientific calculator 2 Input key group 3 Display 11 CPU
12 memory 14 input unit 15 display unit 17 recording medium reading unit 17A external information storage medium 120 formula partial storage area 121 input data storage area 122 formula display processing program

Claims (7)

表示部と、
前記表示部に計算式を表示させる計算式表示制御手段と、
前記計算式が、変数と数式部分との置換式である場合に、当該数式部分と当該変数とを対応付けて記憶する数式部分変数記憶手段と、
前記計算式から、括弧で囲まれた部分を含む数式部分を検出する数式部分検出手段と、
前記数式部分検出手段により検出された数式部分を記憶する数式部分記憶手段と、
前記計算式のうち、前記数式部分記憶手段に記憶された数式部分と、当該数式部分の一部を前記置換式の変数で置き換えた各数式部分とを同一表示形態で表示させる数式部分識別表示制御手段と、
を備えることを特徴とする数式表示装置。
A display unit;
A calculation formula display control means for Ru display the calculation formula on the display unit,
Formula part variable storage means for storing the formula part and the variable in association with each other when the calculation formula is a substitution formula for the variable and formula part;
Formula part detection means for detecting a formula part including a part enclosed in parentheses from the formula,
Formula part storage means for storing the formula part detected by the formula part detection means;
Wherein among the formulas, and it remembers been mathematical expression part into the equation partial storage means and each formula moiety by replacing part of the mathematical expression part in the variable of the substituent formula, formulas partial identification to be displayed in the same display form Display control means;
A mathematical expression display device comprising:
請求項1記載の数式表示装置において、
前記計算式のうち、前記数式部分変数記憶手段に記憶された数式部分と、当該数式部分に対応づけて記憶された変数と、を同一表示形態で表示させる変数数式部分識別表示制御手段を備える、
ことを特徴とする数式表示装置。
The mathematical formula display device according to claim 1,
Among the calculation formulas, the formula part stored in the formula part variable storage means, and a variable formula part identification display control means for displaying the variable stored in association with the formula part in the same display form,
A mathematical expression display device.
請求項1又は2記載の数式表示装置において、
前記数式部分識別表示制御手段は、前記数式部分記憶手段に記憶された各数式部分と、当該数式部分の一部を前記置換式の変数で置き換えた各数式部分と、を重畳してそれぞれ同一表示形態で表示させることを特徴とする数式表示装置。
In the mathematical expression display device according to claim 1 or 2,
The formula part identification display control unit superimposes each formula part stored in the formula part storage unit and each formula part obtained by replacing a part of the formula part with a variable of the replacement formula, respectively, and displays the same part respectively. A mathematical expression display device characterized by being displayed in a form .
請求項1〜3の何れか一項に記載の数式表示装置において、
前記計算式表示制御手段は、
前記計算式を自然表示形式で表示させ
前記同一表示形態は、表示対象を同色の枠で囲む表示形態であることを特徴とする数式表示装置。
In the mathematical expression display device according to any one of claims 1 to 3,
The calculation formula display control means includes:
The formula is displayed in a natural display format,
The same display form is a display form in which a display target is surrounded by a frame of the same color.
請求項1〜4の何れか一項に記載の数式表示装置において、
前記数式部分検出手段は、
分子又は分母に加減算を具備する分数が前記計算式に含まれる場合に、当該分数を数式部分として検出することを特徴とする数式表示装置。
In the mathematical expression display device according to any one of claims 1 to 4,
The mathematical expression part detecting means includes
A mathematical expression display device that detects a fraction as a mathematical expression part when a fraction having addition or subtraction in a numerator or denominator is included in the calculation expression.
請求項1〜5の何れか一項に記載の数式表示装置において、In the mathematical expression display device according to any one of claims 1 to 5,
前記数式部分検出手段は、前記計算式から、括弧で囲まれた数式部分または関数の数式部分を検出し、The formula part detection means detects a formula part enclosed in parentheses or a formula part of a function from the calculation formula,
前記同一表示形態は、表示対象を同一の色又は同一の下線を付して表示する表示形態である、The same display form is a display form for displaying a display object with the same color or the same underline.
ことを特徴とする数式表示装置。A mathematical expression display device.
を有するコンピュータに、
前記表示部に計算式を表示させる計算式表示制御機能と、
前記計算式が、変数と数式部分との置換式である場合に、当該数式部分と当該変数とを対応付けて記憶する数式部分変数記憶機能と、
前記計算式から、括弧で囲まれた部分を含む数式部分を検出する数式部分検出機能と、
前記数式部分検出機能により検出された数式部分を記憶する数式部分記憶機能と、
前記計算式のうち、前記数式部分記憶機能により記憶された数式部分と当該数式部分の一部を前記置換式の変数で置き換えた各数式部分とを同一表示形態で表示させる数式部分識別表示制御機能と、
を実現させることを特徴とするプログラム。
Viewing unit to a computer having,
A calculation formula display control function for displaying a calculation formula on the display unit;
A formula part variable storage function for storing the formula part and the variable in association with each other when the calculation formula is a substitution formula of a variable and a formula part;
A formula part detection function for detecting a formula part including a part enclosed in parentheses from the formula,
Formula part storage function for storing the formula part detected by the formula part detection function;
Wherein among the formulas, the stored mathematical expression part by the equation partial storage function, and each formula moiety by replacing part of the mathematical expression part in the variable of the substitution expression, mathematical expression part identification to be displayed in the same display form Control function,
A program characterized by realizing.
JP2011212044A 2011-09-28 2011-09-28 Mathematical expression display device and program Active JP5919699B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011212044A JP5919699B2 (en) 2011-09-28 2011-09-28 Mathematical expression display device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011212044A JP5919699B2 (en) 2011-09-28 2011-09-28 Mathematical expression display device and program

Publications (2)

Publication Number Publication Date
JP2013073427A JP2013073427A (en) 2013-04-22
JP5919699B2 true JP5919699B2 (en) 2016-05-18

Family

ID=48477878

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011212044A Active JP5919699B2 (en) 2011-09-28 2011-09-28 Mathematical expression display device and program

Country Status (1)

Country Link
JP (1) JP5919699B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5786671B2 (en) * 2011-06-23 2015-09-30 カシオ計算機株式会社 Formula input device and program
JP2015060459A (en) * 2013-09-19 2015-03-30 カシオ計算機株式会社 Mathematical expression display control device and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4239908B2 (en) * 2004-06-21 2009-03-18 カシオ計算機株式会社 Mathematical expression display control apparatus and program
JP4661654B2 (en) * 2006-03-27 2011-03-30 カシオ計算機株式会社 Formula display control apparatus and formula display control program
JP4525771B2 (en) * 2008-02-19 2010-08-18 カシオ計算機株式会社 Electronic calculator
JP5589433B2 (en) * 2010-02-24 2014-09-17 カシオ計算機株式会社 Formula input device and program
JP5012935B2 (en) * 2010-03-15 2012-08-29 カシオ計算機株式会社 Formula arithmetic device and program

Also Published As

Publication number Publication date
JP2013073427A (en) 2013-04-22

Similar Documents

Publication Publication Date Title
US8843537B2 (en) Electronic calculator, display method, and recording medium for displaying mathematical expression in full color
JP4462181B2 (en) Fraction display device and fraction display program
US20140080104A1 (en) Kanji stroke order learning device, kanji stroke order learning support method, kanji stroke order learning system and recording medium in which kanji stroke order learning program is recorded
US8791959B2 (en) Electronic device which renders graph, graph display method and recording medium in which graph rendering program is recorded
JP2007264741A (en) Mathematical expression display controller and mathematical expression display control program
JP5012935B2 (en) Formula arithmetic device and program
JP2011203908A (en) Graph display device and program
CN109558188B (en) Display control method, and storage medium
JP5589433B2 (en) Formula input device and program
JP5919699B2 (en) Mathematical expression display device and program
JP2012083970A (en) Computer and program
JP4961792B2 (en) Formula editing apparatus and formula editing program
JP6011694B2 (en) Mathematical expression display control apparatus and program
JP2017010365A (en) Dictionary terminal and information display control program
JP5834897B2 (en) Mathematical expression display device and mathematical expression display program
JP5728853B2 (en) Electronic computer and program
JP5716718B2 (en) Chinese display control apparatus, Chinese display control program, and Chinese display control method
JP6004746B2 (en) Information display device, information display method, information display program, and program recording medium
JP6504128B2 (en) Electronic device, data processing method and program
JP5979212B2 (en) Electronic equipment and programs
JP6028329B2 (en) Mathematical expression display device and mathematical expression display program
JP6764662B2 (en) Signature input device
JP2014149642A (en) Mathematical expression display control device, mathematical expression display control method, and program
US11366587B2 (en) Electronic device, electronic device control method, and recording medium
JP5532890B2 (en) Display device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140919

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150804

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151002

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: 20160315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160328

R150 Certificate of patent or registration of utility model

Ref document number: 5919699

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150