apply while loop inside other while loop...

iam trying to apply newton method on non liner system but i have a problem for apply while loop inside other while loop

 >

 >
 >
 >
 >
 >
 >
 >
 >
 >
 >
 (1)

 >
 >
 >

 >

Matlab's parfor in Maple 2017...

I do long "for loops" which perform the same procedure with different inputs and collect the outputs in a vector. In Matlab I use the command "parfor" to accelerate the calculations.

What is the equivalent of "parfor" in Maple?

An example would be useful.

Thank You

How to program a for loop inside a procedure and m...

I'm trying to program a procedure that will return me a list of positions defining equally spaced points (planets) around a circumference, for example:
PSI := [0, Pi]; # Location of 2 planets
PSI := [0, ((2/3)*Pi) , ((4/3)*Pi) ]; # For 3 Planets
I'm new to maple so most commands are new to me, I tried building the size of the list with [0 \$ n] because I want the first position to always be at 0 degrees. The first problem is that I get this error:

 > nplanets := 2;
 (1)
 > make_PSI := proc(nplanets); local n,psin,i,PSI: n = nplanets; psin  :=(pi*2)/n; PSI := [0 \$ n]; for i from 1 to n do  angle :=(psin*i);  op(i,PSI) := angle; end do; end;
 >
 >

Trajectory algorithm only working for first step?...

I'm trying to calculate the trajectory of a 3-particle system. I defined my parameters. Wrote a do loop. Got the number of iterations I expected. But when I look at the tables of position for each particle after I run the loop, the trajectory only changes for the first iteration, then it stays the same. In other words, it shows that the particle moved slightly after the first increment of time, but thereafter it doesn't move.

 (5)

I want to write this function withÂ Â "for"...

hello. i want to write this function with  "for"loop. but i don't know
1.mw

The Repetition Statement for...

hello. i want to write this functionT with  "for"loop. but i don't know

e.mw

Using if/else statements to fill an empty matrix?...

I am trying to use a do loop with if/else statements to create a 5x5 unit matrix. I made an empty array. Converted it to a matrix. Then made a do loop where I was trying to get the matrix elements where i=j to be 1 and all else to be 0. It didn't spit out a matrix.

Any advice? I assume I must have missed a small detail in syntax.

 (1)

 (2)

By the way, I am open to completely different methods, also! I was just trying to use loops to do it rather than inbuilt commands.

How can I wite a Maple code that can handle severa...

Please can someone help me with looping involving 4 variables such as S1 S2 S3 S4 from a series

Sn+1 =f(f-a)+u+Vn+w

Vn+1 =wc+f a-An+ u  if An = Un+Vn

How can I generate series of variables using Maple...

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

I have tried to do the above but got the error messages. I tried changing the L in that computation above to i to enable me get the desired result but i couldn't.

 > Please how can I generate the values S1,S2,S3,S4; i1,i2,i3,i4 and r1,r2,r3,r4 and finally do S(t)=S1 + S2 + S3 + S4; i(t)= i1+i2+i3+i4 ; and r(t)=r1,r2,r3,r4  using Maple?
 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)

 >

 >
 >
 >
 >
 >

 >
 >
 >
 >
 (1)
 >
 >
 (2)

 (3)