Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4126497B2 - Electronic calculation apparatus and calculation display processing program - Google Patents
[go: Go Back, main page]

JP4126497B2 - Electronic calculation apparatus and calculation display processing program - Google Patents

Electronic calculation apparatus and calculation display processing program Download PDF

Info

Publication number
JP4126497B2
JP4126497B2 JP2004158019A JP2004158019A JP4126497B2 JP 4126497 B2 JP4126497 B2 JP 4126497B2 JP 2004158019 A JP2004158019 A JP 2004158019A JP 2004158019 A JP2004158019 A JP 2004158019A JP 4126497 B2 JP4126497 B2 JP 4126497B2
Authority
JP
Japan
Prior art keywords
expression
converted
calculation
digits
calculation result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2004158019A
Other languages
Japanese (ja)
Other versions
JP2005339263A (en
JP2005339263A5 (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 JP2004158019A priority Critical patent/JP4126497B2/en
Publication of JP2005339263A publication Critical patent/JP2005339263A/en
Publication of JP2005339263A5 publication Critical patent/JP2005339263A5/ja
Application granted granted Critical
Publication of JP4126497B2 publication Critical patent/JP4126497B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Calculators And Similar Devices (AREA)

Description

本発明は、例えば任意の演算式に応じた演算結果を数式の形態に変換して表示するための電子計算装置および計算表示処理プログラムに関する。   The present invention relates to an electronic calculation device and a calculation display processing program for converting an arithmetic result according to an arbitrary arithmetic expression into a mathematical expression and displaying the result.

従来から一般に汎用されている関数電卓等と呼ばれる電子計算装置では、通常の四則計算の他に、三角関数や逆三角関数、無理数、べき関数、2乗根、3乗根等、様々な種類の計算が行なえるようになっている。   In electronic calculators called scientific calculators that have been widely used in general, in addition to the usual four arithmetic calculations, there are various types such as trigonometric functions, inverse trigonometric functions, irrational numbers, power functions, square roots, square roots, etc. Can be calculated.

このような従来の電子計算装置にあって、例えば「sin-10.5」の逆三角関数の式を入力して計算を実行すると、その解は「0.523598…」と全て小数値からなる実数で表示される。 In such a conventional electronic computing device, for example, when an inverse trigonometric function expression of “sin −1 0.5” is input and the calculation is executed, the solution is “0.523598. Is displayed as a real number.

また、例えば「cos(6/π)」の三角関数の式を入力して計算を実行すると、その解は「0.8660254…」と全て小数値からなる実数で表示される。   For example, when a calculation is performed by inputting an expression of a trigonometric function of “cos (6 / π)”, the solution is displayed as a real number consisting of all decimal values such as “0.8660254.

さらに、例えば「2/(√5+√3)」の無理数を含む式を入力して計算を実行すると、その解は「0.5040171…」と全て小数値からなる実数で表示される。   Further, for example, when an expression including an irrational number of “2 / (√5 + √3)” is input and the calculation is executed, the solution is displayed as a real number consisting of all decimal numbers, such as “0.5040171 ...”.

このように、従来の電子計算装置では、計算対象として入力される計算式が、三角関数や逆三角関数、無理数等、どのような種類の計算式であっても、その解は整数値や小数値からなる実数として表示されるようになっている。   As described above, in the conventional electronic calculation device, the calculation formula input as a calculation target is an integer value or a solution regardless of any type of calculation formula such as a trigonometric function, an inverse trigonometric function, or an irrational number. It is displayed as a real number consisting of decimal values.

しかし、大学や高校等の教育現場における数学の学習過程では、例えば前記逆三角関数である「sin-10.5」の解は、その計算種類に適したπと分数を組み合わせた形式のπ分数「π/6」として習得され、また、例えば前記三角関数である「cos(6/π)」の解は、その計算種類に適したルートと分数を組み合わせた√分数「√(3/2)」として習得され、さらに、例えば前記無理数を含む式である「2/(√5+√3)」の解は、その計算種類に適したルートの加減式「√5−√3」として習得されるので、特に、この種の計算を要する教育現場や研究機関にあっては、前記従来の電子計算装置のように、どの様な種類の計算式に対してもその解が整数や小数の実数形式で表示されてしまうと、該解が結果として同じ値であっても、解の見通しが非常につけにくい。 However, in the learning process of mathematics in universities and high schools, for example, the inverse trigonometric function “sin −1 0.5” has a solution of π and a fraction combined with a fraction suitable for the calculation type. For example, the solution of “cos (6 / π)”, which is the trigonometric function, is obtained as a fraction “π / 6”, and a solution of a root and a fraction suitable for the calculation type is a √fraction “√ (3/2”). ) ”, And for example, the solution of“ 2 / (√5 + √3) ”, which is an expression including the irrational number, is learned as a route addition / subtraction formula“ √5-√3 ”suitable for the calculation type. Therefore, especially in educational sites and research institutions that require this kind of calculation, the solution can be an integer or a decimal for any type of calculation formula, as in the case of the conventional electronic computer. If displayed in real format, the result is the same value , Prospects of solution is very attached difficult.

そこで、整数や小数の実数形式からなる数値を、特定の数式の形態に変換して表示する装置が同出願人により出願されている。   In view of this, an application has been filed by the same applicant for a device that converts a numerical value in the form of an integer or a decimal number into a specific mathematical expression and displays it.

1つ目は、小数を分数(有理数)に変換して表示する電子計算装置である(特許文献1参照。)。   The first is an electronic computing device that displays decimal numbers converted to fractions (rational numbers) (see Patent Document 1).

2つ目は、三角関数やべき関数などの解をπ分数に変換して表示する計算装置である(特許文献2参照。)。   The second is a calculation device that converts a trigonometric function, a power function, or the like into a π fraction and displays it (see Patent Document 2).

3つ目は、小数以下の値(小数部)を有する実数を、平方根の和または差の計算式に変換して表示する平方根記号表示制御装置である(特許文献3参照。)。   The third is a square root symbol display control device that converts and displays a real number having a value less than a decimal (decimal part) into a formula for calculating the sum or difference of square roots (see Patent Document 3).

4つ目は、小数部を持つ実数を平方根記号(√)を含む多項式に変換して表示する平方根記号表示制御装置である(特許文献4参照。)。
特開平11−282807号公報 特開2000−057100号公報 特開2003−030159号公報 特開2003−203057号公報
The fourth is a square root symbol display control device that converts a real number having a decimal part into a polynomial including a square root symbol (√) and displays it (see Patent Document 4).
Japanese Patent Laid-Open No. 11-282807 JP 2000-057100 A JP 2003-030159 A JP 2003-203057 A

しかしながら、前記同一出願人により出願された従来の電子計算装置や平方根記号表示制御装置では、そのそれぞれの装置において当該装置特定の種類の数式に変換した形態での表示ができるものの、例えばある演算結果については分数(有理数)に変換して表示したり、またある演算結果についてはπ分数に変換して表示したりするなど、任意の演算結果により得られた実数値に応じて最適な種類の数式形態に変換して表示することはできない問題がある。   However, in the conventional electronic computing device and the square root symbol display control device filed by the same applicant, the respective devices can display in a form converted into the specific formula of the device, for example, certain calculation results Is converted to a fraction (rational number) and displayed, or a certain calculation result is converted to π fraction and displayed. There is a problem that cannot be converted into a form and displayed.

そこで、前記従来の電子計算装置や平方根記号表示制御装置の技術を組み合わせることで、演算結果の実数値を適宜最適な種類の数式形態に変換して表示するように構成することが考えられるものの、個々の装置の数値変換処理では該装置特定の種類の数式について表示可能な桁数範囲で最大限精密な計算処理を行って変換表示するため、これらを単に組み合わせた装置では、より高性能で高価な演算処理ユニット(CPU)が必要になるばかりでなく、例えば中学生や高校生レベルの教育現場では、変換された数式内の桁数が多く精密過ぎることがあり、逆に解の見通しがつけにくい問題が生じる。   Therefore, by combining the techniques of the conventional electronic computing device and the square root symbol display control device, it can be considered that the real value of the calculation result is appropriately converted into an optimal type of mathematical form and displayed. In the numerical conversion processing of individual devices, conversion is displayed by performing the most precise calculation processing within the range of digits that can be displayed for a specific type of mathematical formula of the device. In addition to the need for a large processing unit (CPU), for example, in junior high school and high school level education sites, the number of digits in the converted mathematical formula may be too precise, and conversely it is difficult to find a solution prospect Occurs.

本発明は、前記のような問題に鑑みなされたもので、例えば中高生レベルの教育現場にあっても、演算結果に応じて最適な種類の数式に変換した見通しのよい解を表示することが可能になる電子計算装置および計算表示処理プログラムを提供することを目的とする。   The present invention has been made in view of the above problems. For example, even in a junior and senior high school level education site, it is possible to display a good-looking solution converted into an optimal type of mathematical expression according to the calculation result. An object of the present invention is to provide an electronic calculation apparatus and a calculation display processing program.

請求項1に係る電子計算装置は、演算式を入力する式入力手段と、この式入力手段により入力された演算式に従い演算処理する演算手段と、この演算手段による演算結果の数値データを分数式に変換する分数式変換手段と、この分数式変換手段により変換された分数式が所定の桁数に収まるか否かを判断する桁数判断手段と、この桁数判断手段により前記変換された分数式が所定の桁数に収まると判断された場合には、当該変換された分数式の表示形態で前記演算式の演算結果を表示させる表示制御手段と、前記桁数判断手段により前記変換された分数式が所定の桁数に収まらないと判断された場合には、前記演算手段による演算結果の数値データを√を含む数式またはπを含む分数式に変換して表示させる別形式表示制御手段と、を備えたことを特徴とする。 An electronic computing device according to claim 1 is an expression input means for inputting an arithmetic expression, an arithmetic means for performing arithmetic processing according to the arithmetic expression input by the expression input means, and numerical data obtained as a result of the arithmetic operation by the arithmetic means. A fractional expression converting means for converting to a number, a digit number determining means for determining whether or not the fractional expression converted by the fractional expression converting means falls within a predetermined number of digits, and the fraction converted by the digit number determining means When it is determined that the mathematical expression falls within a predetermined number of digits, display control means for displaying the calculation result of the arithmetic expression in the display form of the converted fractional expression, and the conversion by the digit number determination means When it is determined that the fractional expression does not fit in a predetermined number of digits, another format display control means for converting and displaying the numerical data of the computation result by the computation means into a mathematical expression including √ or a fractional expression including π, and With And wherein the door.

請求項に係る電子計算装置は、請求項1に記載の電子計算装置であって、前記別形式表示制御手段は、前記演算手段による演算結果の数値データをπで割り、25200を掛けた値が整数になるか判断する判断手段と、この判断手段が整数になると判断した場合に、(整数/25200)πをπを含む分数式の演算結果として表示させる表示制御手段と、を備えたことを特徴とする。 The electronic computing device according to claim 2 is the electronic computing device according to claim 1, wherein the different format display control means divides the numerical data of the result of computation by the computing means by π and multiplies by 25200. And a display control means for displaying (integer / 25200) π as a calculation result of a fractional expression including π when it is determined that the determination means is an integer. It is characterized by.

これによれば、任意の演算式を入力したことによる演算結果を、単なる実数値の羅列ではなく、例えば中高生レベルの教育現場にあって各パラメータを見通しのよい桁数範囲内に抑えた(a/b)πの数式の表示形態または別の数式表示形態として表示できることになる。   According to this, the calculation result obtained by inputting an arbitrary arithmetic expression is not simply a list of real values, but for example, in an educational field at a junior and senior high school level, each parameter is suppressed within a range of digits with good visibility (a / B) It can be displayed as a display form of the mathematical expression of π or another mathematical expression display form.

本発明の請求項1(請求項)に係る電子計算装置(計算表示処理プログラム)によれば、任意の演算式を入力したことによる演算結果を、単なる実数値の羅列ではなく、例えば中高生レベルの教育現場にあって見通しのよい桁数の分数式の表示形態あるいは√を含む数式またはπを含む分数式の数式表示形態として表示できるようになる。 According to the electronic computing device according to claim 1 (claim 3) of the present invention (calculated display processing program), the calculation result due to the enter any arithmetic expression, rather than the enumeration of mere real value, for example, teenagers level Can be displayed as a display form of a fractional expression with a good number of digits, a mathematical expression including √, or a numerical expression display form of a fractional expression including π .

よって、例えば中高生レベルの教育現場にあっても、演算結果に応じて最適な種類の数式に変換した見通しのよい解を表示することが可能になる電子計算装置および計算表示処理プログラムを提供できる。   Therefore, for example, even in a junior and senior high school level education site, it is possible to provide an electronic calculation device and a calculation display processing program that can display a solution with a good prospect converted into an optimal type of mathematical expression according to the calculation result.

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

図1は、本発明の実施形態に係わる電子計算装置の電子回路の構成を示すブロック図である。   FIG. 1 is a block diagram showing a configuration of an electronic circuit of an electronic computing device according to an embodiment of the present invention.

この電子計算装置は、コンピュータ等からなる制御部(CPU)11を備えている。   This electronic computing device includes a control unit (CPU) 11 formed of a computer or the like.

制御部(CPU)11は、キー入力部12によるキー操作信号に応じて、ROM13に予め記憶されている計算装置制御用プログラム、あるいは外部記録媒体18から記録媒体読み取り部17を介して読み取られる計算装置制御用プログラム、あるいは通信ネットワーク(インターネット)上のWebサーバ(この場合はプログラムサーバ)20から通信部19を介してダウンロードされる計算装置制御用プログラムを起動させ、RAM14をワーク(作業用)メモリとして回路各部の動作の制御を行なうものである。   The control unit (CPU) 11 is a calculation device control program stored in advance in the ROM 13 or a calculation read from the external recording medium 18 via the recording medium reading unit 17 in accordance with a key operation signal from the key input unit 12. A device control program or a computer device control program downloaded from a Web server (in this case, a program server) 20 on a communication network (Internet) via a communication unit 19 is started, and the RAM 14 is set as a work (work) memory. The operation of each part of the circuit is controlled as follows.

この制御部(CPU)11には、前記キー入力部12、ROM13、記録媒体読み取り部17、通信部19、RAM14が接続されると共に、表示駆動回路15を介して液晶表示部16が接続される。   The control unit (CPU) 11 is connected to the key input unit 12, ROM 13, recording medium reading unit 17, communication unit 19, and RAM 14, and a liquid crystal display unit 16 through a display drive circuit 15. .

キー入力部12には、数値キー,演算子キー,関数キー等の各種の数値・記号キー群からなるデータ入力キー12aが備えられると共に、選択あるいは入力されたデータの設定や計算の実行を指示する際に操作される「実行」キー12b、ユーザ任意の演算式を入力して表示させる状態に設定するための「演算入力」キー12c、[DEG]モードや[RAD]モードなどの演算モードを切り換える際に操作される「モード」キー12d、表示画面上でのカーソルの移動やデータ選択等を行なう際に操作されるカーソルキー「↑」「↓」「←」「→」12e等が備えられる。   The key input unit 12 is provided with a data input key 12a composed of various numerical / symbol key groups such as a numerical key, an operator key, and a function key, and instructs setting of selected or input data and execution of calculation. “Execution” key 12b that is operated at the time of operation, “arithmetic input” key 12c for inputting and displaying an arbitrary arithmetic expression, and arithmetic modes such as [DEG] mode and [RAD] mode. “Mode” key 12d operated when switching, cursor keys “↑”, “↓”, “←”, “→” 12e, etc. operated when moving the cursor on the display screen, selecting data, and the like are provided. .

ROM13には、本電子計算装置の電子回路における全体の処理を司るシステムプログラムデータが予め記憶されると共に、図3乃至図6に示す演算表示制御処理等、各種の動作モードの処理を司るサブプログラムデータである制御プログラムデータも予め記憶される。   The ROM 13 stores in advance system program data that controls the entire processing in the electronic circuit of the electronic computing device, and subprograms that control processing in various operation modes such as the calculation display control processing shown in FIGS. Control program data, which is data, is also stored in advance.

図2は、前記電子計算装置のRAM14に備えられるデータメモリの構成を示す図である。   FIG. 2 is a diagram showing a configuration of a data memory provided in the RAM 14 of the electronic computing device.

RAM14には、表示データメモリ14a、入力データメモリ14b、演算結果データメモリ14c、符号待避メモリ14d、整数部待避メモリ14e、第1変換データ[(a/b)]メモリ14f、第2変換データ[(a+b√c)/d]メモリ14g、第3変換データ[(a√b±c√d)/e]メモリ14h、第4変換データ[(a/b)π]メモリ14i、変数aメモリ14j〜変数eメモリ14n、及びワークメモリ14o等の各種のデータメモリが備えられる。   The RAM 14 includes a display data memory 14a, an input data memory 14b, an operation result data memory 14c, a code saving memory 14d, an integer part saving memory 14e, a first conversion data [(a / b)] memory 14f, and a second conversion data [ (A + b√c) / d] memory 14g, third conversion data [(a√b ± c√d) / e] memory 14h, fourth conversion data [(a / b) π] memory 14i, variable a memory 14j Various data memories such as a variable e memory 14n and a work memory 14o are provided.

表示データメモリ14aには、前記各種の動作モードにおいて液晶表示部16に表示すべき表示データがビットマップのパターンデータとして展開されて記憶される。   In the display data memory 14a, display data to be displayed on the liquid crystal display unit 16 in the various operation modes is developed and stored as bitmap pattern data.

入力データメモリ14bには、キー入力部12の操作により入力された計算式等の入力データが記憶される。   The input data memory 14b stores input data such as a calculation formula input by operating the key input unit 12.

演算結果データメモリ14cには、前記入力データメモリ14bに記憶された演算式に応じた計算結果の解が整数あるいは小数の実数値のまま記憶される。   In the calculation result data memory 14c, the solution of the calculation result corresponding to the calculation expression stored in the input data memory 14b is stored as an integer or decimal real value.

符号退避メモリ14dには、前記演算結果データメモリ14cに記憶された演算式の計算結果から抽出退避された符号のデータが記憶される。   The code saving memory 14d stores code data extracted and saved from the calculation result of the arithmetic expression stored in the calculation result data memory 14c.

整数部待避メモリ14eには、前記演算結果データメモリ14cに記憶された演算式の計算結果から抽出退避された整数部のデータが記憶される。   The integer part saving memory 14e stores the integer part data extracted and saved from the calculation result of the arithmetic expression stored in the arithmetic result data memory 14c.

第1変換データ[(a/b)]メモリ14f乃至第4変換データ[(a/b)π]メモリ14iには、前記演算結果データメモリ14cに記憶された演算式の計算結果の解が、当該解の値に応じて最適な種類の数式に変換されて記憶される。   In the first conversion data [(a / b)] memory 14f to the fourth conversion data [(a / b) π] memory 14i, solutions of the calculation results of the arithmetic expressions stored in the calculation result data memory 14c are stored. Depending on the value of the solution, it is converted into an optimal type of mathematical expression and stored.

第1変換データ[(a/b)]メモリ14fには、前記演算結果データメモリ14cに記憶された演算式の計算結果の解が(a/b)の分数式に変換されて記憶される。   In the first conversion data [(a / b)] memory 14f, the solution of the calculation result of the arithmetic expression stored in the arithmetic result data memory 14c is converted into a fractional expression (a / b) and stored.

第2変換データ[(a+b√c)/d]メモリ14gには、前記演算結果データメモリ14cに記憶された演算式の計算結果の解が(a+b√c)/dの平方根記号(√)を含む多項式に変換されて記憶される。   In the second conversion data [(a + b√c) / d] memory 14g, the solution of the calculation result of the arithmetic expression stored in the calculation result data memory 14c is the square root symbol (√) of (a + b√c) / d. It is converted into a polynomial including it and stored.

第3変換データ[(a√b±c√d)/e]メモリ14hには、前記演算結果データメモリ14cに記憶された演算式の計算結果の解が(a√b+c√d)/eの平方根の和または差の計算式に変換されて記憶される。   In the third conversion data [(a√b ± c√d) / e] memory 14h, the solution of the calculation result of the arithmetic expression stored in the calculation result data memory 14c is (a√b + c√d) / e. It is converted into a formula for calculating the sum or difference of square roots and stored.

第4変換データ[(a/b)π]メモリ14iには、前記演算結果データメモリ14cに記憶された演算式の計算結果の解が(a/b)πのπ分数式に変換されて記憶される。   In the fourth conversion data [(a / b) π] memory 14i, the solution of the calculation result of the arithmetic expression stored in the arithmetic result data memory 14c is converted into a π-partial expression of (a / b) π and stored. Is done.

変数aメモリ14j〜変数eメモリ14nには、前記計算結果の解の数値から各種形態の数式に変換する際に、その数式の種類に応じて使用される各変数値(a,b,c,d,e)にそれぞれ代入する代入値が更新されながら記憶される。   In the variable a memory 14j to the variable e memory 14n, when the numerical value of the solution of the calculation result is converted into various types of mathematical expressions, each variable value (a, b, c, Substitution values to be assigned to d and e) are updated and stored.

ワークメモリ14oには、各種の計算・制御処理に伴ない制御部(CPU)11により入出力される種々のデータが必要に応じて一時的に記憶される。   In the work memory 14o, various data input / output by the control unit (CPU) 11 accompanying various calculation / control processes are temporarily stored as necessary.

次に、前記構成の電子計算装置による演算表示制御機能について説明する。   Next, the calculation display control function by the electronic computer having the above-described configuration will be described.

図3は、前記電子計算装置の演算表示制御処理(その1)を示すフローチャートである。   FIG. 3 is a flowchart showing the calculation display control process (part 1) of the electronic computer.

図4は、前記電子計算装置の演算表示制御処理(その2)を示すフローチャートである。   FIG. 4 is a flowchart showing the calculation display control process (part 2) of the electronic computer.

図5は、前記電子計算装置の演算表示制御処理(その3)を示すフローチャートである。   FIG. 5 is a flowchart showing a calculation display control process (No. 3) of the electronic computer.

図6は、前記電子計算装置の演算表示制御処理(その4)を示すフローチャートである。   FIG. 6 is a flowchart showing the calculation display control process (No. 4) of the electronic computer.

図7は、前記電子計算装置の演算表示制御処理に伴う演算式の入力およびその答えの表示状態を示す図である。   FIG. 7 is a diagram showing the input of an arithmetic expression accompanying the arithmetic display control processing of the electronic computer and the display state of the answer.

キー入力部12の「演算入力」キー12cの操作に応じて、任意の演算式を入力して表示可能な状態で、データ入力キー12aを用いたユーザ操作に応じて任意の演算式が入力されて入力データメモリ14bに記憶されると、この入力された演算式のデータは表示データメモリ14aに書き込まれて表示部16に表示される(ステップS1)。   In accordance with the operation of the “calculation input” key 12c of the key input unit 12, an arbitrary arithmetic expression is input in response to a user operation using the data input key 12a in a state where an arbitrary arithmetic expression can be input and displayed. When the data is stored in the input data memory 14b, the input data of the arithmetic expression is written in the display data memory 14a and displayed on the display unit 16 (step S1).

そして、「実行」キー12bが操作されると、前記入力データメモリ14bに記憶された演算式に従った計算処理が実行され(ステップS2)、その計算結果の解の実数形式の数値データが演算結果データメモリ14cに記憶されると共に、当該解の実数値はこれに対応した最適な種類の数式に変換するための被変換数値として設定される(ステップS3)。   When the “execute” key 12b is operated, calculation processing is executed according to the arithmetic expression stored in the input data memory 14b (step S2), and the numerical data in the real number format of the solution of the calculation result is calculated. While being stored in the result data memory 14c, the real value of the solution is set as a converted value for conversion into an optimal type of mathematical formula corresponding to this (step S3).

すると、まず前記被変換数値として設定された計算結果の数値データ(絶対値)が一定の大きさの数値範囲内にあるか否か判断される(ステップS4)。ここで、一定の大きさの数値範囲内にない、つまり被変換数値の数値データが大き過ぎて分数や無理数、π分数などの数式への変換に適さないと判断された場合には(ステップS4(No))、対応数式への変換処理を行うことなく計算結果の数値データはその実数形式の数値データのまま答えとして表示部16に表示される(END)。   Then, it is first determined whether or not the numerical data (absolute value) of the calculation result set as the converted numerical value is within a certain numerical range (step S4). If it is determined that the numerical value is not within a certain numerical range, that is, the numerical data of the converted numerical value is too large and is not suitable for conversion to a mathematical expression such as a fraction, irrational number, or π fraction (step) S4 (No)), the numerical data of the calculation result is displayed on the display unit 16 as an answer in the form of the numerical data in the real number format without performing the conversion processing to the corresponding mathematical expression (END).

