Robert Israel

6582 Reputation

21 Badges

19 years, 52 days
University of British Columbia
Associate Professor Emeritus
North York, Ontario, Canada

MaplePrimes Activity


These are replies submitted by Robert Israel

No, it doesn't clarify anything.  I was not missing the negative sign.  The function polylog(3/2, z) is increasing on the interval [-1,1]  and has no real roots other than z=0. 

I have no idea why your prof thinks using a "subroutine" to evaluate the polylogs is the key ingredient.
Subroutines are what Fortran had instead of procedures.  Maple  already has the capability of evaluating
polylogs.  A "Runge-Kutta like scheme" is used to solve an initial value problem.  Again, Maple can do
this with dsolve(..., numeric), with rather better methods than Runge-Kutta.  The real problem is that the
differential equation has no solutions satisfying the boundary condition y(infinity)=0.  All solutions will
go to infinity as r -> infinity.  I suggest telling that to your prof. 

I have no idea why your prof thinks using a "subroutine" to evaluate the polylogs is the key ingredient.
Subroutines are what Fortran had instead of procedures.  Maple  already has the capability of evaluating
polylogs.  A "Runge-Kutta like scheme" is used to solve an initial value problem.  Again, Maple can do
this with dsolve(..., numeric), with rather better methods than Runge-Kutta.  The real problem is that the
differential equation has no solutions satisfying the boundary condition y(infinity)=0.  All solutions will
go to infinity as r -> infinity.  I suggest telling that to your prof. 

C + 1000 doesn't work because C is a Vector and 1000 is a scalar. map(`+`, C, 1000) should work, as I suggested in another thread. Alternatively, C + Vector(10^5, 1000) which constructs a Vector of the appropriate size and adds it to C. But don't call the result D because that is a reserved name.
C + 1000 doesn't work because C is a Vector and 1000 is a scalar. map(`+`, C, 1000) should work, as I suggested in another thread. Alternatively, C + Vector(10^5, 1000) which constructs a Vector of the appropriate size and adds it to C. But don't call the result D because that is a reserved name.
Floquet theory covers such things. See e.g.
Floquet theory covers such things. See e.g.
> R2next:= map(`+`, R2, mu1);
> R2next:= map(`+`, R2, mu1);

Well, then you do want a 3d plot.  But the world should not be flat, it should be a globe.
I think it may be best to plot the continent outlines as curves rather than using an image.

Well, then you do want a 3d plot.  But the world should not be flat, it should be a globe.
I think it may be best to plot the continent outlines as curves rather than using an image.

I think what you want is

> mtaylor(f(x+dx,y+dy,t+dt),[dx,dy,dt],3);

 

f(x,y,t)+D[1](f)(x,y,t)*dx+D[2](f)(x,y,t)*dy+D[3](f)(x,y,t)*dt+1/2*D[1,1](f)(x,y,t)*dx^2+dx*D[1,2](f)(x,y,t)*dy+dx*D[1,3](f)(x,y,t)*dt+1/2*D[2,2](f)(x,y,t)*dy^2+dy*D[2,3](f)(x,y,t)*dt+1/2*D[3,3](f)(x,y,t)*dt^2

I think what you want is

> mtaylor(f(x+dx,y+dy,t+dt),[dx,dy,dt],3);

 

f(x,y,t)+D[1](f)(x,y,t)*dx+D[2](f)(x,y,t)*dy+D[3](f)(x,y,t)*dt+1/2*D[1,1](f)(x,y,t)*dx^2+dx*D[1,2](f)(x,y,t)*dy+dx*D[1,3](f)(x,y,t)*dt+1/2*D[2,2](f)(x,y,t)*dy^2+dy*D[2,3](f)(x,y,t)*dt+1/2*D[3,3](f)(x,y,t)*dt^2

And here's one way to get a colour image as a 2D plot.  Warning again: this produces a huge plot object.  That's probably why ImageTools:-Preview makes a 3d plot rather than 2d.

> FileLocation:= cat(kernelopts(datadir), "/images/tree.jpg");
  A:= ImageTools:-Rotate(ImageTools:-Read(FileLocation),90):
  for i from 1 to 3 do
    P[i]:= plots[listdensityplot](A[1..-1,1..-1,i],style=patchnogrid);
    C[i]:= op(indets(P[i],specfunc(anything,COLOR)));
    L[i]:=convert(convert(C[i],list)[2..-1],Vector) 
  end do:
  CC:= COLOR(RGB,seq(L[(i-1) mod 3+1][i], i = 1 .. nops(C[1])-1)):
  subs(C[1]=CC,P[1]);

And here's one way to get a colour image as a 2D plot.  Warning again: this produces a huge plot object.  That's probably why ImageTools:-Preview makes a 3d plot rather than 2d.

> FileLocation:= cat(kernelopts(datadir), "/images/tree.jpg");
  A:= ImageTools:-Rotate(ImageTools:-Read(FileLocation),90):
  for i from 1 to 3 do
    P[i]:= plots[listdensityplot](A[1..-1,1..-1,i],style=patchnogrid);
    C[i]:= op(indets(P[i],specfunc(anything,COLOR)));
    L[i]:=convert(convert(C[i],list)[2..-1],Vector) 
  end do:
  CC:= COLOR(RGB,seq(L[(i-1) mod 3+1][i], i = 1 .. nops(C[1])-1)):
  subs(C[1]=CC,P[1]);

First 89 90 91 92 93 94 95 Last Page 91 of 187