JPS62242265A - Pocket computer having matrix calculation capability - Google Patents

Pocket computer having matrix calculation capability

Info

Publication number
JPS62242265A
JPS62242265A JP8674986A JP8674986A JPS62242265A JP S62242265 A JPS62242265 A JP S62242265A JP 8674986 A JP8674986 A JP 8674986A JP 8674986 A JP8674986 A JP 8674986A JP S62242265 A JPS62242265 A JP S62242265A
Authority
JP
Japan
Prior art keywords
matrix
data
program
input
dimensional array
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
JP8674986A
Other languages
Japanese (ja)
Inventor
Shigenobu Yanagiuchi
柳内 繁信
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP8674986A priority Critical patent/JPS62242265A/en
Publication of JPS62242265A publication Critical patent/JPS62242265A/en
Pending legal-status Critical Current

Links

Landscapes

  • Calculators And Similar Devices (AREA)

Abstract

PURPOSE:To link a matrix operation with a program and to easily form the program by using matrix data obtained by inputted matrix data and a matrix operation as the data of the variable of a two-dimensional array. CONSTITUTION:A CPU 1 executes a prescribed processing according to the program stored in a ROM 2, a RAM 3 stores the Basic program or the data inputted from a key part 6 and a display control part 4 displays a character, a symbol and a numeric character on a liquid crystal display part 5 according to the instruction signal of the CPU 1. The data for the matrix is represented as X's and Y's of numbers m and n or a matrix M and stored in the same memory area as the variables X, Y and M of the two-dimensional array of the Basic program. As shown in a memory map, an area for storing the matrix operation data and a matrix operation result is commonly used as the area for storing Basic variable data, thereby, the matrix operation is linked with the Basic program.

Description

【発明の詳細な説明】 く技術分野〉 本発明は行列計am能付きポケットコンピュータに閃し
、二次元配列の変数が記憶されたメモリを有し、入力さ
れた行列データ及び行列演算により求まった行列データ
を、そのまま前記二次元配列の変数のデータとして利用
できる様にしたものに関する。
[Detailed Description of the Invention] [Technical Field] The present invention is directed to a pocket computer with a matrix calculation function, which has a memory in which a two-dimensional array of variables is stored, and which has a memory that stores variables in a two-dimensional array, and which has a memory that stores variables in a two-dimensional array. The present invention relates to a system in which matrix data can be used as is as variable data in the two-dimensional array.

く従来技術〉 従来から、行列(マトリックス)演算機能を有するポケ
ットコンピュータがあるが、従来のものは、行列の演算
は他の計算と独立して行なわれ、独立して実イデされた
行列データとその演算結果を他の計算に利用することは
容易でない上、行列データとその演算結果を他の計算に
使用しようとすると複雑なプログラムを作成しなければ
ならず、行列演算を有効に生かす計算が簡単に実行でき
なかっr−0 〈発明の目的〉 本発明は、上記の事情に鑑み、二次元配列の変数が使え
るプログラムを実行するポケットコンピュータにあって
、入力された行列データ及び行列演算により求まった行
列データを、直接、前記二次元配列の変数のデータとし
て使用できる様にし、行列演算とプログラムのリンクが
可能となったボケラトコンピュータを提供することを目
的とする。
Conventional technology> There have been pocket computers that have matrix calculation functions, but in the conventional ones, matrix calculations are performed independently of other calculations, and matrix data that is actually calculated independently is used. It is not easy to use the calculation results for other calculations, and if you try to use matrix data and the calculation results for other calculations, you have to create a complicated program. <Objective of the Invention> In view of the above-mentioned circumstances, the present invention provides a pocket computer that executes a program that can use two-dimensional array variables. It is an object of the present invention to provide a blurred computer in which matrix data can be directly used as variable data in the two-dimensional array, and matrix operations can be linked to programs.