一方、前記被変換数値として設定された計算結果の数値データ(絶対値)が一定の大きさの数値範囲内にあると判断された場合には(ステップS4(Yes))、当該被変換数値の変換準備のため、その数値データに付されたマイナス符号“−”が(ある場合は)退避され符号退避メモリ14dに記憶保持されて“正”の数値とされる(ステップS5)。   On the other hand, when it is determined that the numerical data (absolute value) of the calculation result set as the converted numerical value is within a certain numerical value range (step S4 (Yes)), the converted numerical value In preparation for conversion, the minus sign “−” attached to the numerical data is saved (if any) and stored in the code saving memory 14d to be a “positive” value (step S5).

すると、前記被変換数値は整数であるか否か判断され(ステップS6)、整数であると判断された場合には、分数や無理数、π分数などの数式への変換は必要ないので、当該整数である被変換数値はそのまま答えとされ(ステップS6→S7)、前記符号退避メモリ14dに退避保持されたマイナス符号“−”が(ある場合は)付されて表示部16に表示される(ステップS55)。   Then, it is determined whether or not the converted numerical value is an integer (step S6). If it is determined that the converted numerical value is an integer, conversion to a mathematical expression such as a fraction, an irrational number, or a π fraction is not necessary. The converted numerical value, which is an integer, is used as an answer as it is (steps S6 → S7), and the minus sign “−” saved (stored) in the sign saving memory 14d is added (if any) and displayed on the display unit 16 ( Step S55).

