Download Interactive Power Systems Calculator

Transcript
ipsys> a = Matrix("shiljak.mat");
ipsys> printf("%6.3f ",a(Range(1,2),Range(1,Cols(a))));
[
0.000 0.000 0.010 0.000 2.150 0.000 0.040 0.000 ;
0.070 1.100 0.030 0.000 -0.060 -0.020 0.000 0.250
]
IPSYS provides function for construction of constant and identity matrices.
Following commands calculate the inverse of matrix a:
ipsys> a = [1,2,3;4,5,4;3,2,1];
ipsys> i = Idn(3);
ipsys> printf("% 3.2f ", i/a);
[
0.38 -0.50 0.88 ;
-1.00 1.00 -1.00 ;
0.87 -0.50 0.37
]
ipsys> printf("% 3.2f ", a*i/a);
[
1.00 -0.00 -0.00 ;
-0.00 1.00 -0.00 ;
0.00 0.00 1.00
]
Identity, transposed, and constant matrices can be constructed as follows:
ipsys> a = Matrix("3x3.mat");
ipsys> printf("% 3.2g ",a);
a = [
1
2
3 ;
4
5
6 ;
7
8
9
]
ipsys> printf("% 3.2g ",Trn(a));
[
1
4
7 ;
2
5
8 ;
3
6
9
10