home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
tutor
/
freetk.lzh
/
LINEAR4.TK
< prev
next >
Wrap
Text File
|
1987-04-10
|
2KB
|
257 lines
TK!2
=v
#1
:n
x1
:s
b
:c
***** LINEAR4 *****
:f
0
#2
:n
x2
:s
b
:c
Sample Matrix of Coefficients:
:f
0
#3
:n
x3
:s
b
:c
-------a------- -b--
:f
0
#4
:n
x4
:s
b
:c
1 0 2 0 20
:f
0
#5
:n
a11
:v
1
:s
i
:c
4 2 3 7 86
#6
:n
a12
:v
0
:s
i
:c
0 0 2 0 13
#7
:n
a13
:v
2
:s
i
:c
2 1 3 4 58
#8
:n
a14
:v
0
:s
i
#9
:n
b1
:v
20
:s
i
#10
:n
a21
:v
4
:s
i
:c
Press [F6] to see more of this sheet
#11
:n
a22
:v
2
:s
i
#12
:n
a23
:v
3
:s
i
:c
This model may solve not only for
#13
:n
a24
:v
7
:s
i
:c
unknown x's, but also for unknown
#14
:n
b2
:v
86
:s
i
:c
a's and b's. This not so with the
#15
:n
a31
:v
0
:s
i
:c
model LINEAR8, which, however, allows
#16
:n
a32
:v
0
:s
i
:c
up to eight linear equations in eight
#17
:n
a33
:v
2
:s
i
:c
unknowns within FREETK restrictions
#18
:n
a34
:v
0
:s
i
:c
thanks to spelling out the coeffi-
#19
:n
b3
:v
13
:s
i
:c
cients directly in the Rule Sheet.
#20
:n
a41
:v
2
:s
i
#21
:n
a42
:v
1
:s
i
:c
Press [PgDn] or [End] to see the rest
#22
:n
a43
:v
3
:s
i
#23
:n
a44
:v
4
:s
i
#24
:n
a410
:v
0
:s
i
:c
Press [Home] or [PgUp] to go to top
#25
:n
b4
:v
58
:s
i
:c
Type =R or /WR to see the Rule Sheet
=u
=r
#1
:r
a11*x1 + a12*x2 + a13*x3 + a14*x4 = b1 " The restriction of 32 lines on the
#2
:r
a21*x1 + a22*x2 + a23*x3 + a24*x4 = b2 " FREETK Variable Sheet effectively
#3
:r
a31*x1 + a32*x2 + a33*x3 + a34*x4 = b3 " limits this model to 4 equations
#4
:r
a41*x1 + a42*x2 + a43*x3 + a44*x4 = b4 " in 4 unknowns.
#5
:r
" With TK Solver Plus, only the
:s
C
#6
:r
" available memory limits the expansion of this model. Moreover, represen-
:s
C
#7
:r
" ting the row of coefficients and the unknowns as lists simplifies the
:s
C
#8
:r
" equations down to dot(a1,x)=b1, dot(a2,x)=b2, and so on. The spreadsheet-
:s
C
#9
:r
" like interactive tables make the coefficient assignment much easier.
:s
C
%Tv,f,0,5,0,1,0
%Or,f,0,1,0,1,0