〈実施例〉 以下、本発明の構成を図面を参照しつつ、説明する。<Example> Hereinafter, the configuration of the present invention will be explained with reference to the drawings.

第1図は本発明の実施例に係るポケットコンピュータの
平面図であり、Ba5ic(RAS I C:ベーシッ
ク;プログラム言語)によるプログラムが組み込める様
になっており、IF、INPUT、FOR,TO,GO
8UB等の各種キーが備え付けられでいる。
FIG. 1 is a plan view of a pocket computer according to an embodiment of the present invention, in which a program written in Ba5ic (RAS IC: basic; programming language) can be installed, and it has IF, INPUT, FOR, TO, GO.
Various keys such as 8UB are provided.

Ba5icプログラムを組み立て、実行する処理は公知
であるため、以下、本発明の特徴である行列処理につき
、説明を行う。
Since the process of assembling and executing a Ba5ic program is well known, matrix processing, which is a feature of the present invention, will be explained below.

第1図にあって、Kは行列(マトリックス;MATRI
X)を設定する際に操作される行列設定キーであり、匡
■■IIキー及び口又は田キーを操作することにより行
列の入力及び行列の計算を指示できる。
In Figure 1, K is a matrix (MATRI).
This is a matrix setting key that is operated when setting X), and matrix input and matrix calculation can be instructed by operating the 塡■■II key and the 口 or 田 key.

又、Dは表示部を表わし、行列データが入力されるとき
に、行列の各要素の指定表示を打う。
Further, D represents a display unit, and when matrix data is input, a designated display of each element of the matrix is input.

第2図は本実施例に係るポケットコンピュータのブロッ
ク構成を示すものである。
FIG. 2 shows the block configuration of the pocket computer according to this embodiment.

同図において、1は中央処理装置CPU1e:表わして
いる。
In the figure, 1 represents a central processing unit CPU1e.

前記cpuiは、リードオンリメモリROM2と接続さ
れてす3つ、前記ROM2に記憶されている動作コント
ロールプログラムに従い、前記CPtJ 1が所定の処
理を実行する。
The CPU is connected to a read-only memory ROM2, and the CPtJ1 executes predetermined processing according to an operation control program stored in the ROM2.

又、3はランダムアクセスメモリRAMで、キ一部6か
ら入力されたBa5icプログラムやデータを記憶する
Further, 3 is a random access memory RAM which stores the Ba5ic program and data inputted from the main part 6.

