JP5304191B2 - Fraction display device - Google Patents

Fraction display device Download PDF

Info

Publication number
JP5304191B2
JP5304191B2 JP2008291255A JP2008291255A JP5304191B2 JP 5304191 B2 JP5304191 B2 JP 5304191B2 JP 2008291255 A JP2008291255 A JP 2008291255A JP 2008291255 A JP2008291255 A JP 2008291255A JP 5304191 B2 JP5304191 B2 JP 5304191B2
Authority
JP
Japan
Prior art keywords
formula
numerical value
mixed number
mathematical expression
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2008291255A
Other languages
Japanese (ja)
Other versions
JP2010117930A (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 JP2008291255A priority Critical patent/JP5304191B2/en
Publication of JP2010117930A publication Critical patent/JP2010117930A/en
Application granted granted Critical
Publication of JP5304191B2 publication Critical patent/JP5304191B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、分数式の計算機能を備えた電子式計算機で分数を表示させるための分数表示装置に関する。   The present invention relates to a fraction display device for displaying a fraction on an electronic calculator having a fractional expression calculation function.

従来、電卓と称する電子式計算機において、ユーザによってキー入力された数式やその計算結果の表記形態は、表示部がその各桁を8の字表示にしたセグメント式であるために、そのまま1行にして表示されるものが多かった。   2. Description of the Related Art Conventionally, in an electronic calculator called a calculator, a numerical expression entered by a user and a notation form of the calculation result are a segment expression in which each digit is displayed in an 8-character form. Many items were displayed.

例えば分数を含む数式の場合、当該分数記号(以下、「割線」と称する)を挟んだ分子と分母を上下方向に自然表示できないために、通常分数である「B分のA」は[A」B]、帯分数である「AとC分のB」は[A」B」C]などと、そのまま1行表示されていた。   For example, in the case of a mathematical expression including a fraction, since the numerator and denominator sandwiching the fraction symbol (hereinafter referred to as “secant”) cannot be displayed naturally in the vertical direction, “A” for B is usually “A”. B], “B of A and C”, which is a mixed number, is displayed as a single line, such as [A ”B” C].

そこで、分数式の分子,分母を、割線を境界に上下に配置して教科書に記載されるような自然な形式で表示するようにした、ドットマトリクス型表示画面を備えた電卓が考えられている(例えば、特許文献1、特許文献2参照。)。
特開2008−146289号公報 特開2006−004326号公報
Therefore, a calculator equipped with a dot matrix type display screen has been considered, in which the numerator and denominator of the fractional expression are displayed in a natural format as described in a textbook with the secant line as the boundary. (For example, refer to Patent Document 1 and Patent Document 2.)
JP 2008-146289 A JP 2006-004326 A

前記従来の電卓において、数式編集のため、例えば入力された帯分数である「2と4分の3」における分数部分「4分の3」の割線を削除して分数でなくした場合に、整数部[2]と、割線の削除された分子部[3]と分母部[4]とを単純に連続させてしまうと、[234]と桁数の大きい、元の帯分数からかけ離れた不自然な数値になってしまう問題がある。   In the above-mentioned conventional calculator, for example, when editing the mathematical formula, for example, by removing the dividing line of the fraction part “3/4” in the input mixed fraction “2 and 3/4” and removing it as a fraction, an integer If the part [2], the numerator part [3] from which the secant line is deleted, and the denominator part [4] are simply continued, [234] and a large number of digits, an unnatural difference from the original mixed number There is a problem that becomes a numerical value.

また、例えば入力された数式[2+34]において、カーソルを[3]と[4]との間に位置させて分数への取り込み操作を行った場合、[2+]はそのまま残り「2プラス4分の3」、つまり前記1行表示では[2+3」4]、自然表示では[2+3/4]となり、直前の整数部[2]を1つの関数(帯分数)として取り込むことができない問題があった。   Also, for example, in the input formula [2 + 34], when the cursor is positioned between [3] and [4] and an operation for taking a fraction is performed, [2+] remains as it is, “2 plus 4 minutes” 3 ”, that is, [2 + 3] 4] in the one-line display and [2 + 3/4] in the natural display, and there is a problem that the immediately preceding integer part [2] cannot be taken in as one function (combined number).

本発明は、このような課題に鑑みなされたもので、第1の目的は、帯分数の割線を削除した場合に、整数部以降の各数値が単純に連続して不自然な数値になることなく、整数部を正しく残して編集することが可能になる分数表示装置を提供することにある。   The present invention has been made in view of such a problem, and the first object is that when the dividing line of the mixed number is deleted, each numerical value after the integer part is simply continuously unnatural. It is another object of the present invention to provide a fraction display device that allows editing while leaving the integer part correctly.

第2の目的は、帯分数の取り込みを行う場合に、取り込み部分の前部に位置し[+]で繋がる整数部を正しく取り込んで編集することが可能になる分数表示装置を提供することにある。   A second object is to provide a fraction display device that, when taking in fractions, can correctly capture and edit the integer part located in front of the import part and connected by [+]. .

請求項1に記載の分数表示装置は、ユーザ操作に応じて、帯分数を含む数式を入力する数式入力手段と、この数式入力手段により入力された数式を表示する数式表示手段と、この数式表示手段により表示された帯分数の割線を、ユーザ操作に応じて削除する割線削除手段と、この割線削除手段により前記帯分数の割線が削除された場合に、当該帯分数の整数部とその後にある割線が削除された分数の数値部との間に「+」の算術記号を挿入する数式編集手段と、を備えたことを特徴としている。   The fraction display device according to claim 1 is a mathematical expression input means for inputting a mathematical expression including a mixed number in accordance with a user operation, a mathematical expression display means for displaying a mathematical expression input by the mathematical expression input means, and the mathematical expression display. The dividing line deleting means for deleting the dividing line of the mixed number displayed by the means according to the user operation, and when the dividing line of the mixed number is deleted by the dividing line deleting means, the integer part of the mixed number is followed by And mathematical expression editing means for inserting an arithmetic symbol of “+” between the numerical part of the fraction from which the secant has been deleted.