一方、前記被変換数値は整数ではなく、小数をも含む実数であると判断された場合には(ステップS6(No))、当該被変換数値の整数部が(ある場合は)退避されて整数部退避メモリ14eに記憶保持され、小数部のみの値とされる(ステップS8)。   On the other hand, when it is determined that the converted numeric value is not an integer but a real number including a decimal number (step S6 (No)), the integer part of the converted numeric value is saved (if any) and is an integer. The value is stored and held in the copy saving memory 14e, and only the decimal part is set (step S8).

すると、この小数部のみの値とされた被変換数値データは分数値(a/b)に変換されて第1変換データメモリ14fに記憶される(ステップS9)。   Then, the converted numeric data having only the decimal part is converted into a fractional value (a / b) and stored in the first converted data memory 14f (step S9).

ここで、[小数→分数]変換処理には、様々な手法による変換処理が存在するが、この実施形態の小数→分数変換処理では、与えられた小数の循環の数値や桁数を要することなく、あらゆる小数を容易に分数に変換することが可能な手法(特願平10−81023号)に従い分数に変換される。   Here, the conversion processing by various methods exists in the [decimal → fraction] conversion processing, but the decimal → fraction conversion processing of this embodiment does not require a given number of decimal numbers or digits. Any decimal number is converted into a fraction according to a technique (Japanese Patent Application No. 10-81023) that can be easily converted into a fraction.

すなわち、この特願平10−81023号で開示される分数変換処理では、最小既約分数[o/p=0/1],最大既約分数[q/r=1/1]の各分子同士,分母同士をそれぞれ加算した中既約分数[(o+q)/(p+r)=1/2]が、被変換数値の小数[y]より大きい場合はこれを次の大既約分数[q/r=1/2]として前記そのままの小既約分数[o/p=0/1]との間でさらに同様の中既約分数の算出及び小数[y]との大小判定処理を繰り返し、また、前記中既約分数が、小数[y]より小さい場合はこれを次の小既約分数[o/p=1/2]として前記そのままの大既約分数[q/r=1/1]との間でさらに同様の中既約分数の算出及び小数[y]との大小判定処理を繰り返し、小数[y]を含む小既約分数[o/p]と大既約分数[q/r]との区間を次第に狭める。そして、順次算出される小既約分数[o/p]又は大既約分数[q/r]が、小数[y]と一致したと判定された場合にその判定分数が変換分数[a/b]として決定されるものである。   That is, in the fraction conversion process disclosed in this Japanese Patent Application No. 10-81023, each numerator of the minimum irreducible fraction [o / p = 0/1] and the maximum irreducible fraction [q / r = 1/1] , If the middle irreducible fraction [(o + q) / (p + r) = 1/2] obtained by adding the denominators to each other is larger than the decimal number [y] of the converted value, this is replaced with the next larger irreducible fraction [q / r. = 1/2], the same calculation of the medium irreducible fraction and the size determination process with the decimal [y] are repeated with the same small irreducible fraction [o / p = 0/1], and When the medium irreducible fraction is smaller than the decimal [y], this is regarded as the next small irreducible fraction [o / p = 1/2] and the same large irreducible fraction [q / r = 1/1]. The calculation of the medium irreducible fraction and the size determination process with the decimal [y] are repeated in the same manner, and the small irreducible fraction [o / including the decimal [y] is repeated. ] And Daisunde an interval of about fraction [q / r] narrow gradually. Then, when it is determined that the sequentially calculated small irreducible fraction [o / p] or large irreducible fraction [q / r] matches the decimal [y], the determined fraction is converted into the converted fraction [a / b]. ] Is determined.

