RaySierra

15 Reputation

One Badge

1 years, 49 days

MaplePrimes Activity


These are replies submitted by RaySierra

@sand15 
Knowing that it can run is a major step. Thanks again

Ray

@sand15 

Thanks for the help. This file runs as expected. I guess my next task is to find out what is wrong with the one I wrote. Any suggestions? Thanks again Ray

Thanks  for your help.I will check out the Grid package.

Thank you for your help. I will trry to upload

 

 


 


add_range:=proc(lo,hi)

local i;
add(i,i=lo..hi);

end proc:

N:=3*10^8:

 

 



parallel_add_range:=proc(lo, hi, n)

   local i, step, i_min, d;

d:=hi-lo+1;
step:=floor(d/n);


       Threads:-Task:-Continue( Tasks=[ add_range,
                   seq( [i*step+lo,(i+1)*step], i=0..n-2 ),
                       [ (n-1)*step+lo,hi ] ] );

#       Threads:-Task:-Continue( Task= add_range,1, );

end proc:

start:=time[real]():
  Threads:-Task:-Start(parallel_add_range, 1, N, 2);
time[real]()-start;

Error, invalid input: add_range uses a 1st argument, lo, which is missing

 

0.64e-1

(1)

 

No

(2)


 

``

Download Test_cooling_task_model_(1).mw

the actual file

Thanks for your patience. I am new to Primes and still tryin to understand!

Page 1 of 1