請求項2に記載の分数表示装置は、ユーザ操作に応じて、「+」の算術記号を含む数式を入力する数式入力手段と、この数式入力手段により入力された数式を表示する数式表示手段と、この数式表示手段により表示された数式について、ユーザ操作に応じて帯分数の取り込みを指示する取り込み指示手段と、この取り込み指示手段により帯分数の取り込みが指示された場合に、前記数式に含まれる「+」の前の数値を整数部とし、後の数値を分数部とした帯分数に変換する帯分数化手段と、を備えたことを特徴としている。   According to a second aspect of the present invention, there is provided the fraction display device according to a user operation, a mathematical expression input means for inputting a mathematical expression including an arithmetic symbol “+”, and a mathematical expression display means for displaying a mathematical expression input by the mathematical expression input means; The mathematical expression displayed by the mathematical expression display means is included in the mathematical expression when the capture instruction means instructs the capture of the mixed number in accordance with the user operation, and when the capture instruction means instructs the capture of the mixed number. The present invention is characterized in that it has a mixed number conversion means for converting a numerical value before “+” into an integer part and converting the subsequent numerical value into a fraction part.

請求項3に記載の分数表示装置は、前記請求項2に記載の分数表示装置において、前記数式表示手段により表示された数式の任意の位置をユーザ操作に応じて指定する数式位置指定手段を備え、前記帯分数化手段は、前記数式位置指定手段により前記数式に含まれる「+」の後の数値が指定された状態で、前記取り込み指示手段により帯分数の取り込みが指示された場合に、前記「+」の前の数値を整数部とし、当該「+」の後で前記数式位置指定手段により指定された数値までを分子部、その後に続く数値を分母部とした帯分数に変換する、ことを特徴としている。   A fraction display device according to a third aspect of the present invention is the fraction display device according to the second aspect, further comprising a mathematical expression position designation means for designating an arbitrary position of the mathematical expression displayed by the mathematical expression display means in response to a user operation. The mixed number dividing means, when a numerical value after “+” included in the mathematical formula is designated by the mathematical formula position designating means, and when fetching of a mixed number is instructed by the capture instruction means, The numerical value before “+” is an integer part, and after “+”, the numerical value up to the numerical value specified by the mathematical expression position specifying means is converted into a mixed number with the numerator part and the subsequent numerical value as the denominator part. It is characterized by.

請求項1に記載の本発明によれば、帯分数の割線を削除した場合に、整数部以降の各数値が単純に連続して不自然な数値になることなく、整数部を正しく残して編集することが可能になる分数表示装置を提供できる。   According to the first aspect of the present invention, when the dividing line of the mixed number is deleted, each numerical value after the integer part is simply continuously edited, leaving the integer part correctly, and being edited. It is possible to provide a fraction display device that can be used.

請求項2または請求項3に記載の本発明によれば、帯分数の取り込みを行う場合に、取り込み部分の前部に位置し[+]で繋がる整数部を正しく取り込んで編集することが可能になる分数表示装置を提供できる。   According to the present invention described in claim 2 or claim 3, when capturing a mixed number, it is possible to correctly capture and edit an integer part located in front of the capturing part and connected by [+]. A fraction display device can be provided.

以下図面により本発明の実施の形態について説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の分数表示装置の実施形態に係る電子式計算機(関数電卓)10の外観構成を示す正面図である。   FIG. 1 is a front view showing an external configuration of an electronic calculator (functional calculator) 10 according to an embodiment of a fraction display device of the present invention.

この関数電卓10は、その携帯性の必要からユーザが片手で十分把持し片手で操作可能な小型サイズからなり、この電卓10の本体正面にはキー入力部11および表示部16が設けられる。   The scientific calculator 10 has a small size that allows a user to hold it with one hand and operate with one hand because of its portability. A key input unit 11 and a display unit 16 are provided on the front surface of the main body of the calculator 10.

キー入力部11には、数値や数式を入力したり計算の実行を指示したりするための数値・演算記号キー群12、各種の関数を入力したりメモリ機能を立ち上げたりするための関数機能キー群13、各種動作モードのメニュー画面を表示させたり動作モードの設定を指示したりするためのモード設定キー群14、表示部16に表示されたカーソルCuの移動操作やデータ項目の選択操作などを行うためのカーソルキー15、表示部16の下端に沿ってメニュー表示される各種の機能を選択的に指定するためのファンクションキーF1〜F4が備えられる。   The key input unit 11 is a numeric / arithmetic symbol key group 12 for inputting numerical values and mathematical formulas and instructing execution of calculations, and a function function for inputting various functions and for starting up a memory function. Key group 13, mode setting key group 14 for displaying menu screens of various operation modes and instructing setting of operation modes, moving operation of cursor Cu displayed on display unit 16, selection operation of data items, and the like Cursor keys 15 for performing functions and function keys F1 to F4 for selectively designating various functions displayed on the menu along the lower end of the display unit 16.