こうした小数→分数変換処理により、前記小既約分数[o/p]又は大既約分数[q/r]が小数[y]と一致(成功)することで、被変換数値の小数値が分数値(a/b)に変換され、RAM14内の第1変換データメモリ14fに記憶される(ステップS9)。   By such decimal-to-fraction conversion processing, when the small irreducible fraction [o / p] or the large irreducible fraction [q / r] matches (success) the decimal [y], the decimal value of the converted numerical value becomes a fraction. It is converted into a numerical value (a / b) and stored in the first converted data memory 14f in the RAM 14 (step S9).

すると、前記ステップS8において整数部退避メモリ14eに退避保持された被変換数値の整数部が(ある場合は)読み出され、前記被変換数値の小数部を分数変換して第1変換データメモリ14fに記憶された分数に対し付加される(ステップS10)。   Then, the integer part of the converted numerical value saved in the integer part saving memory 14e in step S8 is read (if any), the fractional part of the converted numerical value is subjected to fractional conversion, and the first converted data memory 14f is converted. Is added to the fraction stored in (step S10).

これにより、RAM14内の第1変換データメモリ14fには、前記演算結果データメモリ14cに記憶された計算結果の数値データ(被変換数値)に対応する分数変換後の分数が記憶された状態となり、この分数の整数部の値が“0”であるか否か、つまり整数部のない分数であるか否か判断される(ステップS11)。   Thereby, the first converted data memory 14f in the RAM 14 is in a state in which the fraction-converted fraction corresponding to the numerical data (converted numerical value) of the calculation result stored in the calculation result data memory 14c is stored. It is determined whether or not the value of the integer part of this fraction is “0”, that is, whether or not the fraction has no integer part (step S11).

ここで、前記被変換数値に対応する分数について、整数部のない(整数部=0)分数(a/b)であると判断された場合には、当該分数の分子aの数値桁数と分母bの数値桁数とを加算した桁数が9桁以下であるか否か、つまりこの分数を表示する場合に、分数記号“/”を間に挟んだ分数の全桁数が10桁以内に収まるか否か判断される(ステップS11→S12)。   Here, when it is determined that the fraction corresponding to the converted numeric value is a fraction (a / b) having no integer part (integer part = 0), the number of digits and the denominator of the numerator a of the fraction Whether the total number of digits of b is 9 digits or less, that is, when displaying this fraction, the total number of fractions with the fraction symbol “/” within 10 digits It is determined whether or not it fits (steps S11 → S12).

そして、前記被変換数値に対応する分数の分子aの数値桁数と分母bの数値桁数とを加算した桁数が9桁以下であり、この分数を表示する場合に、分数記号“/”を間に挟んだ分数の全桁数が10桁以内に収まると判断された場合には、当該分数が答えとされ(ステップS12→S13)、前記符号退避メモリ14dに退避保持されたマイナス符号“−”が(ある場合は)付されて表示部16に表示される(ステップS55)。   Then, the number of digits obtained by adding the number of digits of the numerator a corresponding to the converted value and the number of digits of the denominator b is 9 digits or less. When this fraction is displayed, the fraction symbol “/” When it is determined that the total number of fractions between the numbers falls within 10 digits, the fraction is answered (step S12 → S13), and the minus sign “ -"Is added (if present) and displayed on the display unit 16 (step S55).

一方、前記被変換数値に対応する分数について、整数部が“0”でなく“1”以上である分数(xとa/b)であると判断された場合には、当該分数の整数部xの数値桁数と分子aの数値桁数と分母bの数値桁数とを加算した桁数が8桁以下であるか否か、つまりこの整数部のある分数(xとa/b)を表示する場合に、整数部の区切り記号と分数記号“/”を間に挟んだ該分数の全桁数が10桁以内に収まるか否か判断される(ステップS11→S14)。   On the other hand, when it is determined that the integer part of the fraction corresponding to the converted numerical value is a fraction (x and a / b) which is not “0” but “1” or more, the integer part x of the fraction Whether or not the number of digits of numerator a, the number of digits of numerator a, and the number of digits of denominator b is 8 digits or less, that is, the fraction with this integer part (x and a / b) In this case, it is determined whether or not the total number of digits of the fraction between the integer part separator and the fraction symbol “/” falls within 10 digits (steps S11 → S14).

そして、前記被変換数値に対応する分数の整数部xの数値桁数と分子aの数値桁数と分母bの数値桁数とを加算した桁数が8桁以下であり、この分数を表示する場合に、整数部の区切り記号と分数記号“/”を間に挟んだ該分数の全桁数が10桁以内に収まると判断された場合には、当該整数部のある分数が答えとされ(ステップS14→S15)、前記符号退避メモリ14dに退避保持されたマイナス符号“−”が(ある場合は)付されて表示部16に表示される(ステップS55)。   The number of digits of the integer part x of the fraction corresponding to the converted value, the number of digits of the numerator a, and the number of digits of the denominator b are 8 digits or less, and this fraction is displayed. In this case, when it is determined that the total number of digits of the fraction between the integer part separator and the fraction symbol “/” is within 10 digits, a certain fraction of the integer part is the answer ( In step S14 → S15), the minus sign “−” saved in the sign saving memory 14d is added (if any) and displayed on the display unit 16 (step S55).

これにより、計算結果である数値データを被変換数値として分数に変換した場合に、その表示のための全桁数が予め見通しのよい最大桁数として設定された桁数範囲(例えば10桁以内)に収まる場合には、この変換分数を計算結果の答えとして表示するので、計算結果として小数を含む数値データを単なる実数値の羅列として表示するのではなく、見通しのよい桁数として収まった分数にして表示できるようなる。   As a result, when the numerical data that is the calculation result is converted to a fraction as a converted numerical value, the number of digits in which the number of digits for the display is set in advance as the maximum number of digits with good visibility (for example, within 10 digits) If this is the case, the converted fraction is displayed as the answer to the calculation result.Therefore, numerical data including decimals is not displayed as a simple list of real values as the calculation result. Can be displayed.

具体的には、図7(A)に示すように、例えば演算式「Σ(1÷3):x=1〜8」なる階和の式を入力して演算実行した場合に、小数点以下13桁を有効桁とした計算結果の数値データ「0.4999237921048」が算出される。そして、この計算結果の数値データを被変換数値として小数→分数変換処理すると、分数記号を含む全桁数が10桁以内に収まった分数「3280/6561」が同小数点以下13桁で一致する値「0.4999237921048」として取得されるので、このような中高生レベルでも見通しのよい分数「3280/6561」が答えとして表示部16に表示される。 More specifically, as shown in FIG. 7A, for example, when an arithmetic expression “Σ (1 ÷ 3 X ): x = 1 to 8” is input and an arithmetic operation is performed, Numerical data “0.4999923721048” as a calculation result with 13 digits as effective digits is calculated. Then, when the numerical data obtained as a result of the calculation is converted into a decimal value and a fraction, the fraction “3280/6561” in which all the digits including the fractional symbol are within 10 digits matches with 13 digits after the decimal point. Since it is acquired as “0.4999923791048”, a fraction “3280/6561” with such a good prospect even at the middle and high school level is displayed on the display unit 16 as an answer.

なお、表示部16に対する分数(a/b)による答えの表示は、例えば“a/b”そのままの一列表示の形態だけでなく、分子数aを上段、分母数bを下段、帯分数xおよび分数記号を中段とした教科書通りの多段表示の形態としてもよい。   In addition, the display of the answer by the fraction (a / b) on the display unit 16 is not limited to, for example, the form of “a / b” as it is displayed in a single column, but the numerator number a is the upper row, the denominator b is the lower row, It is good also as the form of the multistage display according to the textbook which has the fraction sign in the middle.

一方、前記被変換数値に対応する分数について、整数部のない(整数部=0)分数(a/b)であると判断された際に(ステップS11(Yes))、当該分数の分子aの数値桁数と分母bの数値桁数とを加算した桁数が9桁以下でなく、この分数を表示する場合に、分数記号“/”を間に挟んだ分数の全桁数が10桁以内に収まらないと判断された場合(ステップS12(No))、または、前記被変換数値に対応する分数について、整数部が“0”でなく“1”以上である分数(xとa/b)であると判断された際に(ステップS11(No))、当該分数の整数部xの数値桁数と分子aの数値桁数と分母bの数値桁数とを加算した桁数が8桁以下でなく、この分数を表示する場合に、整数部の区切り記号と分数記号“/”を間に挟んだ分数の全桁数が10桁以内に収まらないと判断された場合(ステップS14(No))には、今回の計算結果である数値データを分数形式にして表示することは適さないとして、次の数式種類である平方根記号(√)を含む多項式の数式「(a+b√c)/d」への変換処理(ステップS16〜S32)に移行される。   On the other hand, when it is determined that the fraction corresponding to the converted numerical value is a fraction (a / b) without an integer part (integer part = 0) (step S11 (Yes)), the numerator of the fraction a If the number of digits and the number of digits in the denominator b are not less than 9 digits and this fraction is displayed, the total number of digits in the fraction with the fraction symbol “/” within 10 digits If it is determined that it does not fall within the range (step S12 (No)), or the fraction corresponding to the converted numeric value is a fraction (x and a / b) whose integer part is not “0” but “1” or more. (Step S11 (No)), the number of digits obtained by adding the number of digits of the integer part x of the fraction, the number of digits of the numerator a, and the number of digits of the denominator b is 8 digits or less. Instead, when displaying this fraction, the integer part separator and the fraction symbol “/” are sandwiched between them. If it is determined that the total number of digits does not fit within 10 digits (step S14 (No)), it is not appropriate to display the numerical data that is the current calculation result in the fraction format, and The process proceeds to a conversion process (steps S16 to S32) of a polynomial including a square root symbol (√) which is a mathematical expression type into a mathematical expression “(a + b√c) / d”.

