MaplePrimes Questions

Hello,

I'm trying to find the way to manipulate matrix equalities easily and isolate them as variables like if they were simple real variables but keeping the matrix properties.  However, I couldn't find the way to do it efficiently without describing all the parameters of the matrices.  I'd like to keep them as variables rather than perform matrix operations when defining the expressions. I've attached a snapshot which describes my problem much better:pdf_kmaple.pdf.

For instance, I'd like to be able to isolate the expression that defines the state-space when I change the discretization method.  

I'm wondering if there's a generic way I can use to isolate other matrix systems as well.

Thank you very much for your help!

JMarc

fgh := proc (x) options operator, arrow; [x, x^2, x^3] end proc;

sol := proc (x) options operator, arrow; min(`~`[Re](select(proc (t) options operator, arrow; is(abs(Im(t)) < 0.1e-19) and is(0 < Re(t)) end proc, fgh(x)))) end proc;

eval('sol(x)', [x = X]);

eval(%, X = 1)

 

Why does this not work?

Good morning,

I've been having some trouble entering this expression in Maple 17.

My teacher suggested using this format, however, this format is from 2004 and certainly isn't recognized by the current version of Maple, as it keeps spitting back 0=0 no matter how many different ways I try to enter it.

Could anyone provide feedback on the correct syntax of how to enter this expression? Thank you very much for your time.

Exporting one plot in program works well:

       MapleEngine.EvalMapleStatement(kv, "Export(\"D:\\\\MyGraph.jpeg\",plot(sin(x)*cos(2*x)));");

But if I'm trying to export two plots, program stops working and prints no exception:
        MapleEngine.EvalMapleStatement(kv, "Export(\"D:\\\\MyGraph.jpeg\",plot(sin(x)*cos(2*x)));");
        MapleEngine.EvalMapleStatement(kv, "Export(\"D:\\\\MyGraph2.jpeg\",plot(sin(x)*cos(2*x)));");

What is the cause?

Hello,

I work in maple  2017,but the "interface "command seems doesn't work. But it works in the old version(maple 18). Does anyone know what problem with it?

restart; with(PDEtools);
U := diff_table(Psi(`&psi;_2`, `&psi;_1`));
pde := `&psi;_2`*(diff(Psi(`&psi;_2`, `&psi;_1`), `&psi;_1`))+`&psi;_1`*U[`&psi;_1`]+2*U[] = 0;
&psi;_2 Psi(&psi;_2 + 1, &psi;_1)

   + &psi;_1 Psi(&psi;_2 + 1, &psi;_1) + 2 Psi(&psi;_2, &psi;_1) = 

  0
pdsolve(pde);
Error, (in pdsolve/info) first argument is not a differential equation

How can i solve it?

My Maple worksheet is attached below - where I am solving two quantum mechanics problems, trying to find the eigenvalues for certain potentials.  Using a previous post in Mapleprime (https://www.mapleprimes.com/questions/221629-Can-Maple-Find-Solution-To-Eigenvalue),  I saw how to get the lowest eigenvalue.  My question is how using numeric solutions, I can get the higher eigenvalues and corresponding solutions.  Is there a way to specify that e (the eigenvalue) has to be in a certain range.  I tried to specify assumptions (e>0.6), but that didn't work.  I know that for the second problem (using the shooting method) that the 4 lowest eigenvalues are 0.184358, 0.70747, 1.2065, 1.5625.  Thank you very much for you consideration.

 

ODE_BVP_eigenvalues.mw

 

 

Why does solve not find the value of xp = sqrt(1-v^2) in this worksheet?

SpecialRelativity.mw

Reference: Special Relativity and Classical Field Theory. Authors: Leonard Susskind and Art Friedman

I think I've seen this somewhere in Mapleprimes but I can't locate it. How do you pull the type and number of operations from an equation? 

a:=3*x^3-5*x^2+3*y

                   " *,^,-,*,^,+,* "

 

f := (s) -> -HankelH1(1, s)-2*I/Pi*BesselK(1, s);

evalf(Int(f(s), s = 0 .. 1));
                 -0.2348023134 + 0.3562894462 I

evalf(Int(Re(f(1.*s)), s = 0 .. 1)+I*Int(Im(f(1.*s)), s = 0 .. 1));
                 -0.2348023134 + 0.3562894462 I

evalf(Int(f(1.*s), s = 0 .. 1));
               -0.2094198744 + Float(infinity) I

I don't know if the third one is really an issue, but given that the first two work fine, looks suspicious.

If i have made a component invisible for asthetic reasons, (eg a text box) how can i undo this to edit its contents?

How can i export a plot using open maple in java?

engine.evaluate("Export(\"D:\\MyGraph.jpeg\", plot(sin(x)));");

and 

engine.evaluate("exportplot(\"D:\\MyGraph.jpeg\", plot(sin(x)));");

doesn't work,

exception - com.maplesoft.externalcall.MapleException: Error, (in Export) exported file D:MyGraph.jpeg could not be createdError, plotting was not implemented by the application

 

Thanks.

1. This seems wrong:

applyrule(x::symbol+y::symbol = 0, a+b);
                             a + b

2. Should these two match f(a)?

applyrule((h::anything)(a) = 0, f(a));
                              f(a)
applyrule(x::f(x1::anything) = 0, f(a));
                              f(a)

3. hypergeom will give an error if the arguments are not lists, so how to write a pattern that will match hypergeom(anything, anything, a)? This works but is... skittish:

applyrule('''hypergeom'''(x1::anything, x2::anything, a) = 0, hypergeom([], [], a));
                               0

How do i find the distance between the quasi cyclic codes in maple ?

First 909 910 911 912 913 914 915 Last Page 911 of 2428