nm

11483 Reputation

20 Badges

13 years, 82 days

MaplePrimes Activity


These are answers submitted by nm

Forget about cloud computing and browser based applications. It will never work and will always have problems.

The current issue is not really with Java. All NPAPI support is being removed from all browsers. So this affects not only Java, but also Mathematica CDF's and any other plugin which uses this technology.

The correct approach to all of this is as follows: Maplesoft makes a free player available which runs the apps. The player is basically the Maple engine. A user installs the free player once. Then to run any app, down it and double click on it. The player runs the app on the PC or the mac or linux. The app does not run inside the browser and not in any cloud thing.

Much better support and a more reliable software, since one does not have to deal with cloud issues and the internet and browsers and all these problems.

With Mathematica, it has the CDF player. Once installed, one can download any CDF app and run them on the PC or mac or Linux.

Given that it takes a second to download anything these days, I do not see why one must be attached to a cloud thing instead of simply run something on the PC or the laptop, and in much more reliable way.

 

You are passing `n` as symbolic

hanoi(n,1,3,2);

which maps to actual `N` in the proc, then you write

     if N>0 then

But N has no value. It is symbol.  So Maple does not know what to do.

Try assigning a value  to `n` before calling your function:

n:=10;
hanoi(n,1,3,2);

directly from help

M := <<1,0,0>|<1,1,0>|<0,3,2>>;
LinearAlgebra[CharacteristicPolynomial](M,x);

 

And if you do not know the commands, you can use the UI itself and it will show you, like this:

 

 

restart;
y:=x/sqrt(1-x^2);

y:=sort(y,x,ascending);

 

 

the function you have produces complex result. To plot the real part, and assuming I understood what you want

n:=100;
step:=0.1;
sol:=seq([i,Re(eval(Simpson(f,i,i+0.1,n)))],i=0..10-step,step):
plot([sol]);

To plot the complex part, Im can be used.

an easy way to handle this is as follows (I do this all the time). It takes about 10 extra seconds of post processing the pdf file: Open the pdf file, Tools->Advanced editing->Crop tool, draw the reactangle around the area you want to crop, double click on the area when done. Click OK, save the file.

Now the PDF file will contain the plot and no other empty space. Now you can include it in latex using \includegraphics{file.pdf}

restart;
DE1 := diff(y(t),t) = z(t);
DE2 := diff(z(t),t) = -y(t)*cos(t);
DEtools[phaseportrait]([DE1,DE2],[y(t),z(t)],t=-5..5,[[y(0)=1,z(0)=0],[y(0)=0,z(0)=2],[y(0)=0,z(0)=-2]],y=-Pi..Pi,z=-3..3,color=aquamarine,linecolor=[red,blue,green]);

restart;
f:=x->x+3;
map(f,[seq(i,i=50..70,5)]);


or

restart;
f:=x->x+3;
seq(f(i),i=50..70,5);

or

restart;
f:=x->x+3;
data:=[seq(i,i=50..70,5)];
f~(data);



 

restart;
eq:=diff(y(x),x$2)+(4/x)*diff(y(x),x)-a*x=0;
dsolve(eq,y(x))

updated, OP made an error in problem statement. The new one is nonlinear. These are hard to find analytical solution for. Did you try it? You can try some specific numeric values for "a" and "n" and use some initial/boundary conditions, and compare the solution from dsolve with numerical dsolve and see if the plots of y(x) are similar.

restart;
eq:=diff(y(x),x$2)+(4/x)*diff(y(x),x)-a*y(x)^n=0;
dsolve(eq,y(x));

collect(A,u);

 

I am not familar with Maple pde solver at all, but with look at help, I get this. You can verify if this look correct

restart; with(PDEtools);
L:=1;
pde:= diff(u(x,t),t$2)+2*diff(u(x,t),t)-diff(u(x,t),x$2)=18*sin(3*Pi*x/L);


ic:={u(0,t)=0,u(L,t)=0,u(x,0)=0,D[2](u)(x,0)=0};
sol:=pdsolve(pde,ic,u(x,t),numeric);
sol:-plot3d(t=0..10,x=0..L,axes=boxed);



fff:=z->z^k;
int(fff(z),z=0..x[2],continuous);

Try help kernelopts and look for printbytes:

--------------------------
printbytes
true/
Print the "bytes used.." message after

false
every garbage collection (tty version).


Default value is true.
-------------------------------

so try kernelopts(printbytes=false)

for interface/notebook version, try

interface(printbytes=false)

and if this does not work, try

interface(quiet=true)

"An interface constant that will suppress all auxiliary printing (logo, garbage collection messages, bytes used messages, and prompt)."

eq:=(a*b+a)^n*a^(-n);
simplify(eq) assuming positive;

 

I've had many hangs in the update to 18.02, where at the end, where the progress bar reaches the end, it stops and the update never finishes.

I tried few times, then on the 4th or 5th time, it actually completed. You might thought the download was completed.

I suggest you try again, and make sure the update actually finishes ok.

(ps. this the first time this happned updating Maple) I am on windows and was updating from 18.01 to 18.02

 

First 16 17 18 19 20 Page 18 of 20