この数式「(a+b√c)/d」への変換処理では、まずRAM14内の変数aメモリ14j〜変数dメモリ14mに記憶される4つの変数a,b,c,dが順次“1”にセットされ、当該数式を構成する4つの変数a,b,c,dに何れも“1”が代入される(ステップS16〜S19)。   In the conversion process to the mathematical expression “(a + b√c) / d”, first, the four variables a, b, c, d stored in the variable a memory 14j to the variable d memory 14m in the RAM 14 are sequentially set to “1”. It is set, and “1” is assigned to each of the four variables a, b, c, d constituting the mathematical expression (steps S16 to S19).

すると、この4つの変数a,b,c,dに何れも“1”が代入された状態で、数式「(a+b√c)/d」が計算され(ステップS20)、この数式の計算結果の値が被変換数値と一致するか否か判断される(ステップS21)。   Then, the equation “(a + b√c) / d” is calculated in a state where “1” is assigned to all the four variables a, b, c, d (step S20). It is determined whether or not the value matches the converted value (step S21).

ここで、今回の4つの変数代入値(a〜d=1)に対応した数式「(a+b√c)/d」の計算結果の値と被変換数値が一致しないと判断された場合には、各変数a,b,c,dの代入値が予め設定された見通しのよい桁数の範囲内(例えば1桁(1〜9の範囲):n=9)で全ての組み合わせについて順次変更設定され(ステップS23〜S30)、その変数代入値変更設定の都度、数式「(a+b√c)/d」の計算結果の値と被変換数値が一致するか否か判断される(ステップS20,S21)。   Here, when it is determined that the value of the calculation result of the mathematical expression “(a + b√c) / d” corresponding to the four variable substitution values (a to d = 1) this time does not match the converted value, The substitution values of the variables a, b, c, and d are sequentially changed and set for all combinations within a preset range of good number of lines (for example, one digit (range 1 to 9): n = 9). (Steps S23 to S30) Each time the variable substitution value change setting is made, it is determined whether or not the value of the calculation result of the formula “(a + b√c) / d” matches the converted value (Steps S20 and S21). .

そして、前記4つの変数a,b,c,dに所定範囲(1〜9)内のある値が代入されたときの数式「(a+b√c)/d」の計算結果の値と被変換数値が一致したと判断された場合には(ステップS21(Yes))、そのときの各変数a,b,c,dの代入値が代入された数式「(a+b√c)/d」が答えとされて第2変換データメモリ14gに記憶され(ステップS32)、前記符号退避メモリ14dに退避保持されたマイナス符号“−”が(ある場合は)付されて表示部16に表示される(ステップS55)。   Then, the value of the calculation result of the formula “(a + b√c) / d” and the converted value when a certain value in the predetermined range (1 to 9) is substituted into the four variables a, b, c, d. Is determined to match (step S21 (Yes)), the formula “(a + b√c) / d” into which the substitution values of the variables a, b, c, d at that time are substituted is the answer. Is stored in the second conversion data memory 14g (step S32), and a minus sign “−” (if any) saved in the sign saving memory 14d is added and displayed on the display unit 16 (step S55). ).

これにより、計算結果である数値データを被変換数値として平方根記号(√)を含む多項式の数式「(a+b√c)/d」に変換した場合に、その数式中の各変数値(a,b,c,d)が予め見通しのよい桁数範囲内(例えば1桁(1〜9の範囲))に収まる状態で被変換数値に一致した場合には、この各変数値(a,b,c,d)を代入した変換数式「(a+b√c)/d」を計算結果の答えとして表示するので、任意の演算式の計算結果として小数を含む数値データを単なる実数値の羅列として表示するのではなく、各変数が見通しのよい桁数として収まった平方根記号(√)を含む多項式の数式「(a+b√c)/d」にして表示できるようなる。   As a result, when the numerical data that is the calculation result is converted as a converted numerical value into a polynomial expression “(a + b√c) / d” including a square root symbol (√), each variable value (a, b) in the expression is converted. , C, d) are in the range of numbers with good visibility in advance (for example, 1 digit (range of 1 to 9)), and match the converted numerical value, each variable value (a, b, c) , D) is substituted and the conversion formula “(a + b√c) / d” is displayed as the answer to the calculation result, so that the numerical data including decimals is displayed as a simple array of real values as the calculation result of an arbitrary arithmetic expression. Instead, it can be displayed as a polynomial expression “(a + b√c) / d” including a square root symbol (√) in which each variable is stored as a good number of digits.

具体的には、図7(B)に示すように、例えば演算式「(√3+√2)」なる平方根記号(√)を含む式を入力して演算実行した場合に、有効桁を13桁とした計算結果の数値データ「9.898979485566」が算出される。そして、この計算結果の数値データを被変換数値として平方根記号(√)を含む多項式の数式「(a+b√c)/d」に変換処理すると、変数a,b,c,dが何れも1桁に収まったa=5,b=2,c=6,d=1であるときの数式「5+2√6」(=(5+2√6)/1)が同13桁で一致する値「9.898979485566」として取得されるので、このような中高生レベルでも見通しのよい平方根記号(√)を含む多項式の数式「5+2√6」が答えとして表示部16に表示される。 Specifically, as shown in FIG. 7 (B), for example, when the operation expression "(√3 + √2) 2" formed by enter an expression including a square root sign (√) computed running, a significant digits 13 Numerical data “9.889974855566” of the calculation result as a digit is calculated. Then, when the numerical data obtained as a result of the conversion is converted into a converted numerical value into a polynomial expression “(a + b√c) / d” including a square root symbol (√), the variables a, b, c, and d all have one digit. The value “9.8897944855566” in which the mathematical expression “5 + 2√6” (= (5 + 2√6) / 1) when a = 5, b = 2, c = 6, and d = 1, which are within the same range, is matched in the same 13 digits. Therefore, a polynomial expression “5 + 2√6” including a square root symbol (√) that has a good visibility even at the middle and high school level is displayed on the display unit 16 as an answer.

なお、表示部16に対する数式「(a+b√c)/d」による答えの表示は、例えば“(a+b√c)/d”そのままの一列表示の形態だけでなく、分子部a+b√cを上段、分母部dを下段、分数記号を中段とした教科書通りの多段表示の形態としてもよい。   In addition, the display of the answer by the mathematical expression “(a + b√c) / d” on the display unit 16 is not limited to, for example, the form of “(a + b√c) / d” as it is in a single row display, A multi-level display format according to a textbook with the denominator part d at the bottom and the fractional symbol at the middle is also possible.

一方、前記4つの変数a,b,c,dの代入値を、予め設定された見通しのよい桁数の範囲内(例えば1桁(1〜9の範囲):n=9)で全ての組み合わせについて順次変更した数式「(a+b√c)/d」の計算結果について、その何れの計算結果の値も被変換数値と一致しないと判断された場合には(ステップS29(No))、今回の入力演算式の計算結果である数値データを平方根記号(√)を含む多項式の数式「(a+b√c)/d」の形式にして表示することは適さないとして、次の数式種類である平方根の和または差の計算式「(a√b±c√d)/e」への変換処理(ステップS33〜S52)に移行される。   On the other hand, all combinations of the substituted values of the four variables a, b, c, and d are within a preset range of good visibility (for example, one digit (range 1 to 9): n = 9). When it is determined that the value of any of the calculation results of the mathematical expression “(a + b√c) / d” sequentially changed with respect to is not equal to the converted numerical value (step S29 (No)), It is not appropriate to display the numerical data as the calculation result of the input arithmetic expression in the form of a polynomial expression “(a + b√c) / d” including a square root symbol (√). The process proceeds to a conversion process (steps S33 to S52) to a formula for calculating the sum or difference “(a√b ± c√d) / e”.

この数式「(a√b±c√d)/e」への変換処理では、まずRAM14内の変数aメモリ14j〜変数eメモリ14nに記憶される5つの変数a,b,c,d,eが順次“1”にセットされ、当該数式を構成する5つの変数a,b,c,d,eに何れも“1”が代入される(ステップS33〜S37)。   In the conversion process to the mathematical expression “(a√b ± c√d) / e”, first, five variables a, b, c, d, e stored in the variable a memory 14j to the variable e memory 14n in the RAM 14 are stored. Are sequentially set to “1”, and “1” is substituted for all of the five variables a, b, c, d, and e constituting the mathematical expression (steps S33 to S37).

すると、この5つの変数a,b,c,d,eに何れも“1”が代入された状態で、数式「(a√b±c√d)/e」が計算され(ステップS38)、この数式の計算結果の値が被変換数値と一致するか否か判断される(ステップS39)。   Then, the mathematical expression “(a√b ± c√d) / e” is calculated in a state where “1” is assigned to all the five variables a, b, c, d, and e (step S38). It is determined whether or not the value of the calculation result of this mathematical formula matches the converted numerical value (step S39).

ここで、今回の5つの変数代入値(a〜e=1)に対応した数式「(a√b±c√d)/e」の計算結果の値と被変換数値が一致しないと判断された場合には、各変数a,b,c,d,eの代入値が予め設定された見通しのよい桁数の範囲内(例えば1桁(1〜9の範囲):n=9)で全ての組み合わせについて順次変更設定され(ステップS41〜S50)、その変数代入値変更設定の都度、数式「(a√b±c√d)/e」の計算結果の値と被変換数値が一致するか否か判断される(ステップS38,S39)。   Here, it is determined that the value of the calculation result of the mathematical expression “(a√b ± c√d) / e” corresponding to the five variable substitution values (a to e = 1) this time does not match the converted value. In this case, the substitution values of the variables a, b, c, d, and e are all within a preset range of good number of lines (for example, one digit (range 1 to 9): n = 9). The combinations are sequentially changed and set (steps S41 to S50), and the value of the calculation result of the formula “(a√b ± c√d) / e” matches the converted numerical value each time the variable substitution value change setting is made. Is determined (steps S38 and S39).

