Question: Dears, I wrote with maple the following expressions if

Dears, I wrote with maple the following expressions

if i <> k then

for i to M do

for k to M do

alpha :=(i, k)→evalf(((x[k]-x[i])*ydot[k]-(y[k]-y[i])*xdot[k])*dtheta[i]/((x[k]-x[i])^2+(y[k]-y[i])^2)^2)

end do

end do

 

else

beta :=(i)→evalf((1/2)*(y2dot[i]*xdot[i]-x2dot[i]*ydot[i])*dtheta[i]/omega[i]^2-Pi);

end if;

Matrix(M, M, (i, k) →`if`(i = k, beta, alpha);
the results are

1) the main diagonal contains the symbol "beta" not the numeric value

2) the other elements are "alpha" not the numeric values for alpha

I wonder where the problem.

Amr

Please Wait...