JPS59170958A - Electronic calculator - Google Patents

Electronic calculator

Info

Publication number
JPS59170958A
JPS59170958A JP4548083A JP4548083A JPS59170958A JP S59170958 A JPS59170958 A JP S59170958A JP 4548083 A JP4548083 A JP 4548083A JP 4548083 A JP4548083 A JP 4548083A JP S59170958 A JPS59170958 A JP S59170958A
Authority
JP
Japan
Prior art keywords
register
gate
data
registers
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP4548083A
Other languages
Japanese (ja)
Inventor
Hideki Yagi
秀樹 八木
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.)
NEC Corp
Original Assignee
NEC Corp
Nippon Electric 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP4548083A priority Critical patent/JPS59170958A/en
Publication of JPS59170958A publication Critical patent/JPS59170958A/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To operate continuously even if an error is generated on the way of operation of a long calculation formula by clearing only an arithmetic register when data are included in saving registers. CONSTITUTION:When the contents of a formula 1+2X[3-4X(5divided by 0)] are inputted successively from an input part 10, 4XA, 3-B, 2XA, 1+B, 0, and 5divided by are stored in the saving registers 23, 33, the saving registers 24, 34, the saving registers 25, 35, the saving registers 26, 36, a register 21, and a register 22 respectively at the input of 0. When a right parenthesis key is depressed, 5divided by 0 is operated and an error is generated. Therefore, an AC all clear key is depressed, so that signals 105, 106 are outputted from an arithmetic control part 11 and data in the registers 21, 22 are cleared. On the other hand, data in the saving registers are not cleared and can be operated continuously.

Description

【発明の詳細な説明】 不発明は電子式卓上計算機Vこ関する。[Detailed description of the invention] The non-invention relates to electronic desk calculators.

最近の電子技術の進歩VC伴い、括弧計算等になむ複雑
なii′を昶ケ数式通F)VCキー操作1〜でも乗除算
あるいは括弧内ty)Rt nVC優先して計算でき−
るいわゆる児全灼数式の電子式卓上計算機(電卓)が開
発されている。
With the recent advances in VC electronic technology, complicated calculations involving parentheses, etc., can now be calculated by prioritizing multiplication and division or ty) Rt nVC even with VC key operations 1~.
An electronic desktop calculator (calculator) using the so-called child-complete formula has been developed.

このような計4引こおいで、たとえば 八−Bx(C+(D−E÷F)) の計算を行なう場合(1) −E十F)が最も優先され
るがその内でもE−4−Fi最初に計算しその篩分りか
ら減x−rる。更にその結果全Cに加算し、その結果f
 B VC乗算全行ない、その結果kAから減算全行な
う。
For example, when calculating 8-Bx (C+(D-E÷F)) with a total of 4 such draws, (1) -E1F) is given the highest priority, but among them, E-4-Fi First calculate and subtract x-r from the sieve. Furthermore, the result is added to all C, and the result is f
B Performs all VC multiplications and subtracts all results from kA.

以上の様に、計算を行なう順序全自動的に判断し、その
場合に計算順序が遅い、データ?演算レジスタ以外のレ
ジスタに退避する必要があるが、計算機の使用者が不条
理な演算、あるいは演算の結果オーバーフローした場合
エラーが生じる。これらのエラーは長い計算式の途中で
発生した場合クリアキーに依り、全てのレジスタ全クリ
アし、もう一度最初からキー人力全行なわねばならず不
便であった。
As mentioned above, the order of calculation is determined automatically, and in that case, if the calculation order is slow, the data? It is necessary to save the data to a register other than the arithmetic register, but if the user of the computer performs an unreasonable operation or the result of the operation overflows, an error will occur. When these errors occur in the middle of a long calculation formula, it is inconvenient that all registers must be completely cleared using the clear key and the entire operation must be performed manually from the beginning.

本発明の目的はこの様な点に鑑み、長い計算式の途中で
発生L7たエラーの場合、演算レジスタだけ全クリアし
、継続して演算が実行できる4:うに1〜た電子式卓上
計算機を提供することにある。
In view of these points, the purpose of the present invention is to provide an electronic desktop calculator that, when an error occurs in the middle of a long calculation formula, clears all the calculation registers and continues the calculation. It is about providing.