前記数値・演算記号キー群12としては、「0」〜「9」(数値)キー、「+」「−」「×」「÷」(算術記号)キー、「Exp」(べき関数)キー、「EXE」(実行)キー、「DEL」(削除)キー、「AC」(クリア)キーなどが配列される。   The numerical value / operation symbol key group 12 includes “0” to “9” (numerical value) keys, “+”, “−”, “×”, “÷” (arithmetic symbol) keys, “Exp” (power function) keys, An “EXE” (execute) key, “DEL” (delete) key, “AC” (clear) key, and the like are arranged.

前記関数機能キー群13としては、「√」(ルート)キー、「a/b」(分数)キー、「sin」(サイン)キー、「M+」(メモリプラス)キーなどが配列される。   As the function function key group 13, a “√” (root) key, an “a / b” (fraction) key, a “sin” (sign) key, an “M +” (memory plus) key, and the like are arranged.

前記モード設定キー群14としては、「Menu」(メニュー)キー、「Insert」(取り込み入力)キー、「Grph」(グラフ)キー、「Trac」(グラフトレース)キーなどが配列される。   As the mode setting key group 14, a “Menu” key, an “Insert” key, a “Grph” key, a “Trac” key, and the like are arranged.

なお、本実施形態において、「√」(ルート)、「a/b」(分数)、「Exp」(べき関数)などのように、1行表示では特殊な記号を用いての表示が必要になり、教科書記載の自然表示では数字や関数記号を2次元に展開して上下方向に重なった表示が必要になる関数のことを2D(dimension)関数と称する。   In this embodiment, it is necessary to display using special symbols in one-line display such as “√” (root), “a / b” (fraction), “Exp” (power function), etc. Thus, in a natural display described in a textbook, a function that requires two-dimensional expansion of numbers and function symbols and a display that overlaps vertically is called a 2D (dimension) function.

前記表示部16は、ドットマトリクス型の液晶表示ユニットからなる。   The display unit 16 is composed of a dot matrix type liquid crystal display unit.

この表示部16に表示させる数式を自然表示させるか又は1行表示させるかは、前記「Menu」キーの操作から表示される表示モードの設定画面に従って、数学的自然表示モード(Math I/O)又は電卓的表示モード(Line I/O)を指定することで選択的に設定される。   Whether the mathematical expression to be displayed on the display unit 16 is to be displayed naturally or on a single line is determined according to the display mode setting screen displayed from the operation of the “Menu” key, the mathematical natural display mode (Math I / O). Alternatively, it is selectively set by designating a calculator display mode (Line I / O).

図2は、前記関数電卓10の電子回路の構成を示すブロック図である。   FIG. 2 is a block diagram showing the configuration of the electronic circuit of the scientific calculator 10.

この関数電卓10の電子回路は、コンピュータであるCPU21を備えている。   The electronic circuit of the scientific calculator 10 includes a CPU 21 that is a computer.

CPU21は、ROMなどの記憶装置22に予め記憶されている電卓制御プログラムに従い回路各部の動作を制御し、RAM23を作業用メモリとしてキー入力部11からのキー入力信号に応じた各種の演算処理を実行する。   The CPU 21 controls the operation of each circuit unit in accordance with a calculator control program stored in advance in a storage device 22 such as a ROM, and performs various arithmetic processes according to key input signals from the key input unit 11 using the RAM 23 as a working memory. Run.

RAM23には、表示データメモリ24、カーソルポインタメモリ25、入力バッファ26などが確保される。   In the RAM 23, a display data memory 24, a cursor pointer memory 25, an input buffer 26, and the like are secured.

表示データメモリ24には、前記表示部16に表示させるべき数式のデータやその演算結果のデータなどが、前記数学的自然表示モード(Math I/O)又は電卓的表示モード(Line I/O)に従い、前記表示部16の表示領域に相当するビットマップデータに展開されて記憶される。   In the display data memory 24, the mathematical expression data to be displayed on the display unit 16 and the calculation result data are stored in the mathematical natural display mode (Math I / O) or the calculator display mode (Line I / O). Accordingly, the bitmap data corresponding to the display area of the display unit 16 is expanded and stored.

入力バッファ26(図4、図6参照)には、前記キー入力部11によりキー入力されたキーコードのデータが順次記憶される。例えば数値キーは数字を示すコードで、「sin」などの関数キーはその関数を示すコードで、「+」「−」「×」「÷」などの算術記号キーはその算術記号を示すコードで記憶される。なお、「MF」は、2D関数である「a/b」(分数)キーの入力に応じて記憶される分数式の先頭を示すコードである。また、この入力バッファ26には、キーに対応するコードの他に制御コードも記憶される。例えば、図4に示されるコードデータのうち、「EZ」は前記2D関数である分数式が掛かる範囲の終了を示すコード、「EE」は数式の終了を示すコードである。   In the input buffer 26 (see FIGS. 4 and 6), key code data key-input by the key input unit 11 is sequentially stored. For example, a numeric key is a code indicating a number, a function key such as “sin” is a code indicating the function, and an arithmetic symbol key such as “+”, “−”, “×”, “÷” is a code indicating the arithmetic symbol. Remembered. Note that “MF” is a code indicating the head of the fractional expression stored in response to the input of the “a / b” (fraction) key that is a 2D function. The input buffer 26 stores a control code in addition to the code corresponding to the key. For example, in the code data shown in FIG. 4, “EZ” is a code indicating the end of the range where the fractional expression, which is the 2D function, is applied, and “EE” is a code indicating the end of the expression.

カーソルポインタメモリ25(図4、図6参照)25には、前記入力バッファ26にキーコードデータとして記憶されると共に前記表示部16に表示されたキー入力データを対象にして、カーソルキー15の操作により移動表示されるカーソルCuが位置するところを示すポインタデータPが記憶される。   The cursor pointer memory 25 (see FIGS. 4 and 6) 25 stores the key code data stored in the input buffer 26 and operates the cursor keys 15 for the key input data displayed on the display unit 16. The pointer data P indicating where the cursor Cu to be moved and displayed is located is stored.

