sasomao

622 Reputation

7 Badges

17 years, 226 days
Phd.
Paris, France

MaplePrimes Activity


These are questions asked by sasomao

Hi guys,

I've a simple question, can I run a maple mpl file with options? I mean, instad of

maple file.mpl &

doing

maple file.mpl --option1 value 1 --option2 value2 etc &

If yes, how do I instruct the code about what to do with those options, eg assign them to variable?

 

Thanks

salvatore

Hi guys,

I've a bad 6x6 matrix, which contains both very big (10^14) and very small (~10) numbers, so that the inversion with digits=15 is pretty bad (if I multiply the inverse by the original one I've offdiagonal elements of the order of 10^6!!!).

I was trying to calculate the Eigenvalues, but something strange happens. With Digits=15

Eigenvalues=  Vector(6, {(1) = -0.2101e-1, (2) = .83693, (3) = 114.86139, (4) = 19791.80546, (5) = 134594000.00000, (6) = 624049000000000.})

Hi all,

I don't find an easy way to do what follows.

I've a list of names, with assumptions on them, eg:

 

assume(a,real);
assume(b,real):

parameters:=[a,b]

then I try do to something like

i:=0;
for what in parameters do
temp:=i;

assign(cat('crlb_', what), temp);
i:=i+1;
end do

because I want to create variables which keep a trace of the parameters they describe in the last part of their name.

I guys,

I wrote this little function :

 

test:=proc(a,x) 
if has(a,x) then 
    if type(a,`*`) then
        S,R:=selectremove(has,a,x);
    else        R:=1; S:=a;
    end if;
else
R:=a; S:=1;
end if;
return [S,R];
end proc;

could you confirm that it should catch every possible form for a monomial containing or not x?

Hi all

I'm fighting agaist this situation:

ccc:= sin(x);

S:= select(has,ccc,x)
     sin(x)
R:=remove(has,ccc,x);                                  
     sin()

 

what's that??? why doesn't it aswer 1 or " " istead?

How am I supposed to trust in the remove procedure? What should I do in order to...

1 2 3 4 5 6 7 Last Page 1 of 9