Ternox

129 Reputation

3 Badges

14 years, 211 days

MaplePrimes Activity


These are questions asked by Ternox

Hello,

Just a question about presentation.

If I have  a program like this:

for i to N do
for j to N do
i+j
od;
od;

How to show it like this?

for i to N do
   for j to N do
        i+j
    od;
od;

I have tryed some compositions with the keyboard but "everything doen't work".

Many thanks,
Ternox

hello everybody,

Just a little question about lists.
I have a result like this

Result := {alpha[2] = -1.536774530, alpha[3] = -2.345615736};

How to select -1.536774530 and -2.345615736 ???

If I do Result[1];     it return alpha[2] = -1.536774530.

 

Many thanks !!!

Ternox

Hello everybody,

I look for modeling an inverted pendulum in 2D. ( I would like to see the beam linking masses moving).


I have already calculated the equations of the motion. I know with MatLAB and Simulink a thing similar is possible but I would like to keep on using it Maple.

Is a such modeling is possible with Maple?

Many thanks,

Ternox

Hello everybody,

 

#Is there an automatic way to transform equations like this

(-42.62500000*omega^2+1400.)*A[1]+(-12.00000000*omega^2-1000.)*A[2] = 0;
(-12.00000000*omega^2-1000.)*A[1]+(-5.475000000*omega^2+1000.)*A[2] = 0;

#in a matrix like that?

C := Matrix(2, 2, {(1, 1) = -42.62500000*omega^2+1400., (1, 2) = -12.00000000*omega^2-1000., (2, 1) = -12.00000000*omega^2-1000., (2, 2) = -5.475000000*omega^2+1000.});

without copy/paste each element?

Thank you,

Ternox

Hello everybody,

1 2 Page 1 of 2