次に、前記構成の関数電卓10による数式表示・計算機能について説明する。   Next, a mathematical expression display / calculation function by the scientific calculator 10 having the above-described configuration will be described.

図3は、前記関数電卓10による数式表示・計算処理を示すフローチャートである。   FIG. 3 is a flowchart showing mathematical expression display / calculation processing by the scientific calculator 10.

まず、キー入力部11のキー操作に伴いユーザ所望のキーデータが入力され、「Insert」(取り込み入力)キー、「a/b」(分数)キー、「DEL」(削除)キー、「EXE」(実行)キーの何れの入力も無いと判断される状態では、当該キーデータの入力に応じた数式入力処理が実行され、順次表示部16に表示されて行く(ステップS1,S2→S3→S4→S5→S6)。   First, key data desired by the user is input in accordance with the key operation of the key input unit 11, and “Insert” (import input) key, “a / b” (fraction) key, “DEL” (delete) key, “EXE” In a state where it is determined that there is no (execution) key input, mathematical expression input processing corresponding to the input of the key data is executed and sequentially displayed on the display unit 16 (steps S1, S2 → S3 → S4). → S5 → S6).

そして、ユーザ任意の数式が入力表示された状態で「EXE」キーが操作されたと判断されると(ステップS5(Yes))、入力バッファ26に記憶されたキーコードデータが読み出されて演算対象となる数式として問題がないかチェックされる(ステップS7)。仮にこのステップS7の数式チェックで演算できない問題があると判断されたならばシンタックス・エラーの表示がなされる。前記入力された数式に問題がなければ演算処理が実行され(ステップS8)、その演算結果のデータが表示部16に表示される(ステップS9)。   When it is determined that the “EXE” key has been operated in a state where an arbitrary mathematical expression is input and displayed (step S5 (Yes)), the key code data stored in the input buffer 26 is read out and is subject to calculation. It is checked whether there is a problem as a mathematical expression (step S7). If it is determined that there is a problem that cannot be calculated by the mathematical expression check in step S7, a syntax error is displayed. If there is no problem in the inputted mathematical formula, the calculation process is executed (step S8), and the data of the calculation result is displayed on the display unit 16 (step S9).

例えば前記数式の入力と表示が行われた状態で、「Insert」キーが操作入力された場合には(ステップS2(Yes))、CPU21の動作モードが取り込み入力モードに設定される(ステップS10)。   For example, when the "Insert" key is operated and input in the state where the mathematical expression is input and displayed (step S2 (Yes)), the operation mode of the CPU 21 is set to the capture input mode (step S10). .

また、2D関数に相当する「a/b」(分数)キーが操作入力された場合には(ステップS3(Yes))、前記取り込み入力モードに設定されているか否か判断される(ステップS11)。そして、取り込み入力モードに設定されていないと判断された場合には(ステップS11(No))、当該「a/b」(分数)キーの入力毎に、整数部,分子部,分母部、あるいは分子部,分母部の各数値を順に区切って入力表示する分数式の入力処理が実行される(ステップS12)。   If the “a / b” (fractional) key corresponding to the 2D function is operated (step S3 (Yes)), it is determined whether or not the capture input mode is set (step S11). . If it is determined that the capture input mode is not set (step S11 (No)), an integer part, numerator part, denominator part, or A fractional expression input process is performed in which the numerical values of the numerator part and the denominator part are divided and displayed in order (step S12).

一方、前記取り込み入力モードに設定されていると判断された場合には(ステップS11(Yes))、入力バッファ26においてポインタデータP(Cu)が位置するキーコードの直前に「+」の算術記号コードが有るか否かによって帯分数化が可能か否か判断される(ステップS13)。   On the other hand, when it is determined that the capture input mode is set (step S11 (Yes)), an arithmetic symbol “+” immediately before the key code where the pointer data P (Cu) is located in the input buffer 26. It is determined whether or not the number can be divided according to whether or not there is a code (step S13).

そして、帯分数化可能と判断された場合には(ステップS13(Yes))、前記ポインタデータP(Cu)が位置する数値の直前の「+」で接続された数値を整数部、同ポインタデータP(Cu)が位置する数値を分子部、直後の数値を分母部とし、先頭に分数式を示す制御コード「MF」を入力した帯分数化処理が実行される(ステップS14)。   If it is determined that the number can be divided (step S13 (Yes)), the numerical value connected by “+” immediately before the numerical value at which the pointer data P (Cu) is located is represented by the integer part and the pointer data. A numeration process is executed in which the numerical value where P (Cu) is located is the numerator part and the immediately following numerical value is the denominator part, and the control code “MF” indicating the fractional expression is input at the head (step S14).

一方、帯分数化が不可能と判断された場合には(ステップS13(No))、前記ポインタデータP(Cu)が位置する数値を分子部、直後の数値を分母部とし、その先頭に分数式のコード「MF」を入力した分数化処理が実行される(ステップS15)。   On the other hand, if it is determined that the number cannot be divided (step S13 (No)), the numerical value where the pointer data P (Cu) is located is the numerator part and the immediately following numerical value is the denominator part. A fractionation process is executed by inputting the mathematical expression code “MF” (step S15).

