Alger

499 Reputation

16 Badges

11 years, 116 days

MaplePrimes Activity


These are replies submitted by Alger

@roman_pearce 

Thank you verry much for all your answer

I think calculation take less time and memory if I do not generat a Matrix

I try this

 

@roman_pearce 

Thank you verry much for all your answer

I think calculation take less time and memory if I do not generat a Matrix

I try this

 

@hirnyk 

I will send you by email my worksheet to give me your opinion

Perhaps there are ways to do the calculation with less time and memory

@hirnyk 

I will send you by email my worksheet to give me your opinion

Perhaps there are ways to do the calculation with less time and memory

@roman_pearce 

Yes, the Matrix is correct but the construction of large system with GeneratMatrix and solve it with LinearSolve take too large memory and time.

With a matrix of 1500 by 1500, the memory is about 1,5 G bytes with a PC of 2G of memory I can not continu my calculations and Maple don't stop for all a day.

I think using connection with Matlab ?

Best regards

 

 

@roman_pearce 

Yes, the Matrix is correct but the construction of large system with GeneratMatrix and solve it with LinearSolve take too large memory and time.

With a matrix of 1500 by 1500, the memory is about 1,5 G bytes with a PC of 2G of memory I can not continu my calculations and Maple don't stop for all a day.

I think using connection with Matlab ?

Best regards

 

 

Thank you for the answer, but the problem is not the variable of the derivative:

restart:assume(n,integer):h := piecewise(n::odd, r*n^2, r^2*n^3);

diff(h,r);   # don't work Why ?

restart:h1 := piecewise(And(n::integer, n::odd), r*n^2, r^2*n^3);

diff(h1,r); # work

Why diff does'nt work with assume and work when the condition is given inside piecewise ?

Thank you for the answer, but the problem is not the variable of the derivative:

restart:assume(n,integer):h := piecewise(n::odd, r*n^2, r^2*n^3);

diff(h,r);   # don't work Why ?

restart:h1 := piecewise(And(n::integer, n::odd), r*n^2, r^2*n^3);

diff(h1,r); # work

Why diff does'nt work with assume and work when the condition is given inside piecewise ?

Thank you for your answer

I tried LinearSolve but with no answer from maple

I think, there is some problem in my Matrix.

I will verify it and try another time

Thank you for your answer

I tried LinearSolve but with no answer from maple

I think, there is some problem in my Matrix.

I will verify it and try another time

Matrix(  [ seq ( [n, n^2], n={seq(1..3,1),50,100,1000})]);

Matrix(  [ seq ( [n, n^2], n={seq(1..3,1),50,100,1000})]);

@Wang Gaoteng Execute these equations in maple:

eq := [vs(t) = ve(t-T)];

params := [];

initialconditions := [];

sys := DynamicSystems[AlgEquation](eq, inputvariable = [ve(t)], outputvariable = [vs(t)]);

Error, (in DynamicSystems:-AlgEquation) algebraic equations cannot depend on past/future values of the input/output

@Wang Gaoteng Execute these equations in maple:

eq := [vs(t) = ve(t-T)];

params := [];

initialconditions := [];

sys := DynamicSystems[AlgEquation](eq, inputvariable = [ve(t)], outputvariable = [vs(t)]);

Error, (in DynamicSystems:-AlgEquation) algebraic equations cannot depend on past/future values of the input/output

@Wang Gaoteng 

DynamicSystems dont accept equation [vs(t) = ve(t-T(t))] for any input signal and delay it.

For sinusoidal delay (for example) in above, you must introduce parameters in your signal input to get exactly the same signal in eq to work (ie f=1, amplitude=1, etc...). But, you can also work only with your block signal output which you defined in equation (eq) without input signal.

To delay other signal, you can do it in the same way with giving in eq ve(t) and vs(t) in fourier series or other expressions

 

First 9 10 11 12 13 14 15 Page 11 of 17