sasomao

602 Reputation

7 Badges

17 years, 85 days
Phd.
Paris, France

MaplePrimes Activity


These are questions asked by sasomao

Hi all,

I've just added a reply to an old thread I opened some month ago, but I don't see the thread at the top of the recent questions. Where is it gone????

Should I re-open a thread?

Thanks

 

ps the thread was this one: http://www.mapleprimes.com/questions/35837-Execution-Stopped-Unhandled-Signal-Caught-UNKNOWN-1#comment96090

Hi all,

 

I get this strange (to me) behavior:

 

interface(showassumed=0);

assume(theta,real);
assume(phi,real);

SourcePosition:=[phi,theta];

parameters:= [SourcePosition[1],SourcePosition[2]]: 
 save parameters, "./parameter.txt";

wanted_par:=[convert(SourcePosition[1],string),convert(SourcePosition[2],string)]: 
save wanted_par, "./wanted_par.txt";

Hi all in my (very long) code I deal with many dozens of procedures that use a lot of global variables. I declare all of them in the classic way: a:=proc(b, ..., c) local ... global g1, g2, ..., gn; body end proc; I was wondering if there is a way to create a global variable containing the names (not the values) of the global variables g1...gn, so that I can use this variable to pass all the global to the procedures, instead of having to write all of them every time... Thanks S.
Hi all I'd like to have a for that runs for the pilot index inside a list of names, and that saves, for each value of the index a variable in an outer file. My problem is that I want the both the variable's name and the file's name to contain the name of the index, and I cannot obtain this behavior, as save asks for a name, not a command. My code would be something like A:=[a,b,c]; for i in A do cat(Mickey_,i):= something; #### that will correctly create Michey_a, Michey_b and Michey_c
Hi everybody is there a built-in procedure that transforms a complex number in its exponential form: a+I*b -> sqrt(a+b) exp(I*arctan(b/a)) Tks S.
1 2 3 4 5 6 7 Page 2 of 9