highsciguy

75 Reputation

7 Badges

11 years, 133 days

MaplePrimes Activity


These are questions asked by highsciguy

I try to use fsolve to solve a set of equations for real parameters alphaij, thetha (they are the real angle and phases in the parametrization of a unitary 2x2 matrix)

assume(alpha11::real,alpha12::real,alpha22::real,theta::real);

myresult:=timelimit(10*time_max,fsolve({mat_M_V[2,1]=0,mat_M_V[1,2]=0,Im(mat_M_V[1,1])=0,Im(mat_M_V[2,2])=0},{alpha11=0,alpha22=0,alpha12=0,theta=0},'fulldigits'));

unfortunately fsolve ignores my assumptions and returns complex solutions

After first tests with my brandnew Maple 16 (64bit) installation on Ubuntu Linux (12.04 Ubuntu Precise) I encountered the following error:

    `evalf/int`, "external hardware float library could not be found/used"

when I run e.g.

     evalf(Int(BesselJ(3,x),x=1..13,digits = 4,method = _d01ajc));

with OpenMaple

I wonder how to fix it.

I have

    export MAPLE=...

and

    export LD_LIBRARY_PATH=......

Is there a command (possibly in a package) which can help in reading parameters from ini text files like

    [section1]

    option1=1.0

    option2=2.0

    [section2]

    option3=3.0

 

Thanks in advance!

I want to extend the Maple CodeGeneration[C] by a handler for the piecewise function (no idea why it is not included).
To this end I did:

    with(CodeGeneration):
    with(LanguageDefinition):
    
    LanguageDefinition:-Define("NewC", extend="C",
        AddFunction("piecewise", anything::numeric,
            proc()

The following simple code

myproc1:=proc({parlist::list:=[]})
return parlist[1];
end proc:

myproc2:=proc(parlist::list)
return myproc1('parlist'=parlist);
end proc:

myproc2([1,2]);

fails with


Error, (in myproc1) invalid subscript selector

The reason is that myproc1 has the optional argument parlist, which has the same name as myproc2. myproc2 seems to make...

1 2 3 Page 2 of 3