pik1432

30 Reputation

One Badge

0 years, 146 days

MaplePrimes Activity


These are replies submitted by pik1432

@Kitonum What is the reason for '-H' in this expression, instead of 'H'?

U, M:=GenerateMatrix(convert(-H,list), convert(V,list));

In the following recap of what you taught me, I can vaguely see the point, but I would appreciate if you can offer me clear guidance:

restart;
eq1:=(L1/n12 + n12*L2)*diff(i2(t), t) + L1*diff(i3(t), t)/n13 = -v1(t) - R1*i3(t)/n13 - R1*i2(t)/n12 + n12*v2(t) - n12*R2*i2(t);

eq2:=L1*diff(i2(t), t)/n12 + (L1/n13 + n13*L3)*diff(i3(t), t) = -v1(t) - R1*i3(t)/n13 - R1*i2(t)/n12 + n13*v3(t) - n13*R3*i3(t);
with(LinearAlgebra):

Sys:=[eq1, eq2];

X:=<i2(t),i3(t)>;

DX:=<diff(i2(t), t),diff(i3(t), t)>;

E, F:=GenerateMatrix(Sys, convert(DX,list));

G, H:=GenerateMatrix(convert(F,list), convert(X,list));

V:=<v1(t),v2(t),v3(t)>;

U, M:=GenerateMatrix(convert(H,list), convert(V,list)); # with no '-'

U, M := Matrix(2, 3, [[1, -n12, 0], [1, 0, -n13]]), Vector[column](2, [0, 0])

U, M:=GenerateMatrix(convert(-H,list), convert(V,list));# with no '-'
U, M := Matrix(2, 3, [[-1, n12, 0], [-1, 0, n13]]), Vector[column](2, [0, 0])

@Carl Love: It worked!

All the answers are truly appreciated!

Your answers solved my problem!

@acer: Thank you for the perfect answer! 

Page 1 of 1