そして、前記5つの変数a,b,c,d,eに所定範囲(1〜9)内のある値が代入されたときの数式「(a√b±c√d)/e」の計算結果の値と被変換数値が一致したと判断された場合には(ステップS39(Yes))、そのときの各変数a,b,c,d,eの代入値が代入された数式「(a√b±c√d)/e」が答えとされて第3変換データメモリ14hに記憶され(ステップS52)、前記符号退避メモリ14dに退避保持されたマイナス符号“−”が(ある場合は)付されて表示部16に表示される(ステップS55)。   Then, the calculation result of the formula “(a√b ± c√d) / e” when a certain value within a predetermined range (1 to 9) is assigned to the five variables a, b, c, d, and e. When it is determined that the converted value and the converted numerical value match (step S39 (Yes)), the mathematical expression “(a√) in which the substituted values of the variables a, b, c, d, e at that time are substituted. b ± c√d) / e ”is the answer and stored in the third conversion data memory 14h (step S52), and a minus sign“ − ”(if present) saved in the code saving memory 14d is added. And displayed on the display unit 16 (step S55).

これにより、計算結果である数値データを被変換数値として平方根の和または差の計算式「(a√b±c√d)/e」に変換した場合に、その数式中の各変数値(a,b,c,d,e)が予め見通しのよい桁数範囲内(例えば1桁(1〜9の範囲))に収まる状態で被変換数値に一致した場合には、この各変数値(a,b,c,d,e)を代入した変換数式「(a√b±c√d)/e」を計算結果の答えとして表示するので、任意の演算式の計算結果として小数を含む数値データを単なる実数値の羅列として表示するのではなく、各変数が見通しのよい桁数として収まった平方根の和または差の計算式「(a√b±c√d)/e」にして表示できるようなる。   As a result, when the numerical data as the calculation result is converted as a converted numerical value into a calculation formula “(a√b ± c√d) / e” of the sum of square roots, each variable value (a , B, c, d, e) in the state where the numbers are within the range of digits with good visibility in advance (for example, one digit (range of 1 to 9)), the variable values (a , B, c, d, e), the conversion formula “(a√b ± c√d) / e” is displayed as the answer to the calculation result, so that the numerical data including decimals as the calculation result of an arbitrary arithmetic expression Can be displayed as a formula ((a√b ± c√d) / e) of the sum or difference of the square roots in which each variable is stored as a good number of digits. Become.

