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
JPS6037515B2 - small electronic calculator - Google Patents
[go: Go Back, main page]

JPS6037515B2 - small electronic calculator - Google Patents

small electronic calculator

Info

Publication number
JPS6037515B2
JPS6037515B2 JP13388677A JP13388677A JPS6037515B2 JP S6037515 B2 JPS6037515 B2 JP S6037515B2 JP 13388677 A JP13388677 A JP 13388677A JP 13388677 A JP13388677 A JP 13388677A JP S6037515 B2 JPS6037515 B2 JP S6037515B2
Authority
JP
Japan
Prior art keywords
signal
regression
register
input
data
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
Application number
JP13388677A
Other languages
Japanese (ja)
Other versions
JPS5466738A (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.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP13388677A priority Critical patent/JPS6037515B2/en
Publication of JPS5466738A publication Critical patent/JPS5466738A/en
Publication of JPS6037515B2 publication Critical patent/JPS6037515B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Complex Calculations (AREA)
  • Calculators And Similar Devices (AREA)

Description

【発明の詳細な説明】 この発明は、回帰計算機能を備えた小型電子式計算機に
関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a small electronic calculator equipped with a regression calculation function.

従来から直線回帰計算機能を備えた小型電子式計算機が
実用化されている。
BACKGROUND ART Small electronic calculators equipped with a linear regression calculation function have been put into practical use.

これら計算機で直線回帰計算を行なうには、直線方程式
y=a+bx …“【1)
の各変数x,yに対応したデータ(x,,y,)(ね,
y2)・・・・・・(xn, yn)をキー操作により
n入力し、所定の演算を実行してデータ数n,i≧・と
いう演算を実行して直線の係数b,y切片aを求める。
To perform linear regression calculations with these calculators, the linear equation y=a+bx..."[1]
The data (x,,y,)(ne,
y2)......Input n of (xn, yn) by key operation, execute the specified calculation, calculate the number of data n, i≧・, and calculate the coefficient b and y-intercept a of the straight line. demand.

更にxの推定値、Yの推定値も求めることができる。し
かしながら、上記の計算機を用いて対数、指数、べき秦
等の回帰計算を行なうには、次のようなきわめてめんど
うなキー操作が必要であった。
Furthermore, an estimated value of x and an estimated value of Y can also be obtained. However, in order to perform regression calculations such as logarithms, exponents, and exponents using the above-mentioned calculators, the following extremely troublesome key operations were required.

即ち、対数回帰計算を行なうには、対数曲線の方程式y
=a+binx ““”(4
}を直線の方程式Y=A+BX
・・・・・・(5)と対応関係を持たせて次の(6
}式の様に変形したデータ(X,Y)を予じめ計算して
入力する必要がある。
That is, to perform logarithmic regression calculation, the equation of the logarithmic curve y
=a+binx ““”(4
} is the straight line equation Y=A+BX
......(5) and the following (6)
} It is necessary to calculate and input the transformed data (X, Y) in advance as shown in the formula.

また、指数回帰計算の場合は、指数曲線の方程式y:a
e蚊 ……{7}を上記{
5}式と対応させ、の様に変形したデータ(X,Y)を
入力し、更に得られた結果A,Bをの様に変形して求ま
ったa,bが求めるy切片及び係数となる。
In addition, in the case of exponential regression calculation, the exponential curve equation y:a
e Mosquito...{7} above {
5}, input the data (X, Y) transformed as shown, and further transform the obtained results A and B as shown, and the obtained a and b become the y-intercept and coefficient to be sought. .