また、「DEL」(削除)キーが操作入力された場合には(ステップS4)、入力バッファ26において、ポインタデータP(Cu)が位置する一連の数式を構成する各コードに、分数式を示すコード「MF」が存在すると共に、整数部を区切るコード「,」が存在するか否かにより、帯分数の数式に対する削除指示であるか否か判断される(ステップS16)。   When the “DEL” (delete) key is operated and input (step S4), a fractional expression is shown in each code constituting a series of mathematical expressions where the pointer data P (Cu) is located in the input buffer 26. Whether there is a code “MF” and whether there is a code “,” that separates the integer part, it is determined whether or not it is an instruction to delete the mixed number expression (step S16).

ここで、帯分数の数式に対する削除指示であると判断された場合には(ステップS16(Yes))、さらに、前記入力バッファ26におけるポインタデータP(Cu)の位置が、分子分母間を区切る割線の位置にあるか否かにより、当該割線の削除指示であるか否か判断される(ステップS17)。   Here, when it is determined that the instruction is a deletion instruction for the mixed number mathematical expression (step S16 (Yes)), the position of the pointer data P (Cu) in the input buffer 26 is a secant dividing the numerator denominator. It is determined whether or not it is an instruction to delete the secant (step S17).

ここで、割線の削除指示であると判断された場合には(ステップS17(Yes))、前記入力バッファ26に記憶されている帯分数の数式内で、整数部を区切るコード「,」に替えて「+」の算術記号コードが挿入され、当該整数部の数値が単純に加算される数式に変換される。またこれと共に、前記ポインタデータP(Cu)の位置する割線が削除されることで、前記整数部の数値が単純加算されて繋げられ、分子部と分母部の数値を上位桁と下位桁として配列した通常の数式に変換される(ステップS18)。   If it is determined that the instruction is to delete the dividing line (step S17 (Yes)), the code is replaced with a code “,” that separates the integer part in the mixed number mathematical formula stored in the input buffer 26. Then, the arithmetic symbol code “+” is inserted, and the numerical value of the integer part is converted into a mathematical expression that is simply added. At the same time, the dividing line where the pointer data P (Cu) is located is deleted, so that the numerical values of the integer part are simply added and connected, and the numerical values of the numerator part and denominator part are arranged as upper and lower digits. It is converted into the normal formula (step S18).

一方、「DEL」(削除)キーが操作入力された場合に(ステップS4(Yes))、帯分数の数式に対する削除指示ではないと判断された場合には(ステップS16(No))、前記入力バッファ26においてポインタデータP(Cu)が位置する数式中のキーコードが単純に削除される(ステップS19)。   On the other hand, when the “DEL” (delete) key is operated and input (step S4 (Yes)), if it is determined that the instruction is not a delete instruction for the mixed number formula (step S16 (No)), the input is performed. The key code in the mathematical formula where the pointer data P (Cu) is located in the buffer 26 is simply deleted (step S19).

図4は、前記関数電卓10の数式表示・計算処理による帯分数式の割線削除に伴う入力バッファ26でのキーコードの記憶変化状態を示す図である。   FIG. 4 is a diagram showing a change in the storage state of the key code in the input buffer 26 when the dividing line of the divided mathematical expression is deleted by the mathematical expression display / calculation processing of the scientific calculator 10.

図5は、前記図4(A)(B)で示した帯分数式の割線削除に伴う数学的自然表示モード(Math I/O)での数式の編集表示例を示す図である。   FIG. 5 is a diagram showing an example of editing and displaying the mathematical expression in the mathematical natural display mode (Math I / O) accompanying the deletion of the dividing line of the segmented mathematical expression shown in FIGS. 4 (A) and 4 (B).

図4(A)および図5(A)に示すような帯分数の分数式「2と4分の3」が入力表示されている状態で、当該分数式を通常の数式に変換するべく、カーソルCuを割線の位置に合わせ、「DEL」(削除)キーを操作すると(ステップS4(Yes))、入力バッファ26内でポインタデータP(Cu)が位置する一連の数式のコード「MF」〜「,」〜「/」〜「EG」に基づき、帯分数に対する削除処理であると判断される(ステップS16(Yes))。   In the state where the mixed fractional expression “2 and 3/4” as shown in FIGS. 4A and 5A is input and displayed, the cursor is used to convert the fractional expression into a normal mathematical expression. When Cu is set to the position of the dividing line and the “DEL” (delete) key is operated (step S4 (Yes)), a series of mathematical formula codes “MF” to “MF” in which the pointer data P (Cu) is located in the input buffer 26. , ”To“ / ”to“ EG ”, it is determined that it is a deletion process for the mixed number (step S16 (Yes)).

そしてまた、前記ポインタデータP(Cu)が割線「/」の位置にあることにより、当該割線の削除指示であると判断される(ステップS17(Yes))。   Further, when the pointer data P (Cu) is at the position of the dividing line “/”, it is determined that it is an instruction to delete the dividing line (step S17 (Yes)).

すると、図4(B)に示すように、前記入力バッファ26に記憶されている帯分数の数式内で、整数値「2」を区切るコード「,」に替えて「+」の演算子コードが挿入されると共に、前記カーソルポインタP(Cu)の位置する割線「/」が削除されることで、前記整数値「2」が単純加算されて繋げられ、分子「3」と分母「4」の数値を上位桁と下位桁として配列した通常の数式「2+34」に変換される。そして、図5(B)に示すように表示部16に表示される(ステップS18)。   Then, as shown in FIG. 4B, in the mixed number mathematical formula stored in the input buffer 26, the operator code “+” is replaced with the code “,” that delimits the integer value “2”. Inserting and deleting the dividing line “/” where the cursor pointer P (Cu) is located results in the integer value “2” being simply added and connected, and the numerator “3” and the denominator “4”. The numerical value is converted into an ordinary mathematical expression “2 + 34” in which upper and lower digits are arranged. And it is displayed on the display part 16 as shown in FIG.5 (B) (step S18).

