segfault

140 Reputation

4 Badges

2 years, 81 days

MaplePrimes Activity


These are questions asked by segfault

Relative path does not seems to work on Linux.
 e.g. consider the read command
 `read  "/home/harpo/skits/slapstick/boguscalculus.mw"

At the moment I have to enter the full path above as stated to be able to read in "boguscalculus.mw"

This highly unfortunte, as generally you want to specify a path, independent of the home path.

That would mean

read "~/skits/slapstick/boguscalculus.mw"   , but this does not work. Any idea why ?

Furthermore using "currentdir" to set the current directory, I also have to use the full path from root "\" which is highly unusual.

Lastly given that I set a current directory with currentdir, how do I use the currentdir to read a file inside currentdir with read command ?

e.g.

currentdir "/home/harpo/skits"
how do I read the file in a worksheet using from the  currentdir

e.g. it should be

read "slapstick/boguscalculus.mw"

But that doesnt work either.

It is not clear to me how to set up parallel processing for let's say 10 completely independent tasks/processes process1,process2 .....process10

Further, no communication between the 10 tasks/processes, process1,process2 .....process10, takes place and they only use  previously calculated functions and variables in the worksheet.

So how do you set up the 10 processes to run in parallel using proc or grid.  ??

I cannot make out from the examples in the manual how and where the processes are run.

I cannot find any examples of how to raise the software memory limits to maximum with the mentioned  -T switch in the manual to avoid memory allocation error popup.

Neither are there any examples posted on the web.

It cannot be a hardware allocation error, as the system memory is large.

So how is the -T switch implimented

Is it possible to have a variable in a filename ?

as an example if I save a file by


save M, "Result(Variable).txt";

So If Variable is e.g. set to

Variable:=10;
then the filename saved should be
Result(10).txt

Example code

printlevel :=1     

for indx1 from 1 by 1 to  3  do  

f[indx1] :=indx1;  

 end do;

This prints
f1:=1
f2:=2
f3:=3

How do I use the "save" command to save exactly the loop's results above to a file so that I can read the file later and execute it in another  maple worksheet.

The maple manual https://www.maplesoft.com/support/help/Maple/view.aspx? 

for "save"   contains no examples, and definately not how to save results of a loop using the save command. e.g. how do you append  with a file using the "save" command ?

Note: I dont need any help with reading the results, from the saved file, my question is only about writing the results with "save" command. The "save" command gives me the best results for reading files back into a speadsheet, and text file save routines just gives me ascii garbage and not the exact results in executable maple format as "save" does, saving exacltly what you see on screen. Therefore text save routines are useless to me.

1 2 3 4 5 6 7 Page 2 of 8