べき乗回帰計算の場合も同様で、べき乗曲線の方程式y
=aXb ……〔1加
を上記■式に対応させ、を入力し、得られたA,Bより a=e^ .・..・.(12)b
=Bを求める必要があった。
The same is true for power regression calculations, where the equation of the power curve y
=aXb... [Make 1 addition correspond to the above formula (■), input, and from the obtained A and B, a=e^ .・.. ..・.. (12)b
It was necessary to find =B.

また、従来より直線回帰以外の回帰計算機能を備えた計
算機も存在するが、そのような計算機では、例えば指数
回帰計算用等の特別なキーを設けてあり、計算機自体が
大型化する等の欠点があった。
Additionally, there are conventional calculators that have regression calculation functions other than linear regression, but such calculators have special keys for exponential regression calculations, for example, and have disadvantages such as increasing the size of the calculator itself. was there.

この発明は上記事情に鑑みて成されたもので、複雑な操
作や各種回帰計算用の特別のキーを必要とせず、直線回
帰計算を行なうときと同じ操作で、対数・指数・べき乗
等の回帰計算を行なうことのできる小型電子式計算機を
提供することを目的とする。
This invention was made in view of the above circumstances, and allows regression calculations such as logarithms, exponentials, powers, etc. to be performed using the same operations as when performing linear regression calculations, without requiring complicated operations or special keys for various regression calculations. The purpose is to provide a small electronic calculator that can perform calculations.

以下、図面を参照してこの発明の一実施例を説明する。Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図に於て、1はこの計算機の動作を制御する各種マ
イクロ命令が記憶されているROMで、ROMアドレス
部2により指定されるアドレスに記憶されているマイク
ロ命令を出力する。このROMIから出力されるマイク
ロ命令は、後述するRAM3の被演算数を記憶している
レジスタの行アドレスを指定する信号Su、演算数を記
憶しているレジスタの行アドレスを指定する信号Fu、
被演算数を記憶しているレジスタの列アドレス或いは処
理が複数列にわたる場合の処理開始列アドレスを指定す
る信号SL、演算数を記憶しているレジスタの列アドレ
ス或いは処理終了列アドレスを指定する信号FL、数値
コードC。、加算命令、減算命令、転送命令等のオペレ
ーションコード0p、現在実行しているマイクロ命令の
次に実行すべきマイクロ命令のアドレスを指定する次ア
ドレス信号Naより成っている。上記次アドレス信号N
aは、アドレス部レジスタ4に供給され、後述する信号
めeにより謙込まれる。そして、このアドレス部レジス
タ4の出力は、上記ROMアドレス部2によりデコード
され上記ROMIにアドレス選択信号として供給される
。また、オペレーションコード○pは、オペレーション
デコーダ5に供給される。このオペレーションデコーダ
5は、上記オペレーションコード○pをデコードして、
この計算機の各種演算を実行する為の制御信号、命令信
号を出力するもので例えば各種ゲート回路の開閉を制御
する制御信号OS,KE,ID,OF及び減算命令SB
、判断命令JU、指定桁長さモード信号M、表示・キー
サンプリング信号OP,等を出力する。上記指定桁長さ
モード信号Mと表示・キーサンプリング信号OP,は、
図示しないタイミング信号発生回路から周期的に出力さ
れるクロックパルス◇,、タイミング信号t,,ら,t
3及び各マイク。命令が実行される期間の最初の1サイ
クル期間則ち、上記タイミング信号t,〜t3が1サイ
クル出力される期間“1”となるスタート指令STとと
もにタイミングデコーダ6に供給されている。なお、上
記タイミング信号発生回路から出力される各タイミング
信号の関係を第2図に示す。タイミング信号t,,t2
,t3はクロックパルスJ,,◇2に同期して順次周期
的に出力される。そしてタイミング信号t,〜t3の1
サイクル毎にタイミング信号?D(=t3・で,)が出
力される。上記タイミングデコーダ6は、上記各信号を
受けて各種タイミング信号ぐa〜ぐc,ta〜tc、議
出し/書込み制御信号R/W及びゲート制御信号CIを
出力する。上記各タイミング信号の論理的関係は、◇a
=t3・中.・〇P, 〇b=t2・〇P, 少。
In FIG. 1, reference numeral 1 denotes a ROM in which various microinstructions for controlling the operation of this computer are stored, and the microinstructions stored in the address specified by the ROM address section 2 are output. The microinstructions output from this ROMI include a signal Su that specifies the row address of a register that stores operands in RAM3, which will be described later, a signal Fu that specifies a row address of a register that stores operands, and a signal Fu that specifies the row address of a register that stores operands.
A signal SL that specifies the column address of the register that stores the operand or the processing start column address when processing spans multiple columns; A signal that specifies the column address of the register that stores the operand or the processing end column address. FL, numerical code C. , an operation code 0p such as an addition instruction, a subtraction instruction, or a transfer instruction, and a next address signal Na that specifies the address of the microinstruction to be executed next to the currently executed microinstruction. Above next address signal N
A is supplied to the address register 4 and is subtracted by a signal e, which will be described later. The output of the address section register 4 is decoded by the ROM address section 2 and supplied to the ROMI as an address selection signal. Further, the operation code ○p is supplied to the operation decoder 5. This operation decoder 5 decodes the above operation code ○p,
It outputs control signals and command signals for executing various calculations of this computer, such as control signals OS, KE, ID, OF and subtraction command SB that control opening and closing of various gate circuits.
, judgment command JU, specified digit length mode signal M, display/key sampling signal OP, etc. are output. The above specified digit length mode signal M and display/key sampling signal OP are as follows:
Clock pulses ◇,, timing signals t,, ra, t periodically output from a timing signal generation circuit (not shown)
3 and each microphone. During the first cycle of the period in which the command is executed, the timing signals t, -t3 are supplied to the timing decoder 6 together with the start command ST which is "1" during the period in which the timing signals t, -t3 are output for one cycle. Incidentally, the relationship between the timing signals output from the timing signal generation circuit is shown in FIG. timing signal t,,t2
, t3 are sequentially and periodically output in synchronization with clock pulses J, , ◇2. and 1 of the timing signal t, ~t3
Timing signal every cycle? D (at =t3.) is output. The timing decoder 6 receives the above signals and outputs various timing signals ga-c, ta-tc, an issue/write control signal R/W, and a gate control signal CI. The logical relationship between the above timing signals is ◇a
=t3・middle.・〇P, 〇b=t2・〇P, Small.

:t3・〇,.MやD=ら・ふ. ta=M・ST+M・上. tb=M・t, tc=MOST である。:t3・○,. M and D = Ra・F. ta=M・ST+M・upper. tb=M・t, tc=MOST It is.

而して、−上記ROMIから出力されるRAM3の行ア
ドレス指定信号Su及びFu‘ま、各々ゲ−ト回路○.
及び○2を介してRAM3の行アドレス入力端子UAに
入力する。
Thus, the row address designating signals Su and Fu' of the RAM3 outputted from the ROMI are respectively connected to the gate circuits ○.
and ○2 to the row address input terminal UA of the RAM3.

上記ゲート回路○,には、タイミング信号t,が直接供
給され、ゲート回路G2には、タイミング信号t.がィ
ンバータ7を介して供給されて、ゲートの開閉制御が行
なわれる。またRAM3の列アドレス或いは処理開始列
アドレス指定信号Sし及び列アドレス或いは処理終了列
アドレス指定信号Fしは、それぞれゲート回路○3及び
04を介してRAM3の列アドレス入力端子LAに入力
する。上記ゲート回路○3,G4はタイミングデコーダ
6から出力されるタイミング信号ta,tbによりそれ
ぞれゲート制御される。また、上記ゲート回路○3から
の出力は、カウン夕8へ供給される。このカウン夕8は
、タイミング信号Jcによりカウント動作を行なうもの
で、タイミング信号◇cが入力される毎に1ずつカウン
タアップする。そして、上記カウンタ8の出力はゲート
回路○5を介してRAM3の列アドレス入力端子LAへ
加えられるとともに、一致回路9の一方の入力端に加え
られる。この一致回路9の他方の入力機にはROMIか
らの上記処理終了列アドレス指定信号Fしが与えられる
。また、この一致回路9にはオペレーションデコーダ5
から出力される指定桁長さモード信号Mがインバーター
0を介して与えられており、このインバータ10の出力
が“1”の時に一致回路9が動作するようになっている
。この一致回路9の一致出力はアンド回路11に加えら
れるとともに、オア回路12を介してフリップフロップ
13に入力される。更にこのフリップフロップ13には
上記桁指定長さモード信号Mがオア回路12を介して与
えられる。このフリップフロップ13は遅延型のフリッ
プフロツプで、タイミング信号中o(=t3・中,)に
同期して入力信号を議込み、クロックパルス?2で出力
し、その出力が上述したスタート指令STとなる。また
、上記指定桁長さモード信号Mは上記アンド回路14に
加えられる。アンド回路11,14にはタイミング信号
◇Dが入力されており、その各々の出力はオア回路15
を介してアドレス部レジスタ4に謙込み信号でeとして
送られる。一方、上記ROMIからの行アドレス指定信
号、列アドレス指定信号により指定されたRAM3内の
領域のデータは、出力端子OUTより並列4ビットのデ
ータとして出力され、タイミング信号ら・0,でゲート
制御されるゲート回路G6を介してラツチ回路16へ送
られるとともに、タイミング信号ら・J,でゲート制御
されるゲート回路G7を介してラッチ回路1 7へ送ら
れる。そして、上記ラツチ回路16の出力は、オペレー
ションデコーダ5から出力されるゲート制御信号mによ
りゲート制御されるゲート回路○8を介してRAM3の
列アドレス入力端子LAへ入力される。更に上記ラッチ
回路16の出力は、オペレーションデコーダ5から出力
されるゲート制御信号OSによりゲート制御されるゲー
ト回路○9を介して演算回路18の入力端子aに供給さ
れる。また上記ラッチ回路17からの出力は、オペレー
ションヂコーダ5から出力されるゲート制御信号OFに
よってゲート制御されるゲート回路G,oを介して演算
回路18の入力端子bに供給されるとともに、バッファ
ー9へ送られる。このバッファ19はタイミング信号?
aに同期して動作し、表示用データを貯えるもので、そ
の出力はデコーダ20を介して表示部21へ送られて表
示される。而して、上記演算回路18からの演算データ
はRAM3の入力端子INへ供給されるとともに、オア
回路22を介してアンド回路23へ加えられ、上記演算
回路18からのキャリー或いはボローはアンド回路24
へ加えられる。上記アンド回路23,24はオペレーシ
ョンデコーダ5から判断命令JUが与えられた際に信号
を出力するもので、その出力信号はアドレス部レジスタ
4に次アドレス変更指令として入力する。また、上記ラ
ッチ回路16からゲ−ト回路○9を介して出力されるデ
ータは、タイミング信号めbに同期して動作するバッフ
ァ25へ入力される。このバッファ25は表示部21の
各表示素子の桁を選択するデータを貯えるもので、この
出力はデコーダ26を介して表示部21へディジット信
号として送られるとともに、キー入力部27へキーサン
プリング信号として送られる。上記キー入力部27から
出力されるキー入力データは、タイミング信号0oに同
期して動作するバッファ2Mこ貯えられ、オペレーショ
ンデコーダ5から出力されるゲート制御信号KEにより
制御されるゲート回路○,.を介して演算回路18の入
力端子aに入力される。また、この入力端子aには、R
OMIから出力される数値コードC。が、ゲート回路○
,2を介して入力される。このゲート回路G,2は、タ
イミングデコーダ6から出力される信号CIによってゲ
ート制御される。次に上記RAM3の構成を第3図を参
照して説明する。
The gate circuit ◯ is directly supplied with the timing signal t, and the gate circuit G2 is directly supplied with the timing signal t. is supplied via the inverter 7 to control the opening and closing of the gate. Further, a column address or processing start column address designation signal S and a column address or processing end column address designation signal F of the RAM 3 are input to the column address input terminal LA of the RAM 3 via gate circuits ○3 and 04, respectively. The gate circuits ◯3 and G4 are gate-controlled by timing signals ta and tb output from the timing decoder 6, respectively. Further, the output from the gate circuit ○3 is supplied to the counter 8. This counter 8 performs a counting operation in accordance with the timing signal Jc, and increments the counter by one each time the timing signal ◇c is input. The output of the counter 8 is applied to the column address input terminal LA of the RAM 3 via the gate circuit ○5, and is also applied to one input terminal of the matching circuit 9. The other input device of the coincidence circuit 9 is supplied with the processing end column address designation signal F from ROMI. The coincidence circuit 9 also includes an operation decoder 5.
A specified digit length mode signal M outputted from the inverter 10 is applied via an inverter 0, and when the output of this inverter 10 is "1", the matching circuit 9 is operated. The coincidence output of the coincidence circuit 9 is applied to an AND circuit 11 and is also input to a flip-flop 13 via an OR circuit 12. Furthermore, the above-mentioned digit designation length mode signal M is applied to this flip-flop 13 via an OR circuit 12. This flip-flop 13 is a delay type flip-flop, which inputs an input signal in synchronization with the timing signal o (=t3, middle,) and receives the clock pulse? 2, and the output becomes the start command ST mentioned above. Further, the specified digit length mode signal M is applied to the AND circuit 14. A timing signal ◇D is input to the AND circuits 11 and 14, and each output is sent to the OR circuit 15.
The signal is sent to the address section register 4 via the address section register 4 as a subtraction signal e. On the other hand, the data in the area in RAM3 designated by the row address designation signal and column address designation signal from the ROMI is output as parallel 4-bit data from the output terminal OUT, and is gate-controlled by the timing signal etc. The signal is sent to the latch circuit 16 via the gate circuit G6, and is also sent to the latch circuit 17 via the gate circuit G7 whose gate is controlled by the timing signal J. The output of the latch circuit 16 is input to the column address input terminal LA of the RAM 3 via a gate circuit ○8 whose gate is controlled by a gate control signal m output from the operation decoder 5. Further, the output of the latch circuit 16 is supplied to the input terminal a of the arithmetic circuit 18 via a gate circuit 9 whose gate is controlled by a gate control signal OS output from the operation decoder 5. Further, the output from the latch circuit 17 is supplied to the input terminal b of the arithmetic circuit 18 via the gate circuit G, o which is gate-controlled by the gate control signal OF output from the operation decoder 5. sent to. Is this buffer 19 a timing signal?
It operates in synchronization with a and stores display data, and its output is sent to the display unit 21 via the decoder 20 and displayed. The calculation data from the calculation circuit 18 is supplied to the input terminal IN of the RAM 3 and is also applied to the AND circuit 23 via the OR circuit 22, and the carry or borrow from the calculation circuit 18 is sent to the AND circuit 24.
added to. The AND circuits 23 and 24 output a signal when the judgment instruction JU is given from the operation decoder 5, and the output signal is inputted to the address section register 4 as a next address change instruction. Further, data outputted from the latch circuit 16 via the gate circuit 9 is inputted to a buffer 25 which operates in synchronization with the timing signal b. This buffer 25 stores data for selecting digits of each display element of the display section 21, and this output is sent to the display section 21 as a digit signal via a decoder 26, and is also sent to the key input section 27 as a key sampling signal. Sent. The key input data output from the key input unit 27 is stored in 2M buffers operating in synchronization with the timing signal 0o, and gate circuits ○, . The signal is input to the input terminal a of the arithmetic circuit 18 via the input terminal a. Moreover, this input terminal a has R
Numeric code C output from OMI. However, the gate circuit○
, 2. This gate circuit G, 2 is gate-controlled by a signal CI output from a timing decoder 6. Next, the configuration of the RAM 3 will be explained with reference to FIG.

このRAM3は上述のように、行アドレス指定信号Su
,Fu、列アドレス指定信号SL,FLによりアドレス
指定され、且つ、議出し/書込み制御信号R/Wが“0
”のとき指定された領域内のデータが出力端子OUTよ
り読出され、またR/Wが“1”のとき指定された領域
内にデー夕が入力端子INより書込まれ、その内部は1
3個のレジス夕で構成されている。第0行から第12行
にわたって順番に、演算表示レジスタAQ1、第1演算
補助レジスタAcc2、第2演算補助レジスタAq3、
直線回帰及び/指数回帰ではX=xを記憶し、対数回帰
及びべき秦回帰では初めxを記憶し所定の演算後X=l
nxを記憶するXデータ記憶用レジスタR1、直線及び
対数回帰ではY=yを記憶し、指数及びべき乗回帰では
初めyを記憶し所定の演算後Y=lnyを記憶するYデ
ータ記憶用レジスタR2、データ数nを記憶するレジス
タM1,2×記憶用レジスタM2、ZX2記憶用レジス
タM3、2Y記憶用レジスタM4、2Y2記憶用レジス
タM5、ヱXY記憶用レジスタM6、Y切片A記憶用レ
ジスタAR、係数B記憶用レジスタBRが設けられてい
る。そして、第0行の第19行にはキーサンプリング用
桁指定カゥンタF,が設けられている。この実施例では
10桁表示を採用しているので、カウンタF,は0〜9
をカウントする。また、第1行の第IS行‘こはキー入
力が存在するときに“1”となるレジスタF2が設けら
れている。更に第5行の第19輪こは後述するモード切
換スイッチMSの状態を記憶するモード記憶レジスタC
が設けられている。このモード記憶レジス夕Cは、スイ
ッチMSが直線回帰計算を指定しているときには“2”
、対数回帰計算を指定しているときには“4”、指数回
帰計算を指定しているときには“8”、べき葵回帰計算
を指定しているときには“12’’を記憶するものであ
る。次に上記キー入力部27の要部の構成を第4図を参
照して説明する。キー入力部27には、第1図に示す如
く直線・対数・指数・べき桑の各回帰計算を指定するモ
ード切換スイッチMS,xブータを入力するキーX。、
yデータを入力するキーYo、xの推定値を求めるキー
x、yの推定値を求めるキーy、定数Aを求めるキーA
K、定数Bを求めるキーBK、その他十,一,×,÷等
のファンクションキーFK、及び置数キーNK等が設け
られている。このキー入力部27とキーサンブリング信
号を供給するデコーダ26とは、例えば第4図の如く構
成されている。即ち、デコ−ダ26からはラインK,K
,,K2…Knに順次サンプリングパルスが出力される
。そして上記ライン均はモード切換スイッチMSを介し
て、モード選択ラインMOO1,MOD2,MOD3,
MOD4に接続されている。このモード選択ラインMO
OI〜MOD4はこのモード選択ラインの下部側に設け
られたラインK,〜Knとともに上下方向に順次配列さ
れ、また、左右方向にはキー操作信号ラインKE1,K
E2,KE4,KE8が順次配列され、上記各ラインで
もつてマトリックス接続が構成されている。このマトリ
ックス構成のうちのラインK,〜KnとラインKE,〜
KE8で構成されるマトリックスの各交点にはキースィ
ッチが配列されている。更に、キー操作信号ラインKE
2は、モ−ド選択ラインMOD1,MOD4に、KE4
はMOD2に、そしてKE8はMOD3,MOD4に各
々ダイオード接続されている。上記のように構成された
実施例の動作は、第5図に示すように、フロツクS,に
示されるキーサンプリング動作、ブロックS2に示され
る暦数動作、ブロックS3に示されるデータ入力動作、
ブロックS4に示されるxの推定値を求める動作、ブロ
ックS5に示されるyの推定値を求める動作等から成っ
ている。
As mentioned above, this RAM 3 has a row address designation signal Su.
, Fu, are addressed by the column address designation signals SL and FL, and the issue/write control signal R/W is “0”.
”, the data in the specified area is read from the output terminal OUT, and when R/W is “1”, the data is written in the specified area from the input terminal IN, and the inside is 1.
It is made up of three registries. In order from the 0th line to the 12th line, the calculation display register AQ1, the first calculation auxiliary register Acc2, the second calculation auxiliary register Aq3,
In linear regression and/exponential regression, X=x is memorized, and in logarithmic regression and power Hata regression, x is initially memorized, and after a predetermined calculation, X=l
A register R1 for storing X data stores nx, a register R2 for storing Y data stores Y=y for linear and logarithmic regression, stores y initially for exponential and power regression, and stores Y=lny after a predetermined calculation; Register M1 for storing data number n, 2× storage register M2, ZX2 storage register M3, 2Y storage register M4, 2Y2 storage register M5, XXY storage register M6, Y-intercept A storage register AR, coefficient A B storage register BR is provided. A key sampling digit designation counter F is provided in the 19th line of the 0th line. In this embodiment, a 10-digit display is used, so the counter F, is 0 to 9.
count. Further, in the first IS line, there is provided a register F2 which becomes "1" when there is a key input. Furthermore, the 19th ring on the 5th row is a mode storage register C that stores the state of the mode changeover switch MS, which will be described later.
is provided. This mode storage register C is set to “2” when switch MS specifies linear regression calculation.
, "4" is stored when logarithmic regression calculation is specified, "8" is stored when exponential regression calculation is specified, and "12'' is stored when power regression calculation is specified.Next. The configuration of the main parts of the key input section 27 will be explained with reference to FIG. 4.The key input section 27 has modes for specifying linear, logarithmic, exponential, and power regression calculations as shown in FIG. Changeover switch MS, key X to input the x booter.
Key Yo for inputting y data, Key x for calculating the estimated value of x, Key y for calculating the estimated value for y, Key A for calculating the constant A.
K, a key BK for obtaining a constant B, other function keys FK such as 10, 1, ×, ÷, etc., and a numeric key NK, etc. are provided. The key input unit 27 and the decoder 26 that supplies the key sampling signal are configured as shown in FIG. 4, for example. That is, from the decoder 26, lines K, K
, , K2...Kn are sequentially output with sampling pulses. Then, the line averages are connected to the mode selection lines MOO1, MOD2, MOD3,
Connected to MOD4. This mode selection line MO
OI~MOD4 are arranged sequentially in the vertical direction together with lines K and ~Kn provided below this mode selection line, and key operation signal lines KE1 and Kn are arranged in the left and right direction.
E2, KE4, and KE8 are arranged in sequence, and each of the above lines forms a matrix connection. Lines K, ~Kn and lines KE, ~ in this matrix configuration
A key switch is arranged at each intersection of a matrix made up of KE8s. Furthermore, the key operation signal line KE
2 is connected to mode selection lines MOD1 and MOD4 by KE4.
is diode-connected to MOD2, and KE8 is diode-connected to MOD3 and MOD4, respectively. As shown in FIG. 5, the operations of the embodiment configured as described above include a key sampling operation shown in block S, a calendar number operation shown in block S2, a data input operation shown in block S3,
It consists of an operation for obtaining an estimated value of x shown in block S4, an operation for obtaining an estimated value for y shown in block S5, etc.

まず、キーサンプリング動作を第6図のフローチャート
を参照して説明する。
First, the key sampling operation will be explained with reference to the flowchart of FIG.

ブロックS,.に於て、RAM3のカウンタF,に“0
”がセットされる。このときの動作は、タイミングデコ
ーダ6から出力される信号CIが“1”となってゲート
回路G.2が開き、ROMIから数値コードC。「0」
が演算回路18を介してRAM3の入力端子IN‘こ入
力される。他方、タイミング信号らが“1”(以下らの
タイミングと表現する)となると、ゲート回路○2が開
き、またこのときタイミング信号tbも“1”なのでゲ
ート回路G4も開く。これによりROMIから行アドレ
ス指定信号Fu「0」と列アドレス指定信号Fし「15
」がそれぞれRAM3の行アドレス入力端子UAと列ア
ドレス入力端子LAに印加され、カウンタF,を指定す
る。またこのときRAM3に入力されている読出し/書
込み制御信号R/Wが“1”(書込み命令)となるので
、カウンタF,に数値コード「0」が書込まれる。次に
、フロックS,2に於て、カウン夕F,の内容が「9」
か否かが判断される。この場合、オペレーションデコー
ダ5から判断命令JU、減算命令SB、ゲート制御信号
OF、指定桁長さモード信号Mが出力され、更にオペレ
ーションデコーダ6からゲート制御信号CIが出力され
る。ちのタイミングでは、ROMIからは行アドレス指
定信号Su及び列アドレス指定信号SLが出力されず。
RAM3は信号R/Wぐ0”)を受けているが読出し動
作は行われない。他方、信号CIが“1”なのでゲート
回路12が開き、ROMIから数値コード「9」が演算
回路18の入力端子aに入力される。らのタイミングで
は、ゲ−ト回路02,G4が開いてROMIから行アド
レス指定信号(以下行アドレスと称す)Fu「0」と列
アドレス指定信号(以下列アドレスと称す)FL「15
」がそれぞれRAM3の行アドレス入力端子UAと列ア
ドレス入力端子LAに入力される。そして、このとき信
号R/Wが“0”となっているので、カウンタF,の内
容が読出される。この論出しデータは、タイミング信号
ら,少,が“1”となった時点に於てゲート回路G7が
開いて、ラッチ回路17に貯えられる。このとき信号O
Fが“1’’なので、ラッチ回路17の内容が演算回路
18の入力端子bに入力される。演算回路18には減算
命令SBが与えられているので、カウソタF,の内容か
ら数値コード「9」が減算される。t3のタイミングで
は、演算回路18から演算結果のデータ及びボローがそ
れぞれオア回路22とアンド回路23,24を介してア
ドレス部レジスタ4に入力される。このときアンド回路
23,24の一方の入力端には判断命令JUがアンド回
路23,24を開いている。データ及びボローがともに
存在しないときには、カウンタF,の内容が「9」に等
しいことを示し、アドレス部レジスタ4は次アドレス信
号Naをそのまま出力し、次に前述のブロックS,.に
はいる。上記データが有るときには、カウンタF,の内
容が「9」に等しくないことを示し、アドレス部レジス
タ4は次アドレス信号Naを変更して出力し、ブロック
S,3に移る。次に、フロツクS,3に於て、カウンタ
F,の内容がバッファ25に転送され、カゥン夕F,の
内容によって示されるAcclの桁の内容(Accl(
F,)と表現する)がバッファ19に転送される。この
場合、オペレーションデコーダ5から出力されるゲート
制御信号OS,OF,IDが“1”となる。ちのタイミ
ングでカウンタF,の内容が読出され、タイミング信号
し・J,が“1”となった時点で上記説出しデータがラ
ッチ回路16に貯えられる。t2のタイミングでは、ゲ
ート回路G2が開いてROMIから行アドレスFu「0
」がRAM3の行アドレス入力端子UAに入力するとと
もに、信号IDが“1”なのでゲート回路G8が開き、
ラッチ回路16の内容すなわちカウンタF,の内容がR
AM3の列アドレス入力様子LAに入力される。このと
き、RAM3に入力されている信号R/Wは“0”とな
っているので、Aの1(F,)が読出され、タイミング
信号t2・J,が“1”となった時点で上記議出しデー
タがラッチ回路17に貯えられる。他方、信号OSが“
1”なので、ゲート回路G9が開いており、タイミング
信号中bが“1”となった時点に於て、ラッチ回路16
の内容がバッファ25に諸込まれる。このバッファ25
に読込まれたカウンタF,の内容は、キーサンプリング
デコーダ26によりキーサンプリング信号となってキー
入力部27に供給されるとともに、桁信号となってて表
示部21に供給される。他方、バッファー9に読込まれ
た。Aの1(F,)の内容は表示用デコーダ2川こより
セグメント信号に変換され、表示部21に供給される。
これにより、表示部21のF,桁にAcc1(F,)の
内容を表示することになる。次にブロックS,4に於て
、カウンタF,の内容がro」か否かが判断される。こ
の判断動作は前述のブロックS,2と同様で、カウンタ
F,の内容が「0」に等しいときには、ブロックS,5
に進む。また「0」に等しくないときには、フロツクS
,7に進む。フロツクS,5に於ては、モード切換スイ
ッチMSの状態がモード記憶レジスタCに謙込まれる。
換言すれば、バッファ28の内容がRAM3中のモード
記憶レジスタCに書込まれる。この場合、オペレーショ
ンデコーダ5から出力される信号KEが“1”となり、
ゲート回路G,.が開く。タイミング信号め。が“1”
となった時点に於て、バッファ28の内容すなわちモー
ド切襖スイッチMSの状態が演算回路18を介してRA
M3の入力端子IMこ印加される。また、このときゲー
ト回路○2,G4が開いているので、ROMIから行ア
ドレスFu「5」及び列アドレスFL「15」がそれぞ
れRAM3の行アドレス入力端子UA及び列アドレス入
力端子LAに入力されるとともに、RAM3に入力され
ている信号R/Wが“1”となっているので、RAM3
のモード記憶用レジスタCにバッファ28の内容すなわ
ちモード切襖スイッチMSの状態(「2」、「4」、「
8」または「12」)が書込まれる。次に、フロツクS
,6に於て、カウンタF,の内容に1を加算する。この
場合、信号CI,OF,Mが“1”、タイミング信号t
aがt,に等しく、タイミング信号tbがt,に等しい
。t,のタイミングでは、ROMIから数値コード「1
」が演算回路18の入力端子aに与えられ、らのタイミ
ングでカウンタF,の内容が読出されて、ゲート回路G
7、ラツチ回路1 7、ゲート回路G,oを介して演算
回路18の入力端子bに与えられる。そしてらのタイミ
ングでカウンタF,の内容と数値コード「1」が加算さ
れ、その演算結果はカウンタF,に書込まれる。このよ
うなブロックS,6の処理が終了すると、フロツクS,
2に於てカウンタF,の内容が「9」か否かが再び判断
される。一方、ブロックS,4に於てカウンタF,の内
容が「0」でないと判断された場合は、ブロックS,7
に於てモード切換スイッチMS以外のキー入力部27中
のキー操作データすなわちバッファ28の内容がRAM
3内のレジスタF2に書込まれる。この場合、オペレー
ションデコーダ5から出力される信号KEが“1”とな
り、ゲート回路G,.が開く。そして、タイミング信号
中oが“1”となった時点において、バッファ28の内
容が演算回路1 8を介してRMM3のレジスタF2に
書込まれる。次に、ブロックS,8に於て、レジスタF
2の内容が「0」か否かが判断することによって、キー
入力データが存在するか否かが判断される。レジスタF
2が「0」であればブロックS,6へ戻り、「0」でな
ければ次のキージヤツジ処理へと進むことになる。次に
、第7図を参照してデータ入力動作を説明する。
Block S, . At this time, the counter F of RAM3 is set to “0”.
" is set. The operation at this time is that the signal CI output from the timing decoder 6 becomes "1", the gate circuit G.2 opens, and the numerical code C. "0" is output from the ROMI.
is inputted to the input terminal IN' of the RAM 3 via the arithmetic circuit 18. On the other hand, when the timing signals become "1" (expressed as the following timings), the gate circuit 2 opens, and since the timing signal tb is also "1" at this time, the gate circuit G4 also opens. As a result, the row address designation signal Fu "0" and the column address designation signal F "15" are output from ROMI.
'' are applied to the row address input terminal UA and column address input terminal LA of the RAM 3, respectively, to designate the counter F,. Also, at this time, the read/write control signal R/W input to the RAM 3 becomes "1" (write command), so a numerical code "0" is written into the counter F. Next, in the flock S,2, the content of the counter F, is "9".
It is determined whether or not. In this case, the operation decoder 5 outputs the judgment instruction JU, the subtraction instruction SB, the gate control signal OF, and the specified digit length mode signal M, and the operation decoder 6 further outputs the gate control signal CI. At this timing, the row address designation signal Su and the column address designation signal SL are not output from the ROMI.
The RAM3 receives the signal R/W (0"), but no read operation is performed. On the other hand, since the signal CI is "1", the gate circuit 12 is opened, and the numerical code "9" is input from the ROMI to the arithmetic circuit 18. It is input to terminal a. At these timings, the gate circuits 02 and G4 open and the row address designation signal (hereinafter referred to as row address) Fu "0" and column address designation signal (hereinafter referred to as column address) FL "15" are sent from ROMI.
'' are input to the row address input terminal UA and column address input terminal LA of the RAM 3, respectively. Since the signal R/W is "0" at this time, the contents of the counter F are read out. This logic data is stored in the latch circuit 17 by opening the gate circuit G7 at the time when the timing signal EL becomes "1". At this time, the signal O
Since F is "1", the contents of the latch circuit 17 are input to the input terminal b of the arithmetic circuit 18. Since the arithmetic circuit 18 is given the subtraction instruction SB, the numerical code " 9” is subtracted. At timing t3, the data and borrow of the calculation result from the calculation circuit 18 are input to the address register 4 via the OR circuit 22 and AND circuits 23 and 24, respectively. At this time, the judgment instruction JU opens the AND circuits 23 and 24 at one input terminal of the AND circuits 23 and 24. When neither data nor borrow exists, the contents of the counter F, indicate that it is equal to "9", the address section register 4 outputs the next address signal Na as it is, and then the blocks S, . Enter. When the above data exists, it indicates that the contents of the counter F, are not equal to "9", the address section register 4 changes and outputs the next address signal Na, and the process moves to block S,3. Next, in the block S,3, the contents of the counter F, are transferred to the buffer 25, and the contents of the digit of Accl (Accl(
F,)) is transferred to the buffer 19. In this case, the gate control signals OS, OF, and ID output from the operation decoder 5 become "1". At a later timing, the contents of the counter F, are read out, and the output data is stored in the latch circuit 16 when the timing signal J becomes "1". At timing t2, the gate circuit G2 opens and the row address Fu'0 is transferred from the ROMI.
" is input to the row address input terminal UA of RAM3, and since the signal ID is "1", the gate circuit G8 is opened.
The contents of the latch circuit 16, that is, the contents of the counter F, are R
It is input to the column address input state LA of AM3. At this time, since the signal R/W input to RAM3 is "0", 1 (F,) of A is read out, and when the timing signal t2・J, becomes "1", the above The proposal data is stored in the latch circuit 17. On the other hand, the signal OS “
1", the gate circuit G9 is open, and at the time when b in the timing signal becomes "1", the latch circuit 16
The contents of are loaded into the buffer 25. This buffer 25
The contents of the counter F read in are supplied to the key input unit 27 as a key sampling signal by the key sampling decoder 26, and are supplied to the display unit 21 as a digit signal. On the other hand, it was read into buffer 9. The contents of 1(F,) of A are converted into segment signals by the display decoder 2 and supplied to the display section 21.
As a result, the contents of Acc1(F,) are displayed in the F digit of the display section 21. Next, in block S, 4, it is determined whether the content of counter F, is "ro". This judgment operation is similar to the block S,2 described above, and when the content of the counter F, is equal to "0", the block S,5
Proceed to. Also, when it is not equal to "0", the floating block S
, proceed to 7. In the block S,5, the state of the mode changeover switch MS is stored in the mode storage register C.
In other words, the contents of buffer 28 are written to mode storage register C in RAM3. In this case, the signal KE output from the operation decoder 5 becomes "1",
Gate circuit G, . opens. Timing signal. is “1”
At this point, the contents of the buffer 28, that is, the state of the mode switch
The input terminal IM of M3 is applied. Also, since gate circuits ○2 and G4 are open at this time, row address Fu "5" and column address FL "15" are input from ROMI to row address input terminal UA and column address input terminal LA of RAM3, respectively. At the same time, since the signal R/W input to RAM3 is "1", RAM3
The contents of the buffer 28, that is, the state of the mode switching switch MS ("2", "4", "
8” or “12”) is written. Next, Frock S
,6, 1 is added to the contents of the counter F,. In this case, the signals CI, OF, and M are "1", and the timing signal t
a is equal to t, and timing signal tb is equal to t. At timing t, the numerical code “1” is sent from ROMI.
'' is applied to the input terminal a of the arithmetic circuit 18, the contents of the counter F, are read out at the timing of
7, latch circuit 1 It is applied to input terminal b of the arithmetic circuit 18 via 7 and gate circuits G and o. At that timing, the contents of counter F, and the numerical code "1" are added, and the result of the operation is written to counter F. When the processing of block S, 6 is completed, blocks S,
At step 2, it is determined again whether the content of the counter F is "9" or not. On the other hand, if it is determined that the content of the counter F, in block S,4 is not "0", block S,7
In this case, the key operation data in the key input section 27 other than the mode changeover switch MS, that is, the contents of the buffer 28 is stored in the RAM.
3 is written to register F2. In this case, the signal KE output from the operation decoder 5 becomes "1", and the gate circuits G, . opens. Then, at the point in time when o in the timing signal becomes "1", the contents of the buffer 28 are written into the register F2 of the RMM 3 via the arithmetic circuit 18. Next, in block S,8, register F
By determining whether or not the content of 2 is "0", it is determined whether or not key input data exists. register F
If 2 is "0", the process returns to block S, 6; if it is not "0", the process proceeds to the next key change process. Next, the data input operation will be explained with reference to FIG.