したがって、前記構成の関数電卓10による数式表示・計算機能によれば、例えば図5(A)で示した帯分数の分数式「2と4分の3」において、その分割線「/」を削除した場合に、整数部「2」、分子部「3」、分母部「4」が単純に繋げられて不自然な数値「234」となることなく、図5(B)で示したように、整数部「2」をそのまま「+」で繋げた自然な数式「2+34」として編集できるようによる。このため、帯分数の分数を解消した場合の整数部と分数部との関係を理解できるようになる。   Therefore, according to the mathematical expression display / calculation function by the scientific calculator 10 having the above-described configuration, for example, the dividing line “/” is deleted in the fractional expression “2 and 3/4” shown in FIG. In this case, the integer part “2”, the numerator part “3”, and the denominator part “4” are not simply connected to become an unnatural numerical value “234”, as shown in FIG. This is because the integer part “2” can be edited as a natural mathematical expression “2 + 34” in which “+” is connected as it is. For this reason, it becomes possible to understand the relationship between the integer part and the fractional part when the fraction of the mixed number is eliminated.

図6は、前記関数電卓10の数式表示・計算処理による「a/b」(分数)キーの取り込み入力処理に伴う入力バッファ26でのキーコードの記憶変化状態を示す図である。   FIG. 6 is a diagram showing a change in the storage state of the key code in the input buffer 26 accompanying the input processing of the “a / b” (fractional) key by the mathematical expression display / calculation processing of the scientific calculator 10.

図7は、前記図6(A)(B)で示した「a/b」(分数)キーの取り込み入力処理に伴う数学的自然表示モード(Math I/O)での数式の編集表示例を示す図である。   FIG. 7 shows an example of editing and displaying mathematical expressions in the mathematical natural display mode (Math I / O) accompanying the input processing of the “a / b” (fraction) key shown in FIGS. FIG.

図6(A)および図7(A)に示すような通常の数式[2+34」が入力表示されている状態で、当該数式を帯分数に変換するべく、「insert」キーを操作入力すると(ステップS2(Yes)、取り込みモードに設定される(ステップS10)。   When an ordinary mathematical expression [2 + 34] as shown in FIG. 6A and FIG. 7A is input and displayed, if the “insert” key is operated and input to convert the mathematical expression into a mixed number (step) In S2 (Yes), the capture mode is set (step S10).

そして、カーソルCuを「3」の位置に合わせて「a/b」(分数)キーを操作入力すると(ステップS3(Yes))、当該分数の取り込みモードに設定されたと判断されると共に(ステップS11(Yes))、入力バッファ26においてポインタデータP(Cu)が位置する数値「3」の直前に「+」の演算子が有ることによって帯分数化が可能であると判断される(ステップS13(Yes))。   When the cursor Cu is set to the position of “3” and the “a / b” (fraction) key is operated and input (step S3 (Yes)), it is determined that the fraction capture mode is set (step S11). (Yes)), the presence of the operator “+” immediately before the numerical value “3” at which the pointer data P (Cu) is located in the input buffer 26 is determined to be able to be divided (step S13 (step S13)). Yes)).

すると、図6(B)に示すように、入力バッファ26において、ポインタデータP(Cu)が位置する数値「3」とその後に続く数値「4」との間に割線「/」が挿入されると共に、同ポインタデータP(Cu)が位置する数値「3」の直前にある「+」の算術記号コードが、整数部「2」を区切るための「,」のコードに書き替えられる。そして、数式先頭に分数式のコード「MF」が入力されて、図7(B)に示すように、帯分数に変換された分数式「2と4分の3」として表示部16に表示される(ステップS14)。   Then, as shown in FIG. 6B, in the input buffer 26, a dividing line “/” is inserted between the numerical value “3” where the pointer data P (Cu) is located and the subsequent numerical value “4”. At the same time, the arithmetic symbol code “+” immediately before the numerical value “3” where the pointer data P (Cu) is located is rewritten to the code “,” for separating the integer part “2”. Then, the code “MF” of the fractional expression is input at the top of the mathematical expression, and is displayed on the display unit 16 as the fractional expression “2 and three-fourths” converted into a mixed number as shown in FIG. 7B. (Step S14).

したがって、前記構成の関数電卓10による数式表示・計算機能によれば、例えば図7(A)で示した通常の数式「2+34」において、カーソルCuを「3」に合わせて分数の取り込み入力を行った場合に、その直前に位置して「+」で繋がっている数値「2」がそのまま放置されることなく、図7(B)で示したように、当該数値「2」を整数部として正しく取り込んだ帯分数の分数式を生成できるようになる。このため、新たに帯分数を入力して生成する必要はなくなる。   Therefore, according to the mathematical expression display / calculation function of the scientific calculator 10 having the above-described configuration, for example, in the normal mathematical expression “2 + 34” shown in FIG. 7A, the cursor Cu is set to “3” and a fraction is input. In this case, the numerical value “2” connected immediately before “+” is not left as it is, and the numerical value “2” is correctly set as an integer part as shown in FIG. 7B. It is now possible to generate fractional expressions for the captured fractions. For this reason, it is not necessary to newly generate a mixed number.

なお、前記実施形態では、例えば図5および図7で示したように、数学的自然表示モード(Math I/O)での分数式の編集表示例について説明したが、次の図8で示すように、電卓的表示モード(Line I/O)であっても前記同様に分数式を編集することができる。   In the above embodiment, for example, as shown in FIGS. 5 and 7, an example of editing and displaying a fractional expression in the mathematical natural display mode (Math I / O) has been described, but as shown in FIG. Even in the calculator display mode (Line I / O), the fractional expression can be edited in the same manner as described above.