具体的には、図7(C)に示すように、例えば演算式「2÷(√5+√3)」なる平方根記号(√)を含む式を入力して演算実行した場合に、小数点以下13桁を有効桁とした計算結果の数値データ「0.5040171699309」が算出される。そして、この計算結果の数値データを被変換数値として平方根の和または差の計算式「(a√b±c√d)/e」に変換処理すると、変数a,b,c,d,eが何れも1桁に収まったa=1,b=5,c=1,d=3,e=1であるときの数式「√5−√3」(=(1√5−1√3)/1)が同小数点以下13桁で一致する値「0.5040171699309」として取得されるので、このような中高生レベルでも見通しのよい平方根の和または差の計算式「√5−√3」が答えとして表示部16に表示される。   Specifically, as shown in FIG. 7C, for example, when an arithmetic expression “2 ÷ (√5 + √3)” including a square root symbol (√) is input and the arithmetic operation is executed, 13 decimal places are obtained. Numerical data “0.5040171699309” as a calculation result with the digit being an effective digit is calculated. Then, when the numerical data obtained as a result of the conversion is converted into the converted numerical value into the formula “(a√b ± c√d) / e” for the sum or difference of square roots, the variables a, b, c, d, and e In any case, the numerical formula “√5−√3” (= (1√5−1√3) // when a = 1, b = 5, c = 1, d = 3, and e = 1 fit in one digit. Since 1) is obtained as a value “0.5040171699309” that matches with 13 digits after the decimal point, the formula “√5-√3” for calculating the sum or difference of square roots with good visibility even in the middle and high school level is the answer. It is displayed on the display unit 16.

なお、表示部16に対する数式「(a√b±c√d)/e」による答えの表示は、例えば“(a√b±c√d)/e”そのままの一列表示の形態だけでなく、分子部a√b±c√dを上段、分母部eを下段、分数記号を中段とした教科書通りの多段表示の形態としてもよい。   Note that the display of the answer by the mathematical expression “(a√b ± c√d) / e” on the display unit 16 is not limited to, for example, “(a√b ± c√d) / e” as it is in a single-line display form. The display may be a multi-level display format according to a textbook in which the numerator part a√b ± c√d is the upper stage, the denominator part e is the lower stage, and the fractional symbol is the middle stage.

一方、前記5つの変数a,b,c,d,eの代入値を、予め設定された見通しのよい桁数の範囲内(例えば1桁(1〜9の範囲):n=9)で全ての組み合わせについて順次変更した数式「(a√b±c√d)/e」の計算結果について、その何れの計算結果の値も被変換数値と一致しないと判断された場合には(ステップS49(No))、今回の入力演算式の計算結果である数値データを平方根の和または差の計算式「(a√b±c√d)/e」の形式にして表示することは適さないとして、次の数式種類であるπ分数式「(a/b)π」への変換処理(ステップS53,S54)に移行される。   On the other hand, the substitution values of the five variables a, b, c, d, e are all set within a preset range of good number of lines (for example, one digit (range of 1 to 9): n = 9). If it is determined that the value of any of the calculation results of the mathematical expression “(a√b ± c√d) / e”, which is sequentially changed with respect to the combination, is not equal to the converted numerical value (step S49 ( No)), it is not appropriate to display the numerical data that is the calculation result of the current input arithmetic expression in the form of the calculation formula “(a√b ± c√d) / e” of the sum or difference of square roots. The process shifts to a conversion process (steps S53 and S54) to the next mathematical expression type π fractional expression “(a / b) π”.

このπ分数式「(a/b)π」への変換処理では、まず、被変換数値をπで割り、25200を掛けた値が整数となるか否か判断される(ステップS53)。 In the conversion process to the π fractional expression “(a / b) π”, it is first determined whether or not the value obtained by dividing the converted numerical value by π and multiplying by 25200 is an integer (step S53).

そして、前記被変換数値をπで割り、25200を掛けた値が整数と判断された場合には(ステップS53(Yes))、その計算結果である整数に基づき、(整数/25200)πが答えとされて第4変換データメモリ14iに記憶され(ステップS54)、前記符号退避メモリ14dに退避保持されたマイナス符号“−”が(ある場合は)付されて表示部16に表示される(ステップS55)。 Then, the to be converted numerical divided by [pi, if the value obtained by multiplying the 25200 is determined to an integer (step S53 (Yes)), based on the integer that is the calculation result, the answer is [pi (integer / 25200) Is stored in the fourth conversion data memory 14i (step S54), and a minus sign “−” (if any) saved in the sign saving memory 14d is added and displayed on the display unit 16 (step S54). S55).

ここで、被変換数値をπで割り、25200を掛けたことにより求めた整数に基づき、(整数/25200)π「=(a/b)π」を答えとする根拠について説明する。 Here, the basis for answering (integer / 25200) π “= (a / b) π” based on an integer obtained by dividing the converted numerical value by π and multiplying by 25200 will be described.

すなわち、入力された演算式の計算結果である被変換数値を(a/b)πのπ分数の形式に変換した場合に、見通しのよいπ分数となるように分母数bとして期待される値を、,2,〜,9、360の約数(0.5degreeまで考慮)、400の約数(0.5gradまで考慮)のみに限定し、これらの最小公倍数25200をとり、非変換数値をπで割り、25200を掛けた値が整数になれば、π分数として変換可能と判定する。 That is, a value expected as the denominator b so as to have a good π fraction when the converted numerical value, which is the calculation result of the input arithmetic expression, is converted into the form of a π fraction of (a / b) π. Is limited to divisors of 1 , 2, to, 9, 360 (considering up to 0.5 degree) and divisors of 400 (considering up to 0.5 grad), taking these least common multiples 25200, If the value divided by π and multiplied by 25200 becomes an integer, it is determined that conversion is possible as π fraction.

具体的には、図7(D)に示すように、例えばRAD(radian)モードでの演算式「2×tan−1(1/3)+tan−1(1/7)」なる逆三角関数式を入力して演算実行した場合に、小数点以下13桁を有効桁とした計算結果の数値データ「0.7853981633974」が算出される。そして、この計算結果の数値データを被変換数値としてπ分数式「(a/b)π」に変換処理すると、分母数bが1桁(1〜9)に収まったπ分数式「π/4」(=(1/4)π)が同小数点以下13桁で一致する値「0.7853981633974」として取得されるので、このような中高生レベルでも見通しのよいπ分数式「π/4」が答えとして表示部16に表示される。 Specifically, as shown in FIG. 7D, for example, an inverse trigonometric function expression “2 × tan −1 (1/3) + tan −1 (1/7)” in the RAD (radian) mode. When the calculation is executed by inputting “”, numerical data “0.7853981633974” as a result of calculation with 13 decimal places as effective digits is calculated. Then, when the numerical data of the calculation result is converted into a π fractional expression “(a / b) π” as a converted value, the π fractional expression “π / 4” in which the denominator b is within one digit (1 to 9). ”(= (1/4) π) is obtained as a value“ 0.7853981633974 ”that coincides with 13 digits after the decimal point, so that the π-particulate formula“ π / 4 ”with a good outlook even in such a middle and high school level is the answer Is displayed on the display unit 16.

なお、表示部16に対するπ分数式「(a/b)π」による答えの表示は、例えば“(a/b)π”そのままの一列表示の形態だけでなく、図7(E)に示すように、分子部aを上段、分母部bを下段、分数記号およびπを中段とした教科書通りの多段表示の形態としてもよい。   It should be noted that the display of the answer by the π-fractional expression “(a / b) π” on the display unit 16 is not limited to a single-line display form of “(a / b) π”, for example, as shown in FIG. In addition, it is possible to adopt a multi-level display format according to a textbook with the numerator part a being the upper stage, the denominator part b being the lower stage, the fractional symbol, and π being the middle stage.

このように、計算結果である数値データを被変換数値としてπ分数式「(a/b)π」に変換した場合に、その分数式中の分母数(b)が予め見通しのよい桁数範囲内(例えば1桁(1〜9の範囲))に収まる状態で被変換数値に一致した場合には、この分母数(b)に基づいたπ分数式「(a/b)π」を計算結果の答えとして表示するので、任意の演算式の計算結果として小数を含む数値データを単なる実数値の羅列として表示するのではなく、各変数が見通しのよい桁数として収まったπ分数式「(a/b)π」にして表示できるようなる。   As described above, when the numerical data as the calculation result is converted into the π fractional expression “(a / b) π” as the converted value, the denominator (b) in the fractional expression has a good number of digits in advance. If it matches the converted value in a state that falls within the range (for example, one digit (range 1 to 9)), the π fractional expression “(a / b) π” based on this denominator (b) is calculated. Therefore, numerical data including decimal numbers is not displayed as a simple list of real values as a result of calculation of an arbitrary arithmetic expression, but a π-fractional expression “(a / B) π ”and can be displayed.

一方、被変換数値をπで割り、25200を掛けた値が整数にならないと判断された場合には(ステップS53(No))、今回の入力演算式の計算結果である数値データを、分数形式、または平方根記号(√)を含む多項式の数式「(a+b√c)/d」、または平方根の和または差の計算式「(a√b±c√d)/e」、またはπ分数「(a/b)π」の何れの形式にして表示することも適さないとして、小数を含む実数値からなる被変換数値に対してそのまま前記符号退避メモリ14dに退避保持されたマイナス符号“−”が(ある場合は)付され、答えとして表示部16に表示される(ステップS56)。 On the other hand, if it is determined that the value obtained by dividing the converted numerical value by π and multiplying by 25200 does not become an integer (step S53 (No)), the numerical data that is the calculation result of the current input arithmetic expression is expressed in a fractional format. , Or a polynomial expression “(a + b√c) / d” including a square root symbol (√), or a calculation expression “(a√b ± c√d) / e” of a square root, or a π fraction “( a / b) π ”is not suitable for display, and a minus sign“ − ”saved and held in the sign saving memory 14d as it is with respect to a converted numeric value including a decimal value is included. Attached (if present) is displayed on the display unit 16 as an answer (step S56).

したがって、前記構成の電子計算装置による演算表示制御機能によれば、第1に、計算結果である数値データを被変換数値として分数に変換した場合に、その表示のための全桁数が予め見通しのよい最大桁数として設定された桁数範囲(例えば10桁以内)に収まる状態で被変換数値に一致した場合には、この変換分数を計算結果の答えとして表示し、第2に、同被変換数値を平方根記号(√)を含む多項式の数式「(a+b√c)/d」に変換した場合に、その数式中の各変数値(a,b,c,d)が予め見通しのよい桁数範囲内(例えば1桁(1〜9の範囲))に収まる状態で被変換数値に一致した場合には、この各変数値(a,b,c,d)を代入した変換数式「(a+b√c)/d」を計算結果の答えとして表示し、第3に、同被変換数値を平方根の和または差の計算式「(a√b±c√d)/e」に変換した場合に、その数式中の各変数値(a,b,c,d,e)が予め見通しのよい桁数範囲内(例えば1桁(1〜9の範囲))に収まる状態で被変換数値に一致した場合には、この各変数値(a,b,c,d,e)を代入した変換数式「(a√b±c√d)/e」を計算結果の答えとして表示し、第4に、同被変換数値をπ分数式「(a/b)π」に変換した場合に、その分数式中の分母数(b)が予め見通しのよい桁数範囲内(例えば1桁(1〜9の範囲))に収まる状態で被変換数値に一致した場合には、この分母数(b)に基づいたπ分数式「(a/b)π」を計算結果の答えとして表示するので、任意の演算式の計算結果として小数を含む数値データを単なる実数値の羅列として表示するのではなく、見通しのよい桁数として収まった分数(a/b)または平方根記号(√)を含む多項式の数式「(a+b√c)/d」または平方根の和または差の計算式「(a√b±c√d)/e」、またはπ分数式「(a/b)π」にして表示できるようなる。   Therefore, according to the calculation display control function of the electronic computer having the above-described configuration, first, when the numerical data as the calculation result is converted into a fraction as a converted numerical value, the total number of digits for the display is previously estimated. If the converted value matches the converted value within the range of the number of digits set as a good maximum number of digits (for example, within 10 digits), the converted fraction is displayed as the answer to the calculation result. When the converted numerical value is converted into a polynomial expression “(a + b√c) / d” including a square root symbol (√), each variable value (a, b, c, d) in the expression has a good visibility in advance. When the value to be converted matches within a numerical range (for example, one digit (range 1 to 9)), the conversion formula “(a + b) into which each variable value (a, b, c, d) is substituted. √c) / d ”is displayed as the answer to the calculation result. When a numerical value is converted into a formula for calculating the sum or difference of square roots “(a√b ± c√d) / e”, each variable value (a, b, c, d, e) in the formula is predicted in advance. When the converted numeric value matches the converted value within a good range of numbers (for example, one digit (range 1 to 9)), the variable values (a, b, c, d, e) are substituted. When the conversion formula “(a√b ± c√d) / e” is displayed as an answer to the calculation result, and fourth, when the converted numerical value is converted into a π-partial expression “(a / b) π”, If the denominator (b) in the fractional expression coincides with the converted numerical value in a state where the denominator (b) falls within the range of good number of digits (for example, one digit (range of 1 to 9)), this denominator (b ) Based on the π fractional expression “(a / b) π” is displayed as an answer to the calculation result, so that numerical data including a decimal number is simply a real value as a calculation result of an arbitrary arithmetic expression. Calculation of polynomial expression “(a + b√c) / d” or sum or difference of square roots including fractions (a / b) or square root symbols (√) that are not displayed as an enumeration but contained as a good number of digits. The expression “(a√b ± c√d) / e” or the π-fractional expression “(a / b) π” can be displayed.

よって、例えば中高生レベルの教育現場にあっても、演算結果に応じて最適な種類の数式に変換した見通しのよい解を表示することが可能になる。   Therefore, for example, even in a junior and senior high school level education site, it is possible to display a solution with a good prospect converted into an optimal type of mathematical expression according to the calculation result.

なお、前記実施形態において記載した手法、すなわち、図3〜図6のフローチャートに示す演算表示制御処理(その1)〜(その4)等の各手法は、コンピュータに実行させることができるプログラムとして、メモリカード(ROMカード、RAMカード等)、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスク等)、光ディスク(CD−ROM、DVD等)、半導体メモリ等の外部記録媒体18に格納して配布することができる。そして、コンピュータは、この外部記録媒体18に記録されたプログラムを記録媒体読み取り部17によって読み込み、この読み込んだプログラムによって動作が制御されることにより、前記実施形態において説明した任意入力演算式の計算処理における最適な種類の数式形態での答え表示機能を実現し、前述した手法による同様の処理を実行することができる。   The methods described in the embodiment, that is, the calculation display control processes (part 1) to (part 4) shown in the flowcharts of FIGS. 3 to 6 are programs that can be executed by a computer. Store and distribute in an external recording medium 18 such as a memory card (ROM card, RAM card, etc.), magnetic disk (floppy (registered trademark) disk, hard disk, etc.), optical disk (CD-ROM, DVD, etc.), semiconductor memory, etc. Can do. Then, the computer reads the program recorded on the external recording medium 18 by the recording medium reading unit 17, and the operation is controlled by the read program, whereby the calculation process of the arbitrary input arithmetic expression described in the above embodiment is performed. It is possible to realize an answer display function in the form of an optimal type of mathematical formula and to execute the same processing by the method described above.

また、前記各手法を実現するためのプログラムのデータは、プログラムコードの形態として通信ネットワーク(インターネット)N上を伝送させることができ、この通信ネットワーク(インターネット)Nに接続されたコンピュータ端末(プログラムサーバ)20から前記のプログラムデータを取り込み、前述した任意入力演算式の計算処理における最適な種類の数式形態での答え表示機能を実現することもできる。   Further, program data for realizing each of the above methods can be transmitted on a communication network (Internet) N as a program code form, and a computer terminal (program server) connected to the communication network (Internet) N ) The above-mentioned program data can be fetched from 20, and an answer display function in the form of an optimal type of mathematical expression in the calculation processing of the arbitrary input arithmetic expression described above can be realized.

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

すなわち、前記実施形態では、演算処理の計算結果を被変換数値として、何れも数値見通しのよい桁数範囲内での分数「a/b」、または平方根記号(√)を含む多項式の数式「(a+b√c)/d」、または平方根の和または差の計算式「(a√b±c√d)/e」、またはπ分数式「(a/b)π」の何れかの数式形態に変換して表示する手順としたが、各種数式の変換順序や組み合わせはこれに限定されるものではなく、例えば分数「a/b」または平方根多項式「(a+b√c)/d」への2つの数式形態のみへの変換表示機能としたり、π分数式→平方根式→分数式の順で変換処理するなどの構成としてもよい。   In other words, in the above-described embodiment, the calculation result of the arithmetic processing is used as a converted numerical value, and in each case, a fraction “a / b” within the range of digits with good numerical visibility, or a polynomial expression “( a + b√c) / d ”, or a formula for calculating the sum or difference of square roots“ (a√b ± c√d) / e ”, or a π-partial expression“ (a / b) π ”. Although the procedure of converting and displaying is used, the conversion order and combination of various mathematical formulas are not limited to this. For example, two formulas to a fraction “a / b” or a square root polynomial “(a + b√c) / d” are used. A conversion display function only for a mathematical expression form may be used, or a conversion process may be performed in the order of π-fractional expression → square root expression → fractional expression.