xデータ入力用キーXoがブロックS,で検出されると
、フロックS2,に進み、Acclの内容すなわちxデ
ー夕をXデータ記憶用レジスタRIに転送する。この場
合、信号06が“1”、信号Mが“0”、タイミング信
号ta=ST,tc=STである。そして、t,のタイ
ミングで行アドレスSu「0」と列アドレスFu「0」
によりAcclの第0桁の内容が読出され、タイミング
信号t,,少,が“1”となった時点でゲート回路G6
が開き、上記議出しデータがラッチ回路16に貯えられ
る。t2のタイミングで、ゲート回路G2が開いてRO
MIから行アドレスFu「3」がRAM3の行アドレス
入力端子UAに入力される。他方、ROMIから列アド
レスFL「14」が出力されるが、タイミング信号tb
が“0”なのでゲート回路○4が開かず、RAM3の列
アドレス入力端子LAには入力されない。そのかわりに
、タイミング信号taが“1”なのでゲート回路G3が
開いて列アドレスSL「0」がRAM3の列アドレス入
力端子LAに入力される。従ってXデータ記憶用レジス
タRIの第0桁の内容が読出され、タイミング信号ら・
J,が“1”となった時点に於てゲート回路G7が開い
て上記読出しデータがラッチ回路17に貯えられる。こ
のとき、信号OFが“0”なのでラッチ回路17の内容
は演算回路18の入力端子bに印加されない。他方、信
号OSが“1”なのでゲ−ト回路G,。が開いている。
従ってラッチ回路16の内容すなわちAcclの第0桁
の内容が演算回路18の入力端aに供給される。t3の
タイミングでは、上述の様に演算回路18に入力された
Acclの第0桁の内容はRAM3の入力端子INに供
給される。このとき、信号R/Wは“1”となっており
、またRAM3の行アドレス入力端子UA及び列アドレ
ス入力端子LAには、ROMIからそれぞれ行アドレス
Fu「3」及び列アドレスSL「0」が与えられている
ので、上記Aは1の第0桁の内容はしジスタRIの第0
桁に書込まれる。そして、タイミング信号◇cが“1”
となると、カウンタ8が1つカウントアップする。次の
サイクルのt,のタイミングになると、ゲート回路G,
が開き、ROMIから行アドレスSu「0」がRAM3
の行アドレス入力端子UAに供給される。他方、タイミ
ング信号taが“0”となるのでゲート回路03が閉じ
、タイミング信号tcが“1”となり、ゲート回路G5
が開く。そしてカウンタ8の内容「1」がRAM3の列
アドレス入力端子LAに入力される。これにより、Ac
c1の第1桁の内容が読出され、タイミング信号t.・
ぐ,が“1”となった時点に於てゲート回路○6が開き
、上記議出しデータがラッチ回路16に貯えられる。次
にt2のタイミングでは、前回と同様にしてカウンタ8
の計数値「1」がRAM3の列アドレス入力端子LAに
入力される。そしてt3のタイミングで上記AccIの
第1桁の内容はしジスタRIの第1桁に書き込まれる。
更に、タイミング信号?cが“1”となると、カウンタ
8が1つカウントアップしてその計数値を「2」にする
。以下、1サイクル(t,〜t3)毎に、カウンタ8の
計数値を増加させ、上記動作が繰り返される。そして、
カウン夕8の計数値がROMIの列アドレスFL「14
」に等しくなると、一致回路9が一致信号を出力する。
そして、タイミング信号め。(=ら・?,)が“1”と
なると、上記一致信号はアンド回路11を介してアドレ
ス部レジスタ4に印加されることにより、ROMIから
出力されている次アドレス信号Naがこのアドレス部レ
ジスタ4に書込まれ、次のステップに進む。次に、ブロ
ックS23に於て、モード記憶用レジス夕Cの内容が判
定され、モード切換スイッチMSが直線回帰計算、対数
回帰計算、指数回帰計算、べき乗回帰計算のいずれを指
定しているかが判断される。この場合、オペレーション
デコーダ5から判断命令JU及び減算命令SBが出力さ
れ、また信号CI,OF,Mが‘‘1”である。そして
モード記憶用レジスタCの内容を数値コード「4」から
減算し、その結果、データ及びボローが共にないときに
は、モード記憶用レジスタCの内容が「4」に等しいの
で、モード切襖スイッチMSは対数回帰計算を指示して
いることが判別される。このときには、ブロックS24
に於てレジスタRIの内容の自然対数を求める演算が行
なわれる。また、上記データは出力されるがボロ一世力
されないときには、これはモード記憶用レジスタCの内
容が「4」より小さいことを意味し、これによりモード
切襖スイッチMSは直線回・婦計算を指示していること
が判別される。これに応じてアドレス部レジスタ4は次
アドレス信号Naを変更し、ブロックS27が実行され
てキー操作により入力されたそのままのデータx,yに
より演算が行なわれる。更にまた、上記減算結果にデー
タ、ボローの双方が出力された場合は、モード記憶用レ
ジスタCの内容が「4」よりも大きいことを意味し、こ
れによりモード切換スイッチMSが指数またはべき乗回
帰計算を指定していることが判別される。これに応じて
、アドレス部レジスタ4は次アドレス信号Naを変更し
、フロックS25に進む。ブロックS25ではYデータ
記憶用レジスタR2の内容の自然対数を求める演算が行
われる。そして、次にブロックS蜜に於てモード記憶用
レジスタCの内容が「8」か否かが判断される。モード
記憶用レジスタCの内容が「8」に等しいときには、モ
ード切換スイッチMSが指数回帰計算を指定しているこ
とが判別される。従って、次にブロックS27に於てキ
ー入力されたままのxデー夕と、自然対数をとられたY
データ(lny)を使用して演算が行なわれる。また、
モード記憶用レジスタCの内容が「8」に等しくないと
きには、モード切換スイッチMSはべき柔回帰計算を指
定していることが判別される。従って次はブロックS鉛
に於てレジスタRIの内容の自然対数が求められる。そ
して次に、ブロックS27に於て自然対数のとられたデ
ータX,Y(lnx,lny〉を使用し0て演算が行な
われる。次に、第8図を参照して定数aの算出動作を説
明する。
When the x-data input key Xo is detected in block S, the process proceeds to block S2, where the contents of Accl, that is, the x-data, are transferred to the X-data storage register RI. In this case, the signal 06 is "1", the signal M is "0", and the timing signals ta=ST, tc=ST. Then, at timing t, the row address Su is set to ``0'' and the column address Fu is set to ``0''.
The content of the 0th digit of Accl is read out, and when the timing signal t,, low, becomes "1", the gate circuit G6
is opened, and the above-mentioned proposal data is stored in the latch circuit 16. At timing t2, gate circuit G2 opens and RO
Row address Fu "3" is input from MI to row address input terminal UA of RAM3. On the other hand, column address FL "14" is output from ROMI, but timing signal tb
Since is "0", the gate circuit ○4 is not opened, and no input is made to the column address input terminal LA of the RAM3. Instead, since the timing signal ta is "1", the gate circuit G3 is opened and the column address SL "0" is input to the column address input terminal LA of the RAM3. Therefore, the contents of the 0th digit of the X data storage register RI are read out, and the timing signal etc.
When J, becomes "1", the gate circuit G7 is opened and the read data is stored in the latch circuit 17. At this time, since the signal OF is "0", the contents of the latch circuit 17 are not applied to the input terminal b of the arithmetic circuit 18. On the other hand, since the signal OS is "1", the gate circuit G,. is open.
Therefore, the contents of the latch circuit 16, that is, the contents of the 0th digit of Accl, are supplied to the input terminal a of the arithmetic circuit 18. At timing t3, the contents of the 0th digit of Accl input to the arithmetic circuit 18 as described above are supplied to the input terminal IN of the RAM 3. At this time, the signal R/W is "1", and the row address Fu "3" and column address SL "0" are respectively sent from the ROMI to the row address input terminal UA and column address input terminal LA of the RAM3. Since the above A is the content of the 0th digit of 1, the content of the 0th digit of register RI is
written to the digit. Then, the timing signal ◇c is “1”
Then, the counter 8 counts up by one. At timing t of the next cycle, the gate circuit G,
is opened, and the row address Su “0” is transferred from ROMI to RAM3.
is supplied to the row address input terminal UA of. On the other hand, since the timing signal ta becomes "0", the gate circuit 03 is closed, and the timing signal tc becomes "1", so that the gate circuit G5
opens. Then, the content "1" of the counter 8 is input to the column address input terminal LA of the RAM 3. This allows Ac
The contents of the first digit of c1 are read and the timing signal t.・
At the time when the signal becomes "1", the gate circuit ○6 is opened and the above-mentioned proposal data is stored in the latch circuit 16. Next, at timing t2, the counter 8 is
The count value "1" is input to the column address input terminal LA of the RAM3. Then, at timing t3, the contents of the first digit of AccI are written to the first digit of register RI.
Also, timing signals? When c becomes "1", the counter 8 counts up by one and makes the count value "2". Thereafter, the count value of the counter 8 is increased every cycle (t, to t3), and the above operation is repeated. and,
The count value of counter 8 is ROMI column address FL "14"
'', the coincidence circuit 9 outputs a coincidence signal.
And timing signals. When (=ra・?,) becomes "1", the coincidence signal is applied to the address section register 4 via the AND circuit 11, so that the next address signal Na output from the ROMI is applied to this address section register. 4 and proceed to the next step. Next, in block S23, the contents of the mode storage register C are determined, and it is determined whether the mode changeover switch MS specifies linear regression calculation, logarithmic regression calculation, exponential regression calculation, or power regression calculation. be done. In this case, the operation decoder 5 outputs the judgment instruction JU and the subtraction instruction SB, and the signals CI, OF, and M are ``1''.Then, the contents of the mode storage register C are subtracted from the numerical code ``4''. As a result, when there is neither data nor borrow, the content of the mode storage register C is equal to "4", so it is determined that the mode switching switch MS is instructing logarithmic regression calculation. At this time, block S24
An operation is performed to obtain the natural logarithm of the contents of register RI. In addition, when the above data is output but not output, this means that the content of the mode storage register C is smaller than "4", and the mode switching switch MS instructs linear calculation. It is determined that the In response, the address section register 4 changes the next address signal Na, block S27 is executed, and an operation is performed using the data x, y as they are inputted by the key operation. Furthermore, if both data and borrow are output as the result of the above subtraction, it means that the content of the mode storage register C is greater than "4", and this causes the mode selector switch MS to switch to exponential or power regression calculation. is specified. In response, the address section register 4 changes the next address signal Na, and the process advances to block S25. In block S25, an operation is performed to obtain the natural logarithm of the contents of the Y data storage register R2. Then, in block S, it is determined whether the content of mode storage register C is "8" or not. When the content of the mode storage register C is equal to "8", it is determined that the mode changeover switch MS specifies exponential regression calculation. Therefore, next in block S27, the x data that is still being keyed and the natural logarithm of Y
An operation is performed using the data (lny). Also,
When the content of the mode storage register C is not equal to "8", it is determined that the mode changeover switch MS specifies the power-soft regression calculation. Therefore, next, in block S, the natural logarithm of the contents of register RI is determined. Next, in block S27, an operation is performed using the natural logarithmized data X, Y (lnx, lny>).Next, referring to FIG. explain.

まず、ブ。ツクSのに於て、なる演算が行なわれる。First of all, bu. In the test S, the following calculations are performed.

次に、ブロックS32にてモード記憶用レジスタCが「
4」に等しいか否かが判断される。モード記憶用レジス
タCの内容が「4」に等しいか或いは4・さし、ときに
は、モード切換スイッチMSが直線回帰計算か或いは指
数回帰計算を指定していることを意味するので、次にブ
ロックS松に於て、ブロックS3,で求められたAを使
用してeのA秦が求められ、それがAcclに書込まれ
る。そしてAKキーを操作すると表示部21にて表示さ
れる。これが求めるべきaである。なお、定数bに関し
てはどの回帰計算に於てもにより得られたBがそのまま
bとして使用でき、BKキーを操作することによって表
示される。
Next, in block S32, the mode storage register C is set to "
4" is determined. If the content of the mode storage register C is equal to or less than 4, this means that the mode changeover switch MS specifies linear regression calculation or exponential regression calculation, so next block S At Matsu, A Qin of e is determined using A determined in block S3, and it is written to Accl. Then, when the AK key is operated, the information is displayed on the display section 21. This is the a that should be found. Regarding the constant b, the B obtained by can be used as b in any regression calculation, and is displayed by operating the BK key.

次に、yの推定値を求める動作を第9図を参照して説明
する。xのデータ入力後Yキーを操作すると、ブロック
S4,にはいり、モード記憶用レジスタCの内容が「4
」に等しいか否かが判断される。そして、モード記憶用
レジスタCの内容が「4」より小さいときには、モード
切換スイッチMSが直線回帰計算を指定していることを
意味するので、次にブロックS42に於てAcclの内
容がそのままレジスタR,に転送される。そして、ブロ
ックS45に於て、キー入力されたxデー夕をそのまま
使用してYの推定値が求められる。また、モード記憶用
レジス夕Cの内容が「4」に等しいか大きいときには、
モード切換スイッチMSが対数、指数、べき柔のいずれ
かの回帰計算を指定していることを意味する。そしてこ
の場合は更にブロックS43にてモ−ド記憶用レジスタ
Cの内容が「8」に等しいか杏かを判断する。モード記
憶用レジスタCの内容が「8」に等しいときには、モー
ド切換スイッチMSが指数回帰計算を指定していること
になり、この場合、ブ。ックS42に於てA的1の内容
がレジスタRIに転送される。次いでブロックS45に
於て、キー入力されたxデー夕をそのまま使用してYの
推定値が求められる。また、モード記憶用レジスタCの
内容が「8Jに等しくないと判断された場合は、モード
切換スイッチMSが対数またはべき黍回帰計算を指定し
ていることになり、この場合、ブロックS44に於てA
cclの内容の自然対数が求められてレジスタRIに書
き込まれる。そして、フロックS45‘こ於て、キー操
作により入力されたxデー夕の自然対数をとった×を用
いてYの推定値が求められる。次に、フロツクS46に
於て、モード記憶用レジスタCの内容が「4」か否かが
再度判断される。そして「4」より4・さし、か等しい
ときは直線或いは対数回帰計算であるから、70ックS
47に於て、レジスタR2に記憶されているYの推定値
をそのままAQIへ転送し、求める推定値yとして表示
される。またブロックS46に於てモード記憶用レジス
タCの内容が「4」より大きいと判断された場合は、指
数或いはべき黍回帰計算であるから、フロツクS48に
於て上記しジスタR2の内容のェクスポネンシャルをと
り、得られたe(R2)をAに1に転送し、表示する。
これが求めるべき推定値yとなる。次に、xの推定値を
求める動作を第10図を参照して説明する。
Next, the operation for determining the estimated value of y will be explained with reference to FIG. If you operate the Y key after inputting the data x, you will enter block S4, and the contents of mode storage register C will be "4".
” is determined. When the content of the mode storage register C is smaller than "4", it means that the mode changeover switch MS specifies linear regression calculation, so next in block S42, the content of Accl is directly stored in the register R. , will be forwarded to. Then, in block S45, the estimated value of Y is determined using the key-input x data as is. Furthermore, when the contents of the mode storage register C are equal to or greater than "4",
This means that the mode changeover switch MS specifies one of logarithmic, exponential, and power regression calculations. In this case, it is further determined in block S43 whether the content of the mode storage register C is equal to "8" or not. When the content of the mode storage register C is equal to "8", it means that the mode changeover switch MS is specifying exponential regression calculation, and in this case, B. At step S42, the contents of A-1 are transferred to register RI. Next, in block S45, the estimated value of Y is determined using the key-input x data as is. In addition, if it is determined that the content of the mode storage register C is not equal to "8J," it means that the mode changeover switch MS specifies logarithm or power regression calculation, and in this case, in block S44, A
The natural logarithm of the contents of ccl is determined and written to register RI. Then, in block S45', an estimated value of Y is obtained using x, which is obtained by taking the natural logarithm of the x data input by key operation. Next, in block S46, it is again determined whether the content of the mode storage register C is "4". If 4 is equal to 4, then it is a linear or logarithmic regression calculation, so 70xS
At step 47, the estimated value of Y stored in the register R2 is directly transferred to AQI and displayed as the estimated value y. If it is determined in block S46 that the content of the mode storage register C is greater than "4", the calculation is an exponential or power-mill regression calculation, so the above-mentioned check of the content of the register R2 is performed in block S48. Take the sponential, transfer the obtained e(R2) to 1 in A, and display it.
This becomes the estimated value y to be found. Next, the operation for determining the estimated value of x will be explained with reference to FIG.

yのデータ入力後Xキーを操作すると、フロックS5,
にはいり、モード記憶用レジスタCの内容が「4」に等
しいか否かが判断される。そして、「4」に等しいか或
いはこれより小さいときには、ブロックS52に進んで
Acc1の内容をそのままレジスタR2に転送する。ま
た上記モード記憶用レジスタCの内容が「4」より大き
いときは、ブロックS53に進んでAcclの内容の自
然対数を求めてレジスタR2に転送する。そして、ブロ
ックミ4でレジスタR2の内容を用いてXの推定値を求
め、求まった推定値はしジスタRIに記憶される。次に
ブロックS55へ進み、モード記憶用レジスタCの内容
を「4」と等しいかどうか判定する。「4」より小さい
場合はブロックS57へ進んでレジスタRIの内容をそ
のままAcclに転送し、「4」と等しいかこれより大
きい場合はブロックS56で再度モード記憶用レジスタ
Cの内容を「8」と比較する。ここで「8」と等しい場
合は上記ブロックS57へ進み、「8」より大きいと判
断された場合にブロックS58へ進んで、レジスタRI
の内容のェクスポネンシヤルをとって、Acclへ転送
する。そして、このAcclの内容を表示し、これが求
めるべき推定値xとなる。第11図は、データx,,y
,,x2,y2として2,3,3,4を入力したとき及
び、y=5を入力後、xの推定値を求めるキー×を操作
したときのRAM3中の各レジスタの記憶内容を示すも
のである。図中、2,3及び3,4データ入力とある欄
は、yデータ「3」及び「4」を入力し、所定の演算を
実行した後の各レジスタの内容を示し、またyに5入力
後Xキー押の欄は、Xキー操作後所定の演算を実行した
後の各レジスタの内容を示したものである。なお、上記
実施例では、直線、対数、指数及びべき秦回帰計算を行
なうものとしたが、この発明はこれ以外の回帰計算にも
適用し得る。
If you operate the X key after inputting the data of y, the block S5,
Then, it is determined whether the contents of the mode storage register C are equal to "4". If it is equal to or smaller than "4", the process advances to block S52 and the contents of Acc1 are transferred as they are to register R2. If the content of the mode storage register C is greater than "4", the process proceeds to block S53, where the natural logarithm of the content of Accl is calculated and transferred to the register R2. Then, in block 4, an estimated value of X is obtained using the contents of register R2, and the obtained estimated value is stored in register RI. Next, the process advances to block S55, where it is determined whether the contents of the mode storage register C are equal to "4". If it is smaller than "4", the process advances to block S57 and the contents of register RI are transferred to Accl as they are; if it is equal to or larger than "4", the contents of mode storage register C are changed to "8" again in block S56. compare. If it is equal to "8", the process proceeds to block S57, and if it is determined to be greater than "8", the process proceeds to block S58, where the register RI
The exponential of the contents is taken and transferred to Accl. Then, the contents of this Accl are displayed, and this becomes the estimated value x to be obtained. Figure 11 shows data x,,y
,, indicates the memory contents of each register in RAM3 when 2, 3, 3, 4 are input as x2, y2, and when y = 5 is input and the key × to obtain the estimated value of x is operated. It is. In the figure, the columns labeled 2, 3 and 3, 4 data input indicate the contents of each register after inputting y data "3" and "4" and executing a predetermined operation, and 5 inputs for y. The column after pressing the X key shows the contents of each register after performing a predetermined operation after pressing the X key. In the above embodiment, linear, logarithmic, exponential, and power-hata regression calculations are performed, but the present invention can also be applied to other regression calculations.

また、上記実施例では、直線回帰計算の計算手順を記憶
装置に記憶させておき、これを基準として他の回帰計算
の変数データを変形しているが、これに限定されず、例
えば対数回帰計算の計算手順を予め記憶しておき、これ
を基準として他の回帰計算の変数データを変形してもよ
い。
In addition, in the above embodiment, the calculation procedure for linear regression calculation is stored in the storage device, and variable data for other regression calculations is transformed using this as a reference. However, this is not limited to this, and for example, logarithmic regression The calculation procedure may be stored in advance, and variable data for other regression calculations may be modified using this as a reference.

また、上言己実施例では、直線、対数、指数、べき乗回
帰計算に対応させてそれぞれモード記憶用レジスタCに
2,4,8,12を記憶させているが、この値に限定さ
れるものではない。
In addition, in the above embodiment, 2, 4, 8, and 12 are stored in the mode storage register C in correspondence with linear, logarithmic, exponential, and power regression calculations, but the values are limited to these values. isn't it.

また、上記実施例では、モード記憶用レジスタをRAM
中に設けたが、別に設けてもよい。
Further, in the above embodiment, the mode storage register is RAM.
Although it is provided inside, it may be provided separately.

また、上記実施例では、RAM方式を採用しているが、
これはシフトレジスタ方式等を採用しても実現できる。
また、上記実施例では、回帰計算の種類を設定する回帰
モード設定手段としてスライドスイッチを採用している
が、これに限定されるものではなく、例えば押金ロスイ
ッチ等でも差支えない。
In addition, in the above embodiment, a RAM method is adopted, but
This can also be achieved by adopting a shift register method or the like.
Further, in the above embodiment, a slide switch is used as the regression mode setting means for setting the type of regression calculation, but the present invention is not limited to this, and a push-button rotor switch or the like may also be used.

更に、キーマトリクスを選択することにより回帰モード
を選択するのではなく、例えば、キー金ロとカウンター
を設け、このカウンタをキー操作毎に状態を変化させ、
回帰モードを設定しても良い。以上の説明から明らかな
様に、この発明は、回帰モード設定手段により指定され
る回帰計算の種類に応じて、例えばキーボード等の入力
装置から入力されたデータを計算機内部で自動的に変形
し、この変形データを用いて予め記憶されている所定の
回帰計算手段(例えば直線回帰計算)を実行して所望の
回帰計算を行なうものであるから、従来の様にデータ入
力前にめんどうな計算操作を行ない、また出力されたデ
ータから計算を行なって所望の結果を得るという極めて
めんどうなキー操作作業を必要とせず、モード切換スイ
ッチを切換えるのみで、所定の回帰計算と同一のキーを
用い、同一の操作により、種々の回帰計算を行なうこと
が可能で、キー操作上極めて簡単で信頼性に富む計算機
が提供できる。また、各種回帰計算用の特別なキーや、
特別なマイクロプログラムを装備していないため、計算
機の小型化が計れる等種々の利点を有する。
Furthermore, instead of selecting the regression mode by selecting a key matrix, for example, a key counter and a counter are provided, and the state of this counter is changed every time a key is operated.
A regression mode may also be set. As is clear from the above description, the present invention automatically transforms data input from an input device such as a keyboard within a computer according to the type of regression calculation specified by the regression mode setting means. Since this deformed data is used to execute a pre-stored regression calculation means (for example, linear regression calculation) to perform the desired regression calculation, there is no need to perform troublesome calculation operations before data input as in the past. There is no need for the extremely troublesome key operation work of performing calculations from the output data and obtaining the desired results, just by switching the mode selector switch, using the same keys as for the predetermined regression calculation, and performing the same calculations. By operation, it is possible to perform various regression calculations, and it is possible to provide a highly reliable calculator that is extremely simple in terms of key operations. In addition, special keys for various regression calculations,
Since it is not equipped with a special microprogram, it has various advantages such as being able to downsize the computer.

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

第1図はこの発明による小型電子式計算機の一実施例の
回路構成を示すブロック図、第2図は上記実施例で使用
されるタイミング信号の様子を示すタイムチャート、第
3図は上記実施例のRAM3の一構成例を示す図、第4
図は上言己実施例のキー入力部の主要部の構成例を示す
図、第5図は上記実施例の動作全体を示すフロ−チャー
ト、第6図は上甑実施例の表示及びキーサンプリング動
作を示すフローチャート、第7図は上記実施例のデータ
入力動作を示すフローチャート、第8図は上記実施例の
定数Aを求める動作を示すフローチャート、第9図は上
記実施例のyの推定値を求める動作を示すフローチャー
ト、第10図は上記実施例のxの推定値を求める動作を
示すフローチャート、第11図は上記実施例に特定のデ
ータを入力して動作させたときのRAM3中の各レジス
タの内容を示す状態図である。 1・・…・ROM、2・…・・ROMアドレス部、3・
・・・・・RAM、4・・・…アドレス部レジスタ、5
・・・・・・オペレーションデコーダ、6……タイミン
グデコーダ、18・・…・演算回路、21・・・…表示
部、26・・・・・・キーサンプリングデコーダ、27
・・・・・・キー入力部、G,〜○,2・・・…ゲート
回路、MS・・・・・・モード切換スイッチ、Xo・・
・・・・xデー夕入力用キー、Yo・・・・・・yデー
タ入力用キー、X・・・・・・xの推定値を求めるキー
、Y・・・・・・yの推定値を求めるキー、AK・・・
・・・係数aを求めるキー、BK・・・・・・y切片b
を求めるキー。 第1図 第5図 第2図 第3図 第9図 第4図 第6図 第7図 第8図 第10図 第11図
FIG. 1 is a block diagram showing the circuit configuration of an embodiment of a small electronic calculator according to the present invention, FIG. 2 is a time chart showing the state of timing signals used in the above embodiment, and FIG. 3 is a block diagram showing the above embodiment. Figure 4 showing an example of the configuration of RAM 3 of
The figure shows an example of the configuration of the main part of the key input section of the above embodiment, Figure 5 is a flowchart showing the overall operation of the above embodiment, and Figure 6 shows the display and key sampling operation of the above embodiment. FIG. 7 is a flowchart showing the data input operation of the above embodiment, FIG. 8 is a flowchart showing the operation of obtaining the constant A of the above embodiment, and FIG. 9 is a flowchart showing the operation of obtaining the constant A of the above embodiment. FIG. 10 is a flowchart showing the operation of calculating the estimated value of x in the above embodiment. FIG. 11 shows the contents of each register in RAM 3 when specific data is input to the above embodiment. It is a state diagram showing the contents. 1...ROM, 2...ROM address section, 3...
...RAM, 4...Address section register, 5
...Operation decoder, 6...Timing decoder, 18...Arithmetic circuit, 21...Display section, 26...Key sampling decoder, 27
...Key input section, G, ~○, 2...Gate circuit, MS...Mode changeover switch, Xo...
...Key for x data input, Yo...Key for y data input, X...Key to obtain the estimated value of x, Y...Key for obtaining the estimated value of y. The key to find, AK...
...Key to find coefficient a, BK...y-intercept b
The key to ask for. Figure 1 Figure 5 Figure 2 Figure 3 Figure 9 Figure 4 Figure 6 Figure 7 Figure 8 Figure 10 Figure 11

Claims (1)

【特許請求の範囲】[Claims] 1 数値データ、並びに四則演算、基準となる所定の回
帰計算を含む複数種の回帰演算に必要なデータを入力す
る入力手段と、上記複数種の回帰演算を択一指定する回
帰モード指定手段と、この回帰モード指定手段により指
定された回帰演算が上記所定回帰計算か否かを判別する
判別手段と、この判別手段により上記所定の回帰計算と
判別された際は上記入力手段より入力されたデータを変
換せずに、上記所定の回帰計算とは異なる回帰計算と判
別された際は上記入力データを上記所定の回帰計算のパ
ターンに対応するように変換した後、上記所定の回帰計
算を実行せしめる手段とを具備してなる小型電子式計算
機。
1. Input means for inputting numerical data, data necessary for multiple types of regression calculations including four arithmetic operations, and predetermined regression calculations serving as a reference; and regression mode designation means for specifying one of the multiple types of regression calculations; a determining means for determining whether or not the regression operation specified by the regression mode specifying means is the predetermined regression calculation; means for converting the input data to correspond to the pattern of the predetermined regression calculation and then executing the predetermined regression calculation when the regression calculation is determined to be different from the predetermined regression calculation without conversion; A small electronic calculator equipped with the following.
JP13388677A 1977-11-08 1977-11-08 small electronic calculator Expired JPS6037515B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13388677A JPS6037515B2 (en) 1977-11-08 1977-11-08 small electronic calculator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13388677A JPS6037515B2 (en) 1977-11-08 1977-11-08 small electronic calculator

Publications (2)

Publication Number Publication Date
JPS5466738A JPS5466738A (en) 1979-05-29
JPS6037515B2 true JPS6037515B2 (en) 1985-08-27

Family

ID=15115383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13388677A Expired JPS6037515B2 (en) 1977-11-08 1977-11-08 small electronic calculator

Country Status (1)

Country Link
JP (1) JPS6037515B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03146340A (en) * 1989-10-31 1991-06-21 Eidai Co Ltd decorative board
JPH0411054U (en) * 1990-05-16 1992-01-29

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03146340A (en) * 1989-10-31 1991-06-21 Eidai Co Ltd decorative board
JPH0411054U (en) * 1990-05-16 1992-01-29

Also Published As

Publication number Publication date
JPS5466738A (en) 1979-05-29

Similar Documents

Publication Publication Date Title
US4313186A (en) Electronic timepiece with time zone change features
JPS6037515B2 (en) small electronic calculator
US4352161A (en) Electronic calculator capable of dealing with variables
US4410956A (en) Exponential operation device
US4075705A (en) Calculator for determining cubic roots
JPS6339940B2 (en)
US4181963A (en) Electronic calculator with time counting function
US4511987A (en) Method of entering and performing operations on complex numbers on calculators
JPS6044692B2 (en) Data input method
US4473886A (en) Data processing apparatus with algebraic memory operation and entry sequence
JPH0421151Y2 (en)
JPS6213636B2 (en)
US3622768A (en) Dual key depression for decimal position selection
JP2513600Y2 (en) Data bank device
JPS6137086Y2 (en)
JP3817937B2 (en) Computing device and storage medium
JPS5922587Y2 (en) random number generator
JPS6249942B2 (en)
JPS6315958Y2 (en)
JPS6225208B2 (en)
JPH0710371Y2 (en) Timetable display
JPS6029130B2 (en) Miscalculation prevention method
SU496557A1 (en) Control device
JPH0615313Y2 (en) Data storage device
JPH0124660Y2 (en)