図8は、前記関数電卓10の数式表示・計算処理による帯分数式の割線削除に伴う電卓的表示モード(Line I/O)での数式の編集表示例を示す図である。   FIG. 8 is a diagram showing an example of editing and displaying mathematical expressions in the calculator-like display mode (Line I / O) accompanying the dividing line removal of the divided mathematical expressions by the mathematical expression display / calculation processing of the scientific calculator 10.

例えば図8(A)で示した帯分数の分数式「1と3分の2」において、図8(B)に示すように、カーソルCuをその分子[2]と分母[3]との間の分割記号[」]に合わせて「DEL」キーにより削除指示した場合に、その整数部[1]、分子部[2]、分母部[3]が単純に繋げられて不自然な数値「123」となることなく、図8(C)に示すように、整数部[1]をそのまま[+]で繋いだ自然な数式「1+23」として編集できるようになる。   For example, in the fractional expression “1 and 2/3” shown in FIG. 8A, the cursor Cu is placed between its numerator [2] and denominator [3] as shown in FIG. 8B. When the deletion instruction is issued by the “DEL” key in accordance with the division symbol [”], the integer part [1], the numerator part [2], and the denominator part [3] are simply connected and an unnatural numerical value“ 123 ”is obtained. As shown in FIG. 8C, it is possible to edit as a natural mathematical expression “1 + 23” in which the integer part [1] is directly connected by [+].

なお、本願発明は、前記各実施形態に限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で種々に変形することが可能である。さらに、前記各実施形態には種々の段階の発明が含まれており、開示される複数の構成要件における適宜な組み合わせにより種々の発明が抽出され得る。例えば、各実施形態に示される全構成要件から幾つかの構成要件が削除されたり、幾つかの構成要件が異なる形態にして組み合わされても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除されたり組み合わされた構成が発明として抽出され得るものである。   Note that the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the scope of the invention at the stage of implementation. Further, each of the embodiments includes inventions at various stages, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent elements are deleted from all the constituent elements shown in each embodiment or some constituent elements are combined in different forms, the problems described in the column of the problem to be solved by the invention If the effects described in the column “Effects of the Invention” can be obtained, a configuration in which these constituent requirements are deleted or combined can be extracted as an invention.

本発明の分数表示装置の実施形態に係る電子式計算機(関数電卓)10の外観構成を示す正面図。1 is a front view showing an external configuration of an electronic calculator (functional calculator) 10 according to an embodiment of a fraction display device of the present invention. 前記関数電卓10の電子回路の構成を示すブロック図。FIG. 2 is a block diagram showing a configuration of an electronic circuit of the scientific calculator 10. 前記関数電卓10による数式表示・計算処理を示すフローチャート。7 is a flowchart showing mathematical expression display / calculation processing by the scientific calculator 10; 前記関数電卓10の数式表示・計算処理による帯分数式の割線削除に伴う入力バッファ26でのキーコードの記憶変化状態を示す図。The figure which shows the memory | storage change state of the key code in the input buffer 26 accompanying the dividing line deletion of the division | segmentation formula by the numerical formula display of the said scientific calculator 10, and calculation processing. 前記図4(A)(B)で示した帯分数式の割線削除に伴う数学的自然表示モード(Math I/O)での数式の編集表示例を示す図。The figure which shows the example of an edit display of the numerical formula in the mathematical natural display mode (Math I / O) accompanying the dividing line deletion of the division | segmentation formula shown to the said FIG. 4 (A) (B). 前記関数電卓10の数式表示・計算処理による「a/b」(分数)キーの取り込み入力処理に伴う入力バッファ26でのキーコードの記憶変化状態を示す図。The figure which shows the memory | storage change state of the key code in the input buffer 26 accompanying the acquisition input process of the "a / b" (fraction) key by the numerical formula display and calculation process of the scientific calculator 10. 前記図6(A)(B)で示した「a/b」(分数)キーの取り込み入力処理に伴う数学的自然表示モード(Math I/O)での数式の編集表示例を示す図。FIG. 7 is a diagram showing an example of editing and displaying mathematical expressions in a mathematical natural display mode (Math I / O) accompanying the input processing of “a / b” (fraction) key shown in FIGS. 6A and 6B. 前記関数電卓10の数式表示・計算処理による帯分数式の割線削除に伴う電卓的表示モード(Line I/O)での数式の編集表示例を示す図。The figure which shows the example of an edit display of the numerical formula in the calculator-like display mode (Line I / O) accompanying the dividing line deletion of the divisional mathematical formula by the mathematical formula display / calculation processing of the scientific calculator 10.

符号の説明Explanation of symbols

10 …関数電卓
11 …キー入力部
12 …数値・演算記号キー群
13 …関数機能キー群
14 …モード設定キー群
15 …カーソルキー
16 …表示部
21 …CPU
22 …記憶装置
23 …RAM
24 …表示データメモリ
25 …カーソルポインタメモリ
26 …入力バッファ
Cu …カーソル
P …ポインタデータ
DESCRIPTION OF SYMBOLS 10 ... Scientific calculator 11 ... Key input part 12 ... Numerical value / arithmetic symbol key group 13 ... Function function key group 14 ... Mode setting key group 15 ... Cursor key 16 ... Display part 21 ... CPU
22 ... Storage device 23 ... RAM
24 ... Display data memory 25 ... Cursor pointer memory 26 ... Input buffer Cu ... Cursor P ... Pointer data

Claims (3)