さらに、4は表示制御部(D 1splay  Con
torolle「)で、液晶表示部(L CD  D 
1splay)(第1図の表示部りに相当する)5に、
前記CPUIの命令(i号により、所定の文字、記号若
しくは数字を表示させる。
Furthermore, 4 is a display control unit (D1play Con
controller"), turn on the LCD display section (LCD
1 play) (corresponds to the display part in Figure 1) 5,
The CPUI command (i) causes a predetermined character, symbol, or number to be displayed.

行列のデータは、第3図に示す如く、曽、11個の数α
1k(i=1.2・・・m: 1(=l、2...  
n)を配列したものであって、本実施例では、X、Y若
しくはMの行列として表わし、Ba5icプログラムの
二次元配列の変数X(m −1tn −1)、Y(+−
1tit −1)並びにM(m  1−n−1)と同一
のメモリ領域に記憶される。
As shown in Figure 3, the matrix data consists of 11 numbers α
1k(i=1.2...m: 1(=l, 2...m)
In this example, it is expressed as a matrix of X, Y, or M, and the variables X(m −1tn −1) and Y(+−
1tit -1) and M(m 1-n-1).

第4図は前記RAM3に記憶される内容を示すもので、
当該RAM3には、Ba5icプログラムの他に、Ba
5icプログラムの変数データX、Y、Mと、Ba5i
cプログラムの実行及び行列演算を実行するのに必要な
システムエリアが記憶される@ Ba5icプログラム
の変数データは、前記以外にも、適宜、増加できる。
FIG. 4 shows the contents stored in the RAM 3,
In addition to the Ba5ic program, the RAM3 contains Ba5ic program.
Variable data X, Y, M of the 5ic program and Ba5i
The variable data of the @Ba5ic program in which the system area necessary for executing the c program and performing matrix operations is stored can be increased as appropriate in addition to the above.

第5図は変数データのうち、Ba5icプログラム及び
行列演算に用いる変数X、Yのメモリ内容である。先頭
のXは変数名を表わし、Ilt nは行列又は二次元配
列のタテ、ヨコの数を示す、その後にX (1= 1 
)・・・X (m、n)(但し、同図の場合、曽=2、
n−3)と、各要素のデータが記憶されている。
FIG. 5 shows the memory contents of variables X and Y used in the Ba5ic program and matrix calculations among the variable data. The first X represents the variable name, Ilt n represents the number of vertical and horizontal columns in the matrix or two-dimensional array, followed by X (1 = 1
)...X (m, n) (However, in the case of the same figure, Zeng = 2,
n-3) and data of each element are stored.

前記変数Xに引き続き、同様の形式で変敗Yが記憶され
る。これら変数X、Yは前記RAM゛3に形成されてい
る。
Following the variable X, the change Y is stored in a similar format. These variables X and Y are formed in the RAM 3.

第5図の一メモリマツプに示す如(、Ba5icプログ
ラムで使用可能な二次元配列の変数X、Yと行列データ
X、Y及びその演算結果を格納するXを共有することに
より、即ち、行列演算データ及び行列演算結果を記憶す
るエリアをBa5icの変数データを記憶するエリアと
兼用することにより、行列演算とBa5icプログラム
のリンクが可能となる。
As shown in a memory map in FIG. By using the area for storing the matrix calculation results as the area for storing Ba5ic variable data, it becomes possible to link the matrix calculation and the Ba5ic program.

次に、行列の演算処理を、第6図の70−チャートに従
って説明する。
Next, matrix arithmetic processing will be explained according to chart 70 in FIG.

前記CP U 1はキ一部6にストローブ信号Aを出力
し、一方、当1cPU1に対して、入力ボートから、操
作されたキー信号Bが入力される。
The CPU 1 outputs a strobe signal A to the key section 6, while an operated key signal B is input from the input port to the CPU 1.

入力されたキー信号Bの内容を判断することにより、ど
のキーが操作されたかが判別される。
By determining the content of the input key signal B, it is determined which key has been operated.

ffl[l  キーが入力されると(S1ステツプ)、
次の動作に移る。
When the ffl[l key is input (S1 step),
Move on to the next action.

まず、行列Xのデータサイズ勧nの入力待ち状態を設定
しくS2ステツプ)、数値キーの読み込み後、dキーの
読み込みを行う(S3ステツプ)と、読み込んだ数値で
行列の行数を設定する(S、ステップ)。さらに、数値
キーの読み込み後、dキーの読み込みを行う(S’tス
テップ)と、読み込んだ数値で行列の列数を設定する(
S6ステツプ)。
First, set the input waiting state for the data size recommendation n of matrix S, step). Furthermore, after reading the numerical keys, if you read the d key (S't step), the number of columns in the matrix is set with the read numerical values (
S6 step).

この段階で行列Xの大きさが決定され、第2図のRAM
3上に、第5図に示す変数Xのメモリエリアが確保され
る。
At this stage, the size of the matrix X is determined, and the RAM shown in FIG.
3, a memory area for variable X shown in FIG. 5 is secured.

続いて、let nに1を設定しくS、ステップ)、行
列XのX(m、n)のデータ入力待ち(S8ステツプ)
とした後、数値データ若しくは数値データ及び演算キー
の入力によって、数値データをX(輸tn)に記憶する
か或いは演算結果をX (m、n)に入力して(S、ス
テップ)、同様な処理をnと列数が等しくなり(S +
o及(/ S + +ステップ)、且つ、鎖と行数が等
しくなるまで(S12及び813ステツプ)、繰り返す
Next, set let n to 1 (S, step) and wait for data input of X(m, n) of matrix X (S8 step).
After that, by inputting numeric data or numeric data and calculation keys, store the numeric data in X (inputn) or input the calculation result in Processing is performed so that n is equal to the number of columns (S +
o and (/S++ steps) and repeat until the number of chains and rows are equal (steps S12 and 813).

キ一部6から入力されたXのデータは、第5図の変敗X
のデータエリアに格納する。
The data of X input from part 6 is the change of
Store in the data area.

上述と同様な処理を、行列Yについても行う(Sロステ
ップ乃至S2Sステツプ)。
The same processing as described above is also performed for the matrix Y (S step to S2S step).

求まった行列Yのデータは、Ba5ic変敗Yのデータ
として記憶される。
The data of the determined matrix Y is stored as Ba5ic change Y data.

X、Yのデータが入力されると、前記表示部りにおいて
、rMATRIX  0PERATIONJと表示され
(S26ステツプ)、マトリックスオペレーションモー
ドに移る。
When the X and Y data are input, rMATRIX 0PERATIONJ is displayed on the display section (step S26), and the process shifts to matrix operation mode.

具体的に第7図(a)及び(b)に示す行列を取り上げ
、行列データの入力繰作を、f58図(a)乃至(ν)
によって示す。
Specifically, taking the matrices shown in FIGS. 7(a) and (b), input operations of the matrix data are shown in f58 (a) to (ν).
Indicated by

第8図(a)は行列Xが未定義なので(0,0)と表示
されている状態であり、同図(g)はx(i、i)要素
の入力が終了して、次にX(1,2)要素が入力待ちに
なった状態を示す。
Figure 8 (a) shows the state where the matrix (1, 2) Indicates that the element is waiting for input.

そして、同図(m)では、行列Xの各要素の入力が終了
したため、行列Yの大きさの入力となった段階を示して
いる。
FIG. 3(m) shows a stage where the input of each element of the matrix X has been completed and the size of the matrix Y has been input.

これらから明らかな様に、本実施例では、行列の要素数
を所望の大きさにできると共に、行列データを入力する
場合に、当該行列の各要素が表示されるため、行列デー
タの入力が簡単である。
As is clear from the above, in this example, the number of elements in the matrix can be set to a desired size, and each element of the matrix is displayed when inputting matrix data, so inputting matrix data is easy. It is.

第9図に、行列X、Yにデータを入力するためのキー動
作を示す。
FIG. 9 shows key operations for inputting data into matrices X and Y.

又、第10図及び第11図で、マトリックスオペレージ
aン状態での演算の種類を表わす。
Further, FIGS. 10 and 11 show the types of operations in the matrix operation a state.

例えば、国キーが操作されると、既に入力された行列X
と行列Yの行列データの加算が実行され、その結果が変
数Xに格納される。
For example, when the country key is operated, the already input matrix
Addition of matrix data of and matrix Y is performed, and the result is stored in variable X.

本実施例では、行列演算を実行する演算キーを、関数演
算キー及び命令入カキ−と兼用し、キー数の削減を図っ
ている。
In this embodiment, the operation key for executing matrix operations is also used as a function operation key and an instruction input key, thereby reducing the number of keys.

〈効果〉 以上の様に本発明によれば、二次元配列の変数が記憶さ
れたメモリを有するポケットコンピュータに於いで、行
列データを入力する入力手段と、前記入力手段で入力さ
れた行列データに基づき、行列の演算を行う行列計算手
段と、前記入力手段で入力された行列データ及び前記行
列計算手段の演算により求まった行列データを、当該行
列データの行列と対応する二次元配列を備える変数のデ
ータとして前記メモリに記憶する記憶手段とを具備する
から、前記二次元配列の変数を用いたプロ可能で、行列
演算を含むプログラムの作成が容易となり、ポケットコ
ンピュータで行列を必要とする各種の技術計算等を実行
する際に極めて便利である。
<Effects> As described above, according to the present invention, in a pocket computer having a memory in which variables of a two-dimensional array are stored, an input means for inputting matrix data and an input means for inputting matrix data by the input means are provided. matrix calculation means for performing matrix calculations based on the input means, and matrix data input by the input means and matrix data obtained by the calculations of the matrix calculation means, into a variable having a two-dimensional array corresponding to the matrix of the matrix data. Since it is equipped with a storage means for storing data in the memory, it is easy to create programs that use the two-dimensional array variables and include matrix operations, and various technologies that require matrices can be used on pocket computers. This is extremely useful when performing calculations, etc.

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

第1図は本発明の適用されるボケッ[コンビ二一夕の平
面図、第2図は前記ポケットコンピュータのブロック構
成図、第3図は行列を表わす図、r54図はメモリの記
憶内容を示す図、第5図はメモリに記憶されている変数
を表わす図、第6図は行列入力の処理70−チャート、
第7図は実際に入力する行列データを表わす図、fjS
8図は前記行列データの入力繰作の説明に供する図、第
9図は行列データの入力時のキー程作の説明に供する図
、第10図及び第11図は行列演算の種類を示す図であ
る。 1・・・CPU、3・・・RAM。 代理人 弁理士  杉 山 毅 至(他1名)篤2図 第50 CG)                 (b)第7
図 9 6   ’G  9  8  Q  a  2  
C−ノ    −ノ    N−−ノ    −ノ  
 W    ν    ν   N−7面の浄書(内容
に変更なし) 1面の浄1!F(内容に変更なし) 手続補正書(方式) 1.事件の表示 特願昭61−86749 2、発明の名称 行列計算機能付きポケットコンピュータ3、補正をする
者 事件との関係  特許出願人 住 所 、5545大阪市阿倍野区長池町22番22号
名 称 (504)シャープ株式会社 代表者 辻   晴 雄 4、代理人 昭和61年6月24日 7、補正の内容 (1)第8図を、別紙の通り、補正します。 (2)第9図を、別紙の通シ、補正します。 (3)第10図を、別紙の通シ、補正します。 (4)第11図を、別紙の通シ、補正します。 以  上
FIG. 1 is a plan view of a convenience store to which the present invention is applied, FIG. 2 is a block diagram of the pocket computer, FIG. 3 is a diagram showing a matrix, and FIG. 5 is a diagram showing variables stored in memory, FIG. 6 is a matrix input processing 70-chart,
Figure 7 is a diagram showing the matrix data actually input, fjS
Figure 8 is a diagram for explaining the input operation of the matrix data, Figure 9 is a diagram for explaining the key operation when inputting matrix data, and Figures 10 and 11 are diagrams showing the types of matrix operations. It is. 1...CPU, 3...RAM. Agent Patent Attorney Takeshi Sugiyama (and 1 other person) Atsushi 2 Figure 50 CG) (b) No. 7
Figure 9 6 'G 9 8 Q a 2
C-no -no N--no -no
W ν ν N-7 pages of engraving (no change in content) 1 page of engraving 1! F (No change in content) Procedural amendment (formality) 1. Indication of the case Patent application 1986-86749 2. Name of the invention Pocket computer with matrix calculation function 3. Person making the amendment Relationship to the case Patent applicant address: 22-22 Nagaike-cho, Abeno-ku, Osaka-shi, 5545 Name (504) ) Sharp Corporation Representative Haruo Tsuji 4, Agent June 24, 1986 7 Contents of Amendment (1) Figure 8 will be amended as shown in the attached sheet. (2) Please revise Figure 9 on a separate sheet. (3) Please revise Figure 10 on a separate sheet. (4) Please revise Figure 11 on a separate sheet. that's all

Claims (1)

【特許請求の範囲】 1、二次元配列の変数が記憶されたメモリを有するポケ
ットコンピュータであって、 行列データを入力する入力手段と、 前記入力手段で入力された行列データに基づき、行列の
演算を行う行列計算手段と、 前記入力手段で入力された行列データ及び前記行列計算
手段の演算により求まった行列データを、当該行列デー
タの行列と対応する二次元配列を備える変数のデータと
して前記メモリに記憶する記憶手段とを具備することを
特徴とする行列計算機能付きポケットコンピュータ。
[Scope of Claims] 1. A pocket computer having a memory in which a two-dimensional array of variables is stored, comprising: an input means for inputting matrix data; and a matrix calculation based on the matrix data input by the input means. matrix calculation means for performing the above operations; and matrix data input by the input means and matrix data obtained by the calculations of the matrix calculation means, into the memory as data of a variable having a two-dimensional array corresponding to the matrix of the matrix data. 1. A pocket computer with a matrix calculation function, characterized by comprising a storage means for storing data.
JP8674986A 1986-04-14 1986-04-14 Pocket computer having matrix calculation capability Pending JPS62242265A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8674986A JPS62242265A (en) 1986-04-14 1986-04-14 Pocket computer having matrix calculation capability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8674986A JPS62242265A (en) 1986-04-14 1986-04-14 Pocket computer having matrix calculation capability

Publications (1)

Publication Number Publication Date
JPS62242265A true JPS62242265A (en) 1987-10-22

Family

ID=13895418

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8674986A Pending JPS62242265A (en) 1986-04-14 1986-04-14 Pocket computer having matrix calculation capability

Country Status (1)

Country Link
JP (1) JPS62242265A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06175709A (en) * 1992-12-04 1994-06-24 Mitsubishi Electric Corp Programming device
US5442743A (en) * 1991-07-08 1995-08-15 Sharp Kabushiki Kaisha Electronic device for calculating and displaying a matrix

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57185559A (en) * 1981-05-12 1982-11-15 Casio Comput Co Ltd Small-sized electronic calculator with rpogram
JPS58191057A (en) * 1982-05-04 1983-11-08 Casio Comput Co Ltd Miniature electronic computer with program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57185559A (en) * 1981-05-12 1982-11-15 Casio Comput Co Ltd Small-sized electronic calculator with rpogram
JPS58191057A (en) * 1982-05-04 1983-11-08 Casio Comput Co Ltd Miniature electronic computer with program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5442743A (en) * 1991-07-08 1995-08-15 Sharp Kabushiki Kaisha Electronic device for calculating and displaying a matrix
JPH06175709A (en) * 1992-12-04 1994-06-24 Mitsubishi Electric Corp Programming device

Similar Documents

Publication Publication Date Title
JPS62242265A (en) Pocket computer having matrix calculation capability
JPH07219900A (en) Electronic device
JPH0251720A (en) Touch panel device
JPH07152917A (en) Graph display device
JP2003288486A (en) Graph display device
JPS6132676B2 (en)
JPS6236252B2 (en)
JPH0445875B2 (en)
JPH01268925A (en) Simulator system for water treatment
JPS59201157A (en) Graphic input device
JPS62282327A (en) Information processor
JPH0124660Y2 (en)
JPS63103363A (en) Desk-top electronic calculator
JPH0555889B2 (en)
JPH01173253A (en) Computer
JPH06175907A (en) Executing method for application program
JPS60238952A (en) Display device of memory using condition
JPS6151192A (en) Graph display
JPH01130249A (en) Expression arithmetic processor
JPS625463A (en) Electronic calculator having graph display function
JPH01316864A (en) Word processor frame display device
JPS62200396A (en) Display system
JPH0289152A (en) Number of days calculator for electronic apparatus
JPH02277096A (en) Display controller
JPS6337469A (en) Statistical processing system