本発明による電子式卓上計算機は、括弧計算機能及び加
減乗除等の混合計算を順に処理して計算を行なう電子式
卓上計算機において、データ退避中にエラーが発生しf
c場合演算レジスタだけ全クリアし、データ退避レジス
タの内容全保護するように(〜、継続して演算可能とし
たこと全特徴とする。
The electronic desk calculator according to the present invention is an electronic desk calculator that performs calculations by sequentially processing a parenthesis calculation function and mixed calculations such as addition, subtraction, multiplication, and division.
In case c, only the arithmetic register is fully cleared and the entire contents of the data save register are protected (~, all features are that continuous computation is possible).

本発明の一実施例全第1図に示す。An embodiment of the invention is shown in FIG.

キー人力部10でキー操作があると、対応する信号が演
算制御部11Vc伝達される。
When a key is operated in the key manual section 10, a corresponding signal is transmitted to the arithmetic control section 11Vc.

キー人力部100乗算キー図及び除算キー田が操作され
た場合、途中結果葡退避する必要が有ること全演算制御
部11が判断すると、信号101が(JRゲート14及
びANDゲート72の入力VC伝達される。また、キー
人力部10の左括弧キー[Cが操作されると演算制御部
11から信号102がORゲート14及びA N I)
ゲート62の入力に伝達される。
When the multiplication key diagram and the division key field of the key human power unit 100 are operated, the full calculation control unit 11 determines that it is necessary to save the intermediate results, and the signal 101 (input VC transmission of the JR gate 14 and AND gate 72 In addition, when the left parenthesis key [C of the key input section 10 is operated, the signal 102 is sent from the arithmetic control section 11 to the OR gate 14 and A N I).
is transmitted to the input of gate 62.

また、キー人力部10の加算キー日及び減算キー日が操
作されると演算制御部11から信号103が01(、ゲ
ート15の入力に伝達される。更にロキー及びロキーが
操作されると演算制御部11から信号104がA、ND
ゲート63,64,65.66の入力に伝達される。
Further, when the addition key date and subtraction key date of the key manual unit 10 are operated, the signal 103 is transmitted from the calculation control unit 11 to the input of the gate 15. Furthermore, when the LOCKY and LOCKY are operated, the calculation control The signal 104 from the section 11 is A, ND.
It is transmitted to the inputs of gates 63, 64, 65, and 66.

更に、キー人力部10のA、Cキーが操作されると演算
制御部11から信号105がORゲート15の人力に伝
達される。信号106は演算制御部11からレジスタ3
1に伝達される演算データである。
Further, when the A and C keys of the key human power section 10 are operated, a signal 105 is transmitted from the arithmetic control section 11 to the human power of the OR gate 15. The signal 106 is sent from the arithmetic control unit 11 to the register 3.
This is the calculation data transmitted to 1.

(JRゲート14の出力は(JRゲート15及びAND
ゲート53,54.55.56の入力に接続され、(J
Rゲート15の出力はANDゲート52VC接続されて
いる。レジスタ221及び31’kXレジスタといい、
レジスタ210部分には主として数値データが格納され
、レジスタ310部分は主として演算命令やその他のデ
ータが格納される。レジスタ22及び32kYレジスタ
、レジスタ23及び33を退避レジスタMl、 レジス
タ24及び34を退避レジスタM2.レジスタ25及び
35葡退避レジスタM3.レジスタ26及び36r退避
レジスタM4と呼び、データの格納方法はXレジスタと
同様である。演算命令やその他のデータをレジスタ32
のみVC格納する為のタイミング信号(以下タイミング
信号Tと呼ぶ)がANDゲート62及び72の入力に接
続され、ロキーが操作されたという情報信号Δ(以下N
情報と呼ぶ)がANDゲート62の入力に、萱た乗除算
キーが操作された為に以前の加減算のデータ全退避する
という情報信号11 (以下B情報と呼ぶ)がANDゲ
ート720入力に接続され%ANDゲート52,62.
72及び63の出力がOR,ゲート42の入力に接続さ
れ、その出力がレジスタ32の入力VC接続されている
。レジスタ21の出力は演算制御部11及びA、NDゲ
ート52の入力及び表示部12に接続され、レジスタ2
2の出力は演算制御部11及びANDゲート53の入力
に接続され、ANDゲート53の出力は(JRゲート4
3の入力へ、ORゲート43の出力はレジスタ33の入
力へ接続され、レジスタ33の出力はレジスタ23の入
力及び演算制御部11へ接続され、レジスタ23の出力
はAN Dゲート54及び63の入力へ接続され、AN
Dゲート54の出力は(JRゲート440入カへ接続さ
れ、(JRゲート44の出力はレジスタ340入力へH
続され、レジスタ34の出力はレジスタ24の入力へ接
続され、レジスタ24の出力はANI)ゲート55及び
64の入力に接続され、ANDゲ−l−64の出力U 
OI(、ゲート430入力に接続され、ANL)ゲート
55の出力は(JRゲート45の入力へ接続され、OR
ゲート45の出力はレジスタ35の入力VC接続され、
レジスタ35の出力はレジスタ25へ接続され、レジス
タ25の出力はANDゲート56及び65の入力VC接
続され、 ANI)ゲート65の出力1dORゲート4
4の入力へ接続され、ANDゲート56の出力はレジス
タ36の入力へ接続され、レジスタ36の出力はレジス
タ26の入力VC接続され、レジスタ26の出力はAN
Dゲート66の入力に接続され、ANDゲート66の出
力はORゲート45の入力に接続される。
(The output of JR gate 14 is (JR gate 15 and AND
connected to the inputs of gates 53, 54, 55, 56, (J
The output of R gate 15 is connected to AND gate 52VC. They are called registers 221 and 31'kX registers,
The register 210 section mainly stores numerical data, and the register 310 section mainly stores arithmetic instructions and other data. Registers 22 and 32kY registers, registers 23 and 33 as save register M1, registers 24 and 34 as save register M2. Registers 25 and 35 save register M3. Registers 26 and 36r are called save registers M4, and the data storage method is the same as that of the X register. Operation instructions and other data are stored in the register 32.
A timing signal for storing only VC (hereinafter referred to as timing signal T) is connected to the inputs of AND gates 62 and 72, and an information signal Δ (hereinafter referred to as N
An information signal 11 (hereinafter referred to as B information) is connected to the input of the AND gate 720, and an information signal 11 (hereinafter referred to as B information) is connected to the input of the AND gate 62, indicating that all the data of the previous addition/subtraction is to be saved because the multiplication/division key has been operated. %AND gates 52, 62.
The outputs of 72 and 63 are connected to the input of OR gate 42, and the output thereof is connected to the input VC of register 32. The output of the register 21 is connected to the arithmetic control section 11 and A, the input of the ND gate 52, and the display section 12.
2 is connected to the arithmetic control section 11 and the input of AND gate 53, and the output of AND gate 53 is connected to (JR gate 4
The output of the OR gate 43 is connected to the input of the register 33, the output of the register 33 is connected to the input of the register 23 and the arithmetic control section 11, and the output of the register 23 is connected to the input of the AND gates 54 and 63. connected to AN
The output of the D gate 54 is connected to the input of the JR gate 440, and the output of the D gate 54 is connected to the input of the register 340.
The output of register 34 is connected to the input of register 24, the output of register 24 is connected to the inputs of gates 55 and 64, and the output U of AND gate 1-64 is connected to
The output of gate 55 (OI, connected to the input of gate 430, ANL) is connected to the input of JR gate 45, OR
The output of gate 45 is connected to the input VC of register 35,
The output of register 35 is connected to register 25, the output of register 25 is connected to the input VC of AND gates 56 and 65, and the output of gate 65 is 1dOR gate 4.
The output of AND gate 56 is connected to the input of register 36, the output of register 36 is connected to the input VC of register 26, and the output of register 26 is connected to the input of AN
It is connected to the input of D gate 66, and the output of AND gate 66 is connected to the input of OR gate 45.

次に1+2X(3−4X(5+O)) の演算例で各レジスタのデータの移動に着目1−て第2
図に示す。キー人力部10の国数値キーが操作されると
、演算制御部11からOVCVC相当信号106が出力
され、Xレジスタ21に格納される(ステップ1)。
Next, in the calculation example of 1+2X (3-4X (5+O)), we will focus on the movement of data in each register.
As shown in the figure. When the country numeric key of the key operator unit 10 is operated, the OVCVC equivalent signal 106 is output from the arithmetic control unit 11 and stored in the X register 21 (step 1).

次に田加算キーが操作されると、Xレジスタ3工に加算
命令が格納されると同時に信号103が出力されるから
(JRゲート15が動作し、ANI)ゲート52及び(
1%ゲート42を介してXレジスタ21及び31のデー
タがXレジスタ22及び32Vこ転送される(ステップ
2)。
Next, when the addition key is operated, the addition instruction is stored in the
The data in the X registers 21 and 31 is transferred to the X registers 22 and 32V via the 1% gate 42 (step 2).

次VCCJ数値キーが操作されると、ステップ1と同様
にXレジスタVC(2)に相当するデータが格納される
(ステ、プ3)。
When the next VCCJ numeric key is operated, data corresponding to the X register VC(2) is stored as in step 1 (step 3).

次に区乗算キーが操作されると、演算制御部11から信
号101が出力されタイミング信号TVC同期して情報
BがANDゲート72及びORゲート42を介してXレ
ジスタに格納されると同時に、ORゲート14及び15
が動作しているのでXレジスタのデータはA N Dゲ
ート52及びO−Rゲート42?介してXレジスタへ転
送され、XレジスタのデータはANDゲート53及び(
JRゲート43を介してMルジスタへ転送される(ステ
ップ4)。
Next, when the ward multiplication key is operated, the signal 101 is output from the arithmetic control unit 11, and information B is stored in the X register via the AND gate 72 and the OR gate 42 in synchronization with the timing signal TVC. Gates 14 and 15
is operating, so the data in the X register is the AAND gate 52 and OR gate 42? The data in the X register is transferred to the X register via the AND gate 53 and (
It is transferred to the M Lujistar via the JR gate 43 (step 4).

次Vこ旧友括弧キーが操作されると演算制御部11から
信号102が出力されタイミング信号T4ζ同期して情
報ΔがANDゲート62及びORゲート42全介(−で
レジスタ32VC格納されると同時に(JRゲート14
が動作しXレジスタ22及び32のデータはANDゲー
ト53及びORゲート43を介して退避レジスタM1の
23及び33Vこ転送され、Mlの23及び33のデー
タはANDゲート54及びORゲート44?介して退避
レジスタM2の24及び3.[こ転送される(ステップ
5)。
When the next V old friend parenthesis key is operated, the signal 102 is output from the arithmetic control unit 11, and in synchronization with the timing signal T4ζ, the information Δ is stored in the register 32VC through the AND gate 62 and the OR gate 42 (-). JR Gate 14
operates, the data in the X registers 22 and 32 are transferred to the 23 and 33 V of the save register M1 via the AND gate 53 and the OR gate 43, and the data in the 23 and 33 voltages of M1 are transferred to the AND gate 54 and the OR gate 44? 24 and 3 of the save register M2. [This is transferred (Step 5).

次VC(3)数値キー全操作するとステップ1と同様K
 [3] vc相当するデータがXレジスタに格納され
る(ステ、プロ)。
Next VC (3) If you press all the numeric keys, you will get K as in step 1.
[3] Data corresponding to vc is stored in the X register (step, pro).

次に日減算キー全操作するとステップ2と同様に減算命
令がレジスタ31 VC格納されると同時にXレジスタ
21及び31のデータがXレジスタ22及び32Vc転
送される(ステップ7)。
Next, when the day subtraction key is fully operated, the subtraction instruction is stored in the register 31 VC as in step 2, and at the same time the data in the X registers 21 and 31 is transferred to the X registers 22 and 32 VC (step 7).

次VC(4)数値キーが操作されるとメチツブ3と同i
 FCXレジスタ21へ■に相当するデータが格納され
る(ステップ8)。
Next VC (4) When the numeric key is operated, it is the same as Mechitsubu 3.
Data corresponding to ■ is stored in the FCX register 21 (step 8).

次に図乗算キーが操作されるとステップ4と同様に動作
し、XレジスタのデータがMlへ、MlのデータがM2
へ%M2のデータがM3へ転送される(ステップ9)。
Next, when the multiplication key in the figure is operated, the operation is the same as in step 4, the data in the X register goes to Ml, and the data in Ml goes to M2.
%M2 data is transferred to M3 (step 9).

次に1℃左括弧キーが操作されると演算制御部11から
1肖号102が出力され、ステップ5と同様に動作し、
XレジスタのデータがMlへ、MlのデータがM2へ、
M2のデータがM3へ、M3のデータがM4へ転送され
る(ステップ10)。
Next, when the 1°C left parenthesis key is operated, the arithmetic control unit 11 outputs the 1 port number 102, and operates in the same manner as in step 5.
The data in the X register goes to Ml, the data in Ml goes to M2,
The data in M2 is transferred to M3, and the data in M3 is transferred to M4 (step 10).

次Vこ[51数値キーが操作されるとステップ3と同様
VC+33 VC相当するデータがXレジスタンC格納
される(ステップ11)。
When the next V [51 numeric key is operated, data corresponding to VC+33 VC is stored in the X register C (step 11), as in step 3.

次VC田除算キーが操作されると除算命令がレジスタ3
14c格納されると同時vCXレジスタ21及び31の
データがXレジスタ22及び32Vこ転送される(ステ
ップ12)。
When the next VC division key is operated, the division instruction is sent to register 3.
14c is stored, the data in the vCX registers 21 and 31 is simultaneously transferred to the X registers 22 and 32V (step 12).

次VC回数値キーが操作されるとステップ3と同様vc
 U@vこ相当するデータがXレジスタに格納される(
ステップ13)。
When the next VC number key is operated, the VC
Data corresponding to U@v is stored in the X register (
Step 13).

次vc(53右括弧キーが操作されると、Xレジスタの
データ及びXレジスタのデータをもとりこ演算制御部1
1で演算を行なうわけであるが、この演算例では5+O
が演算された時点で不条理演算とな9エラーが発生する
(ステップ14)。
Next vc (53 When the right parenthesis key is operated, the data in the X register and the data in the X register are also retrieved.
The calculation is performed using 1, but in this calculation example, 5+O
When is calculated, an error 9 occurs due to an absurd operation (step 14).

次VcAOオールクリアキーが操作されると演算制御部
11がら信号105が出力される。吏Vこ信号106か
らクリアデータがXレジスタVC送出される。ここでレ
ジスタ33のデータが信号107として演算制御部11
vC伝達される。即ち、イム号107はスタックレジス
タが使用中であることを意味する。ぞして信号107V
C依V演算制御部11からの信号101.102,10
3は送出されない。従ってXレジスタのクリアデータU
、ORゲート15が動作しているのでANIJゲート5
2及びORゲート42を介してYレジスタVC転送され
る・−力信号101,102に依ジORゲート14及び
ANI)ゲート53,54.55,56は動作せず、そ
の結果レジスタMl、M2.M3.M4の状態は変化し
ない(ステツブ15)。
Next, when the VcAO all clear key is operated, a signal 105 is output from the calculation control section 11. Clear data is sent from the signal 106 to the X register VC. Here, the data in the register 33 is sent to the arithmetic control unit 11 as a signal 107.
vC is transmitted. That is, im number 107 means that the stack register is in use. Then signal 107V
Signals 101, 102, 10 from C dependent V calculation control unit 11
3 is not sent. Therefore, the clear data U of the X register
, since OR gate 15 is operating, ANIJ gate 5
2 and the Y register VC is transferred via the OR gate 42. M3. The state of M4 remains unchanged (step 15).

以上説明したようVC,長いgl算式の演算途中でエラ
ーが発生した場合、従来は全てのレジスタゲクリアーし
なければならず、テークも最初から人J1直ぜねばなら
ないという不都合があっ1こ。し2かしなから不発明(
rこよゴ]5は%退避用l/ラスタにテークがある場合
、演算テークだけrクリアーすることで継続して演算が
でき、その効果は絶大である。
As explained above, if an error occurs during the calculation of a VC or long GL formula, conventionally all registers must be cleared, and the take also has to be corrected from the beginning, which is an inconvenience. However, it is uninvented (
5. If there is a take in the % saving l/raster, the calculation can be continued by clearing only the calculation take, and the effect is tremendous.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例ケ示すブロック図である。第
2図は不発明を実施する場合、谷レジスタのデータ移動
孕勝、明゛Tる図である。 lO・・ キー人力部、11 ・・演算制御部%]2・
・・・・表示部、14,15,42,43,44,45
・・・・ORゲー ト、  52. 53. 54. 
55.  !’56゜62.63,64,65,66.
72・・・・・ANL)ゲート、21,22,23,2
4,25,26゜31.32.’33,34,35.3
6・・・・・・レジスタ。 第1 図
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a clear diagram of the data movement of the valley register when implementing the invention. lO... Key human power department, 11... Arithmetic control section %] 2.
...Display section, 14, 15, 42, 43, 44, 45
...OR gate, 52. 53. 54.
55. ! '56゜62.63,64,65,66.
72...ANL) gate, 21, 22, 23, 2
4, 25, 26° 31.32. '33, 34, 35.3
6...Register. Figure 1

Claims (1)

【特許請求の範囲】[Claims] 複数個のデータ退避レジスタ分有し、括弧計算機能及び
加減乗除等の混合計算において加減算よりも乗除算を優
先して計算を行なう卓上型電子計算機において、エラ一
時のクリア動作ケテータ退避レジスタが使用中の場合、
演算レジスタだけをクリアさせ、上記データ退避レジス
タ?保瞳するようVCしlc電子式卓上計算機。
In desktop electronic computers that have multiple data save registers and give priority to multiplication/division over addition/subtraction in parenthesis calculation functions and mixed calculations such as addition, subtraction, multiplication, etc., the digit save register is in use for temporary error clearing operation. in the case of,
Clear only the calculation register and save the above data register? VC and LC electronic desk calculator.
JP4548083A 1983-03-18 1983-03-18 Electronic calculator Pending JPS59170958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4548083A JPS59170958A (en) 1983-03-18 1983-03-18 Electronic calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4548083A JPS59170958A (en) 1983-03-18 1983-03-18 Electronic calculator

Publications (1)

Publication Number Publication Date
JPS59170958A true JPS59170958A (en) 1984-09-27

Family

ID=12720560

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4548083A Pending JPS59170958A (en) 1983-03-18 1983-03-18 Electronic calculator

Country Status (1)

Country Link
JP (1) JPS59170958A (en)

Similar Documents

Publication Publication Date Title
JPS6347874A (en) Arithmetic unit
JPS592060B2 (en) Calculator
US4110831A (en) Method and means for tracking digit significance in arithmetic operations executed on decimal computers
JPS60140422A (en) Arithmetic processing unit
JPS59170958A (en) Electronic calculator
US4135250A (en) System for clearing input data in electronic computer
JP2507183B2 (en) Floating point addition / subtraction unit
JPS6339783Y2 (en)
JPH10198552A (en) Multiplier
JPH0216632A (en) Fixed point number/floating point number converting circuit
JPS5940665Y2 (en) Power calculation control device
JPH021627Y2 (en)
JPH03260856A (en) Electronic equipment with consumption tax calculating function
JPS5812061A (en) Electronic desk top calculator
JPS6127772B2 (en)
JPS5828273Y2 (en) electronic desk calculator
JPS5935265A (en) Electronic calculator
JPS63254525A (en) Dividing device
JPH06168104A (en) Electronic computer
JPS63298469A (en) Electronic calculator
JPH07319822A (en) Minicomputer with checking function
JPS6220026Y2 (en)
JPS57212560A (en) Electronic calculator
JPS62286154A (en) Information processor
JPS5853376B2 (en) Calculation method for calculating discount premium