MaplePrimes Questions

A user recently sent to me a Maplet that includes the display of an array of plots. This maplet works fine when run under the classic interface but not under the standard interface. As I tried to understand this problem I believe I have narrowed it down to a difference in the way the classic and standard interfaces handle an array of plots.

The attached worksheet is a very simplified example that shows the problem. What should happen is that pressing the "Plot single" button should show a single graph, pressing the "Plot array" button plots the empty axes, and pressing the "Plot displayed array" button displays a 2x2 array of plots. The second and third buttons illustrate the need for "plots:-display" in the action definition for this button.

Unfortunately, this works only in the classic interface. In the standard interface the "plot displayed array" button does not display anything. I should add that it appears to work correctly when exported as a .maplet file and run with the Maplet Viewer.

I have uploaded the worksheet: PlotArrayMapletDem.mw

For example 

y'''-y''+2y'=0 ; y(0) = 1, y'(0)=0, y''(0) =0
ode := diff(f(x), x, x, x)-(diff(f(x), x, x))+2*(diff(f(x), x))
ics:=D(f(x))(0)=0,f(0)=1,......
the I.C. for y''(0) =0 is ?
Please give the format.
Thanks.

Hello,

I am trying to find the product of three groups of creation and annihilation operators. After completing the input of the groups, Maple fails to give me the product of the operators (value of sigma^3) as shown below. What I need is for Maple to give me the ordered product of the three groups, but the "expand" command (lowercase 'e') fails to produce any output. Appreciate any help.

> with(Physics);
> Setup(mathematicalnotation = true);
print(`output redirected...`...

Hello everyone,

I'm trying to solve the following nonlinear differential equation with the given boundary conditions.

I'm trying to compute the rank of large, non-quadratic matrices modulo p=2,3,5 and 7.

For matrix-sizes of (approx.) 20000 x 20000 everything works fine with Rank(p,M) of LinearAlgebra[Modular].

But for (approx.) 40000 x 40000 even the parsing of the matrix is not finished after 5 days (for 20k x 20k this takes 1 or 2 hours) . The system I use has enough ram, so no swaping is involved.

 

First question: I expected the parsing to be O(n^2), why is this not the case?

In matlab, a function is returned a structure H, say H.a, H.b, ...

In maple, I want to call this matlab function, but what returned to maple is a Record:

 

Hs:= getvar("H");

Hs:= Record(a=..., b=..., ...);

 

So how can I convert this record to a normal maple array? so I can access to each element by Hs[1]. 

 

Thank you

Kyle

I am traying to perform the followig operation:

For a giving vector A, where A=[1,3,5]  (defined as A=([1,3,5],datatype = float), calculate a vector B where:

B=[10^1,10^3,10^5].

I tried to use a for cicle to calculate B:

 

for i from 1 by 1 to 3 do  B[i] := 10^A[i] end do

 

The problem is that i dont get a Vectr B but 3 different number with the name B[1],B[2],B[3]. Just B is not defined.

Hi,

I am trying to fit data to a function. I used the funtion Fit() but the results werent right. This is what i did:

 

T := Vector([600, 800, 1000, 1200, 1400, 1600, 1800, 2000, 2200, 2400], datatype = float)

 

Kpco2F := Vector([1.22179966016487*10^20, 8.12830516164100*10^13, 1.66341265037017*10^10, 5.80764417521312*10^7, 1.03276140576140*10^6, 50815.9442560561, 4931.73803954936, 765.596606911256, 168.267406107047, 47.7529273657691], datatype = float)

I have run into some queer behaviour of my Maple 9 software. I gave the following commands:

##############################################################
 with(numtheory):
 xx := invcfrac([[0],[5,1,5,1,4,1]]);
                                        ...

Hi every one,

I am facing a situation here. Whenever, I sub n = 0 or 1, the following ode has a solution. 

But when I adopt other values except the above ones then the maple gives me the error

"division by zero". 

eq11:=(diff(((abs(diff(f(eta),eta,eta)))^(n-1)*diff(f(eta),eta,eta)),eta)
+n/(n+1)*f(eta)*diff(f(eta),eta,eta))=0;
resx:=dsolve({eq11,f(0)=1,D(f)(0)=0,D(f)(12)=0},numeric,method = bvp[midrich],

> f := a+D(x); 

> convert(f(t), diff);

 

Is there a way to tell Maple that "a" is a constant, so (t) won't attach to a? thanks, kyle

Hi there, I'm trying to pass some calculation to Matlab then retrive the result by getvar(), but seems something is getting wrong.

my matlab function is very simple:

 

function out =maple_fun(a, b)

out = a + b;

return

 

this function is saved as maple_fun.m.

 

in Maple,

restart:
with(Matlab):
openlink():
DirectoryLocation := " cd  '/Users/Kyle/Documents/MATLAB/'  ":

sol := dsolve(t*diff(phi(x),x$2)-x*diff(phi(x),x)+n*phi(x),phi(x));
phi := unapply(rhs(sol), x);
BC := [phi(0)=0,phi(1)=0];
with(linalg):
Ccoef := genmatrix(BC, [_C1,_C2]);
CharEqn := det(Ccoef) = 0;

restart;
sol := dsolve(t*diff(phi(x,t,n),x$2)-x*diff(phi(x,t,n),x)+n*phi(x,t,n),phi(x,t,n));
phi := unapply(rhs(sol), x);
BC := [phi(0,0,0)=0,phi(1,1,1)=0];
with(linalg):
Ccoef := genmatrix(BC, [_C1,_C2]);
CharEqn := det(Ccoef) = 0;

I have been using random numbers in other applications than Maple. Usually there is a function, which will give a pseudo random real number between 0 and 1. When I looked for it in Maple I got quite confused, because there are a lot of different options here - obviously because Maple can deliver random numbers/objects in many ways, even following a certain distrubution. I found out it doesn't work by just using rand(), since it is always starting with the same value. Then I found the command randomize(...

how can i specify (range and domain) of a function in the softwere,please answere if you are able to.

First 1692 1693 1694 1695 1696 1697 1698 Last Page 1694 of 2434