ユーザ操作に応じて、帯分数を含む数式を入力する数式入力手段と、
この数式入力手段により入力された数式を表示する数式表示手段と、
この数式表示手段により表示された帯分数の割線を、ユーザ操作に応じて削除する割線削除手段と、
この割線削除手段により前記帯分数の割線が削除された場合に、当該帯分数の整数部とその後にある割線が削除された分数の数値部との間に「+」の算術記号を挿入する数式編集手段と、
を備えたことを特徴とする分数表示装置。
Formula input means for inputting a formula including a mixed number in response to a user operation;
Formula display means for displaying the formula input by the formula input means,
A secant deleting unit that deletes the dividing line of the mixed number displayed by the formula display unit in response to a user operation;
When the dividing line of the mixed number is deleted by the dividing line deleting means, a mathematical expression that inserts an arithmetic symbol of “+” between the integer part of the mixed number and the numerical value part of the fraction from which the dividing line thereafter is deleted Editing means,
A fraction display device characterized by comprising:
ユーザ操作に応じて、「+」の算術記号を含む数式を入力する数式入力手段と、
この数式入力手段により入力された数式を表示する数式表示手段と、
この数式表示手段により表示された数式について、ユーザ操作に応じて帯分数の取り込みを指示する取り込み指示手段と、
この取り込み指示手段により帯分数の取り込みが指示された場合に、前記数式に含まれる「+」の前の数値を整数部とし、後の数値を分数部とした帯分数に変換する帯分数化手段と、
を備えたことを特徴とする分数表示装置。
Formula input means for inputting a formula including an arithmetic symbol “+” in response to a user operation;
Formula display means for displaying the formula input by the formula input means,
With respect to the mathematical formula displayed by the mathematical formula display means, a capture instruction means for instructing capture of a mixed number according to a user operation;
In the case where the acquisition of the mixed number is instructed by the capturing instruction means, the mixed number converting means for converting the numerical value before “+” included in the mathematical expression into an integer part and converting the subsequent numerical value into a fractional part. When,
A fraction display device characterized by comprising:
前記数式表示手段により表示された数式の任意の位置をユーザ操作に応じて指定する数式位置指定手段を備え、
前記帯分数化手段は、前記数式位置指定手段により前記数式に含まれる「+」の後の数値が指定された状態で、前記取り込み指示手段により帯分数の取り込みが指示された場合に、前記「+」の前の数値を整数部とし、当該「+」の後で前記数式位置指定手段により指定された数値までを分子部、その後に続く数値を分母部とした帯分数に変換する、
ことを特徴とする請求項2に記載の分数表示装置。
Formula position designation means for designating an arbitrary position of the formula displayed by the formula display means according to a user operation,
In the state where the numerical value after the “+” included in the mathematical expression is designated by the mathematical expression position designating means, and the capture instruction means instructs to capture the mixed number, The numerical value before “+” is an integer part, and after “+”, the numerical value specified by the mathematical expression position specifying means is converted to a mixed number with a numerator part and a subsequent numerical value as a denominator part.
The fraction display device according to claim 2.
JP2008291255A 2008-11-13 2008-11-13 Fraction display device Active JP5304191B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008291255A JP5304191B2 (en) 2008-11-13 2008-11-13 Fraction display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008291255A JP5304191B2 (en) 2008-11-13 2008-11-13 Fraction display device

Publications (2)

Publication Number Publication Date
JP2010117930A JP2010117930A (en) 2010-05-27
JP5304191B2 true JP5304191B2 (en) 2013-10-02

Family

ID=42305563

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008291255A Active JP5304191B2 (en) 2008-11-13 2008-11-13 Fraction display device

Country Status (1)

Country Link
JP (1) JP5304191B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536935B (en) * 2014-12-27 2018-04-27 小米科技有限责任公司 Calculate display methods, calculate edit methods and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3557645B2 (en) * 1994-05-16 2004-08-25 カシオ計算機株式会社 Electronic computer
JPH1049502A (en) * 1996-07-30 1998-02-20 Casio Comput Co Ltd Checking device
JP3705065B2 (en) * 1999-02-05 2005-10-12 日本電気株式会社 Formula processing system, formula processing method, and recording medium recording formula processing program
JP4462181B2 (en) * 2005-12-22 2010-05-12 カシオ計算機株式会社 Fraction display device and fraction display program

Also Published As

Publication number Publication date
JP2010117930A (en) 2010-05-27

Similar Documents

Publication Publication Date Title
JP2007264741A (en) Mathematical expression display controller and mathematical expression display control program
JP4525771B2 (en) Electronic calculator
CN109445675B (en) Electronic device, mathematical expression display control method, and recording medium
JP5304191B2 (en) Fraction display device
JP5482000B2 (en) Formula input device and program
JP5211851B2 (en) Electronic calculator
JP5446312B2 (en) Electronic calculator and program
JP2738594B2 (en) Electronic computer
JP2707962B2 (en) Operation line visualization device
JP2010072940A (en) Electronic computer
JP5017679B2 (en) Formula calculator and control program therefor
JP3696906B2 (en) Data input method and apparatus
JPS6375964A (en) Table preparing system
JP2009140377A (en) Matrix calculator and program
JP5505531B2 (en) Electronic calculator
JP5028644B2 (en) Electronic computer and computer control program
JP2002278811A (en) Field editing device and method, and field editing program
JPS6312062A (en) Kana-kanji converting device
JPH03224057A (en) Information processor
JPS6069770A (en) Data processor
JPS5960636A (en) System for designing data entry picture
JPH0764924A (en) Electronic equipment
JPH03228174A (en) Character processor
JPS62182839A (en) Document processor
JPS6165327A (en) Input and output operating device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20111104

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130522

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130610

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5304191

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150