本発明の実施形態に係わる電子計算装置の電子回路の構成を示すブロック図。The block diagram which shows the structure of the electronic circuit of the electronic calculator concerning embodiment of this invention. 前記電子計算装置のRAM14に備えられるデータメモリの構成を示す図。The figure which shows the structure of the data memory with which RAM14 of the said electronic calculation apparatus is equipped. 前記電子計算装置の演算表示制御処理(その1)を示すフローチャート。The flowchart which shows the calculation display control process (the 1) of the said electronic computer. 前記電子計算装置の演算表示制御処理(その2)を示すフローチャート。The flowchart which shows the calculation display control process (the 2) of the said electronic computer. 前記電子計算装置の演算表示制御処理(その3)を示すフローチャート。The flowchart which shows the calculation display control process (the 3) of the said electronic computer. 前記電子計算装置の演算表示制御処理(その4)を示すフローチャート。The flowchart which shows the calculation display control process (the 4) of the said electronic computer. 前記電子計算装置の演算表示制御処理に伴う演算式の入力およびその答えの表示状態を示す図。The figure which shows the display state of the input of the arithmetic expression accompanying the calculation display control process of the said electronic computer, and the answer.

符号の説明Explanation of symbols

11 …制御部(CPU)
12 …キー入力部
12a…データ入力キー
12b…「実行」キー
12c…「演算入力」キー
12d…「モード」キー
12e…カーソルキー
13 …ROM
14 …RAM
14a…表示データメモリ
14b…入力データメモリ
14c…演算結果データメモリ
14d…符号退避メモリ
14e…整数部退避メモリ
14f…第1変換データ[(a/b)]メモリ
14g…第2変換データ[(a+b√c)/d]メモリ
14h…第3変換データ[(a√b±c√d)/e]メモリ
14i…第4変換データ[(a/b)π]メモリ
14j〜14n…変数aメモリ〜変数eメモリ
14o…ワークメモリ
16 …液晶表示部
17 …記録媒体読み取り部
18 …外部記録媒体
19 …通信部
20 …Webサーバ
11: Control unit (CPU)
12 ... Key input part 12a ... Data input key 12b ... "Execution" key 12c ... "Calculation input" key 12d ... "Mode" key 12e ... Cursor key 13 ... ROM
14 ... RAM
14a ... Display data memory 14b ... Input data memory 14c ... Calculation result data memory 14d ... Sign save memory 14e ... Integer save memory 14f ... First conversion data [(a / b)] memory 14g ... Second conversion data [(a + b √c) / d] memory 14h: third conversion data [(a√b ± c√d) / e] memory 14i: fourth conversion data [(a / b) π] memory 14j-14n: variable a memory Variable e memory 14o Work memory 16 Liquid crystal display unit 17 Recording medium reading unit 18 External recording medium 19 Communication unit 20 Web server

Claims (3)

演算式を入力する式入力手段と、
この式入力手段により入力された演算式に従い演算処理する演算手段と、
この演算手段による演算結果の数値データを分数式に変換する分数式変換手段と、
この分数式変換手段により変換された分数式が所定の桁数に収まるか否かを判断する桁数判断手段と、
この桁数判断手段により前記変換された分数式が所定の桁数に収まると判断された場合には、当該変換された分数式の表示形態で前記演算式の演算結果を表示させる表示制御手段と、
前記桁数判断手段により前記変換された分数式が所定の桁数に収まらないと判断された場合には、前記演算手段による演算結果の数値データを√含む数式またはπを含む分数式に変換して表示させる別形式表示制御手段と、
を備えたことを特徴とする電子計算装置。
An expression input means for inputting an arithmetic expression;
Arithmetic means for performing arithmetic processing according to the arithmetic expression input by the expression input means;
A fractional expression conversion means for converting numerical data of a calculation result by the calculation means into a fractional expression;
Digit number judgment means for judging whether or not the fractional expression converted by the fractional expression conversion means falls within a predetermined number of digits;
A display control means for displaying a calculation result of the arithmetic expression in a display form of the converted fractional expression when it is determined by the digit number determining means that the converted fractional expression falls within a predetermined number of digits; ,
When it is determined that the converted fractional expression does not fit within a predetermined number of digits by the digit number determining means, it is converted into a numerical expression including √ or a fractional expression including π including the numerical data of the calculation result by the calculating means. Another form display control means to display,
An electronic computing device comprising:
前記別形式表示制御手段は、
前記演算手段による演算結果の数値データをπで割り、25200を掛けた値が整数になるか判断する判断手段と、
この判断手段が整数になると判断した場合に、(整数/25200)πをπを含む分数式の演算結果として表示させる表示制御手段と、
を備えたことを特徴とする請求項1に記載の電子計算装置。
The another format display control means includes:
A determination means for determining whether the value obtained by dividing the numerical data of the calculation result by the calculation means by π and multiplying by 25200 is an integer;
Display control means for displaying (integer / 25200) π as a calculation result of a fractional expression including π when the determination means determines that it is an integer;
The electronic computer according to claim 1, further comprising:
電子計算装置のコンピュータを制御するための計算表示処理プログラムであって、
前記コンピュータを、
式入力手段により入力された演算式に従い演算処理する演算手段、
この演算手段による演算結果の数値データを分数式に変換する分数式変換手段、
この分数式変換手段により変換された分数式が所定の桁数に収まるか否かを判断する桁数判断手段、
この桁数判断手段により前記変換された分数式が所定の桁数に収まると判断された場合には、当該変換された分数式の表示形態で前記演算式の演算結果を表示させる表示制御手段、
前記桁数判断手段により前記変換された分数式が所定の桁数に収まらないと判断された場合には、前記演算手段による演算結果の数値データを√を含む数式またはπを含む分数式に変換して表示させる別形式表示制御手段、
として機能させるようにしたコンピュータ読み込み可能な計算表示処理プログラム。
A calculation display processing program for controlling a computer of an electronic computing device,
The computer,
Arithmetic means for performing arithmetic processing according to the arithmetic expression input by the expression input means;
A fractional expression conversion means for converting numerical data of a calculation result by the calculation means into a fractional expression;
Digit number judgment means for judging whether or not the fractional expression converted by this fractional expression conversion means fits within a predetermined number of digits,
Display control means for displaying the calculation result of the arithmetic expression in the display form of the converted fractional expression when the converted fractional expression is determined to be within a predetermined number of digits by the digit number determining means;
When it is determined by the digit number determining means that the converted fractional expression does not fit in a predetermined number of digits, the numerical data of the calculation result by the calculating means is converted into a mathematical expression including √ or a fractional expression including π. Another form display control means to display,
A computer-readable calculation display processing program designed to function as a computer.
JP2004158019A 2004-05-27 2004-05-27 Electronic calculation apparatus and calculation display processing program Expired - Lifetime JP4126497B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004158019A JP4126497B2 (en) 2004-05-27 2004-05-27 Electronic calculation apparatus and calculation display processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004158019A JP4126497B2 (en) 2004-05-27 2004-05-27 Electronic calculation apparatus and calculation display processing program

Publications (3)

Publication Number Publication Date
JP2005339263A JP2005339263A (en) 2005-12-08
JP2005339263A5 JP2005339263A5 (en) 2007-11-01
JP4126497B2 true JP4126497B2 (en) 2008-07-30

Family

ID=35492756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004158019A Expired - Lifetime JP4126497B2 (en) 2004-05-27 2004-05-27 Electronic calculation apparatus and calculation display processing program

Country Status (1)

Country Link
JP (1) JP4126497B2 (en)

Also Published As

Publication number Publication date
JP2005339263A (en) 2005-12-08

Similar Documents

Publication Publication Date Title
JP5652104B2 (en) Electronic computer and program
US20110219051A1 (en) Electronic calculator, display method, and recording medium for displaying mathematical expression in full color
CN102193894B (en) Mathematical expression calculation apparatus and method
JP4126498B2 (en) Electronic calculation apparatus and calculation display processing program
JP4462181B2 (en) Fraction display device and fraction display program
JP4126497B2 (en) Electronic calculation apparatus and calculation display processing program
CN104063358B (en) Matrix computations device, matrix computational approach
US7325020B2 (en) Input and evaluation of fractions using a calculator
US7272621B2 (en) Previous calculation reuse in a calculator
JP6237043B2 (en) Formula display control apparatus, formula display control method, formula display control program
JP5141208B2 (en) Prime factorization calculator
JP5979212B2 (en) Electronic equipment and programs
JP6504128B2 (en) Electronic device, data processing method and program
JP3941265B2 (en) Computing device and storage medium
JP5286890B2 (en) Formula arithmetic device and formula calculation processing program
JP5326263B2 (en) Numerical computer and program
JP5487997B2 (en) Electronic computer and program
JP5315712B2 (en) Electronic device having arithmetic function and arithmetic processing program
JP5353152B2 (en) Formula arithmetic processing apparatus and formula arithmetic processing program
JP2000057100A (en) Calculation device and recording medium recording calculation processing program
JP4893340B2 (en) Calculation apparatus and calculation program
KR200342966Y1 (en) Electric calculator
EP0786729B1 (en) Portable calculator
JP2012128483A (en) Electronic computer and program
JP2009230437A (en) Mathematical equation arithmetic device and mathematical equation arithmetic processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060614

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070913

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071116

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080428

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4126497

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120523

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120523

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130523

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130523

Year of fee payment: 5

EXPY Cancellation because of completion of term