MaplePrimes Questions

this is a practice question that my professor give us. we need to write down the procedure

Given a list L of size N, split it into two equal size
lists L1 and L2 such that
– L1 = L[1..N/2]
– L2 = L[N/2+1..N]
• Use Select Sort to sort list L1
• Use Select Sort to sort list L2
• Merge the sorted L1 and L2 into a list L3 suchthat L3 is sorted.
• Print list L3

thanks

we are not allowed to use any build-in procedure such as Max

 

When I plot(cos(2*x^2)) the plot doesn't look right.  The graph area between -7 and -8 jumps and similarily on the positive x-axis.  It doesn't appear to affect values just the visualization of graphs.  If you plot(cos(2*x^2),x=-7..-8) the graph is fine. 

Hi,

can Maple evaluate repeated compositions in a symbolic way?

q:=x->x+1;
(q@@n)(x);

expected result::

x+n

 

Thanks

I want to interpolate two colors

CI := proc(r)
   local X, Y;
   X := [0, 100/255, 0];  Y := [1,1,1];   
   #return r*X+(1-r)*Y
   return [r*X[1]+(1-r)*Y[1], r*X[2]+(1-r)*Y[2], r*X[3]+(1-r)*Y[3]]
end proc: 

plot3d(0, x=0..1, y=0..1, style=surface, axes=boxed, orientation=[-90,0], color=CI(x));

works. However the first version with return r*X+(1-r)*Y fails. Why? Both give the same result for CI(0.9) and true for type(CI(0.9),list).

Thanks,

Peter


Hello,

Is there a direct way to calculate the area of the following 2D region in Maple (analytically or numerically).
The borders of the  region: y=x, y=2*x, x*y=1, x*y=2 {x>0,y>0}
Is it possible to define such region for integration (symbolic or numeric) in Maple?

Hi

Some time ago I started to write my own modules.
I've a problem with a module calling an export of another one. Both have the "package" option.

The first module, Math_Tools_ex export a "diffindice" procedure. I copy here the relevant part of the code:


####################################
Math_Tools_ex:=module()

export diffindice, doublederivcov,Dimensione,mix, Test_Symmetry, Double_dag ;
export Coords,A,M,G, Abstraction;
global X, c, dimensione,abstraction;

Hi, can some one help me solve this differential equation. diff(y(r), r, r) = -2*(diff(y(r), r))/r-1.910049266*10^5*polylog(3/2, exp(-0.4813739e-1+0.203e-2*y(r))) the boundary conditions are: y(infinity)=0, Dy(0)=0 Thank you MS

Hello,

How can I count the rows of a (m,n)-Matrix.
describe[count](M) or something else??

BR
CHR

I can insert a table from the Insert menu > Table ..., and I can modify all its properties etc. But is there any way I can "populate" a table with data? Say, for example, this table, on p.167 of my set book, http://books.google.co.uk/books?id=AKsLy0rVGuwC&pg=PA165&lpg=PA165&dq="richardson's+extrapolation+with+five+terms"+"advanced+mathematical+methods+with+maple"&source=bl&ots=ngJbnsw304&sig=D7yj31K_CMLwtvBWo62MXph0qBY&hl=en&ei=KzgWSvu9Gca5jAf2lsX_DA&sa=X&oi=book_result&ct=result&resnum=1#PPA167,M1

It appears that the eigenvalues that Maple computes here are incorrect:

Hello,

I would like to add a date to label of axes in this example. Is it possible in Maple 12?

Hello - I wonder if anyone can help.

I want to convert the square root of 2 into base 12 from decimal, to about 1000 digits. I've had a go at this with Maple using convert/base but this will only let me convert integers. Is there a way to display sqrt(2) in base 12, either by calculating sqrt(2) and then converting, or calculating and converting all in one go?

Thanks for any suggestions

Simon

Hi, I'm using huge sets of 50,000 points each to try to create a huge fractal image.  They are generated using something like the chaos game, but in order to get the detail I'd like I want to use over a million points, but I feel like there is a limitation somewhere as when I merge a couple sets (Q:=union(A,B,C,D); it doesn't create a more detailed point plot.  Is there a limitation to the size of sets in maple.  I'm using maple 11.02 on a mac.

Thanks a lot.

I was wondering if there was a way to restart fscanf so that after using it a certain number of times I can restart from the start of the file and read the information again.

Thanks for the help.

Hi I am in the process of solving 4 coupled PDEs, with their associated ICs and BCs and have obtained solutions up to a time t=T, but at this time I need to change one of the boundary conditions on one of the dependent variables from a value condition to a gradient condition. 1) Can this (structural) change in the BCs at t=T be built into the set of BCs set right at the start of the running the solution, and if so how?
First 2127 2128 2129 2130 2131 2132 2133 Last Page 2129 of 2434