jschulzb

150 Reputation

9 Badges

14 years, 41 days

MaplePrimes Activity


These are questions asked by jschulzb

Hi, 

     I'm computing some difficult integrals, involving Spherical Harmonics. I've proved that the answer must be a real number, and yet Maple returns a complex number. Also Mathematica returns purely real numbers, so I wonder if there is a bug in Maple. I found if I break the integrand into real and imaginary parts, and add them I get the right answer...usually.  Anyway's here's the code and the proof, I suspect they could be a bug...

Hi,

     So I'm having a little trouble with command-line Maple 16 on Ubuntu 12.04, 64-bit.  I can enter the commands

plotsetup(gif, plotoutput="testing.gif");
plot3d(sin(x)*exp(y), x=0..5,y =0..5):

and a .gif file will be created with the graph. However, if I save this as a text file "testing.txt" and run it via the terminal command

maple testing.txt

it does not save the graph. Any idea why this is?

So far I've tried

Hi,

     Theres seems to be an error in the SphericalY function when the input is SphericalY( l, -l, theta, phi)

restart;

assume(phi, real):assume(theta, real):

for l from 1 to 2 do  
   m:=-l; 
   s:=SphericalY(l,m,theta, phi);
   f:=s*conjugate(s);
   plot3d(f, phi=0..2*Pi,theta=0..Pi,coords=spherical);#sphereplot(f, phi = 0 .. 2*Pi, theta = 0 ..Pi,  style...

Hi,

     I would like to plot a potential on a sphere, with colours and equipotential lines too. I can easily get the colours with this

f:=(psi-Pi/2)^2 + (theta-.5)^2;
plot3d( 1,psi=0....2*Pi,theta=0..Pi,coords=spherical,scaling=constrained, style=patchnogrid, color =f ,lightmodel=none,contours = 60,numpoints=6000);

but cant get the contours to be the level sets of f.  I tried 2dcontour, contourplot3d, etc, but in spherical cordinates...

Hi,

     I'm reading in a file as

eigvect:=ImportMatrix("C:\\Users\\Sorted_Eigenvectors_1.txt", source=csv):

but I want to generalize this to 

eigvect:=ImportMatrix("C:\\Users\\Sorted_Eigenvectors_i.txt", source=csv):

where i is a positive integer, I tried

eigvect:=ImportMatrix("C:\\Users\\Sorted_Eigenvectors_%d.txt",i, source=csv):

but this is incorrect. What is the correct syntax?

Thanks!

2 3 4 5 6 7 Page 4 of 7