olawattad

80 Reputation

2 Badges

2 years, 151 days

MaplePrimes Activity


These are questions asked by olawattad

hello,

I have 3 loops that I want to run, each loop runs a different procedure and have no interaction with the other, each loop takes about 5 hours to run so if I run the program in Series it takes about 15 hours, I can't separate the sheet into a few sheets and run it manually because there is initial data and calculations before the loops, so what I'm looking for is a way to parallel run these 3 loops.

The script I wrote so it would be clearer –

for i from 1 to n do 

for j from 1 to n do 

 x__Up[i,j]:= `Xmax__UP,m`(`P__m`(i,j),`I__m`(i,j),`data__upNc`);      

od:

if (i mod 10 =0 ) then  print(evalf((i)/(n))*100); fi:

od: 

for k from 1 to n do 

for m from 1 to n do 

 x__U[k,m]:= `Xmin__UP`(`P__m`(k,m),`I__m`(k,m),`data__upNc`);      

od:

if (k mod 10 =0 ) then  print(evalf((k)/(n))*100); fi:

od: 

hello 
i have a long proc i am defining in a loop inside the proc for some reason it calculates the value of a1[j+1] and a2[j+1] and assigns it(in the case of the picture j=1 and in j=2 it doesnt sub) but when it is called again in the next iteration  it doesnt sub the value it just calcluated ! 
i would be so thankful for any help ive been stuck on this for a while now 

hello 
i am trying to define a proc that has a local arrays and lists in it
how do i define it in the local row ? saying a is a local array in the proc, do i just write a ? 

thank you 

hello,
i want to animate a sequence from a nomeric solution i recived, i have a sequene for displacment and another one for time, is there a way to do that ? 

1 2 Page 2 of 2