awass

276 Reputation

10 Badges

17 years, 253 days

MaplePrimes Activity


These are questions asked by awass

It is never a good error message but I have not been able to find out whatit means.

 

Thanks,

I have a matrix m with 9 rows and 4 columns and when I enter the command below I get an error message:


num := product((z-(m[s,1]+I*m[s,2])),s = 1..9);
Error, Matrix index out of range

However, there is no problem if I use brute force:

I played aorund a bit with the "Insert Table" command and it seems to create just an inert object that cannot be accessed or operated upon except directly by typing into its boxes. Is that true? Is it just for word processing?

Here is a simple sequcnce of commands that execute without a problem:
restart;
eq1 := 5+3*x=0:
eq2 := 2+7*x-3*y-5*x*y=0:
x:=solve(eq1,x):
y:=solve(eq2,y):
lprint('x'=x,'y'=y);


x = -5/3, y = 29/16


If I put the commands into a procedure there are problems:

I am using Maple 12.01 and I am using dsolve to solve a second order ODE;  example :

eq:=diff(y(t),t,t)+sin(t)*diff(y(t),t)+y(t)^2-5*y(t)=0;

ic:=a->[D(y)(0)=0,y(0)=a]; # initial conditions.
 

I want to investigate the  values of z(t, y, y') when g(t, y,y') = 0. Here z might be y''' or cos(t y') and g  might be y(t)-4.

What I would like to do is create an Array whose nth entry is of the form [ tn, z(tn,y(tn), y'(tn)]  where tn is the nth value of t at which the condition g(t, y,y') = 0 is satisfied.

First 6 7 8 9 Page 8 of 9