Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Bogosort

I'm trying to implement bogosort procedure and don't really have any idea where to start from. I know that its a method used by randomly putting a list back in order. Ive programmed bubble and cocktail but dont really understand how i would could a random sort.

Any help would be greatfull!!

 

Is there a way to plot POINTS in plot3d?  POINTS is described in the PLOT and PLOT3D Data Structures help section.

I have made it work in a 2d plots, but I want to plot points in 3d (a sort of 3d scatter plot).   In the Structures help section it says that the POINT structure is used to define a set of points in 2 or 3 space (if a z value is also supplied).

In the plot3d/options help it makes reference to defining symbols for ploting points.  But I can't figure out or find any examples of how it is done. 

Any help would be appreciated.

Hi, I have a list L:= { [ a, 34], [ b, 45]....}. how would I find the lowest value in this list? I am looking for a method besides just using the code min ( L[ ] )

How do I Read a file into maple.  I searched mapleprimes but it appears to be obscure topic. 

I keep getting Error, invalid terms in product.  I've tried backslash for the path name and forward slash for the pathname.  How would I read a textfile for example if it's a file on the F drive under the folder name Jan2010?

f(x) = 4*cos(x)-exp(x)

g := proc (x) options operator, arrow; x-(4*cos(x)-exp(x))/(-4*sin(x)-exp(x)) end proc

tot := 1.3

for i while i < 10 do tot := subs(x = tot, g(x)), print(%) end do:tot

Hello,
I am not quite confortable with Maple.
Is some body able to help me in calculating the discrete Fourier transform of  a 2-dimensional matrix and performing its corresponding 3-dimensional plot? For the moment, I am using Maple 11.
Thank you in advance

 

test := proc(x::integer, {y::posint:=1}, {z::posint:=1}, $)
  printf("%a\n", 'procname'(args));
  if x > 100 then
    procname(x-y-z-1, 'y'=10);     # not working (nor ''y'', uneval(y), evaln(y) etc.)  
  elif x < 100 then 
    procname(x-1, args[2..nargs]); # working  
  else
    NULL;
  fi;
end:
test(1000);
Error, (in test) invalid input: too many and/or wrong type of arguments passed to test; first unused argument is 1 = 1

For example,how to plot n points on a sphere,the points contiguous are isometric.

or plot a one point alpha,and then can generate n points whose center is alpha.

of course,they are all on the same sphere,

 

For m=1,2, how do I show with Maple that the first two moments of the Borel-Tanner distribution are simple functions of k and lamda, e.g., k/(1-lambda) for the mean? How do I get the closed-form expressions with maple? Code:

simplify(sum(x^m*k*x^(x-k-1)*lambda^(x-k)*exp(-lambda*x)/factorial(x-k), x = k .. infinity)) assuming lambda > 0, lambda < 1, k::posint; evalf(subs(k = 1, lambda = .8, %))

To judge results of functions coded in double precision against precise results (as they may be given by Maple) one has to respect decimal presentations on one side and IEEE on the other side.

For that one can use routines developed by Florent de Dinechin, which are worth to be better known.

Here is a Maple sheet showing how one can do it (looking at the complex valued power function using evalhf versus using MS VC2005 as an example).

What's wrong? 
Should I use for this function NLPSolve?

restart;
with(Optimization);
print(`output redirected...`); # input placeholder
  [ImportMPS, Interactive, LPSolve, LSSolve, Maximize, Minimize, NLPSolve,
    QPSolve]

 

Dear team,

I am PhD scholar in UK (University of Birmingham coming from Pakistan)

I want to solve a matrix of 24*24 matrix for eigen values but fail to do it. please help me or give me suggestion to solve it by maple.

i am also sending u matrix written in Maple 12

may i know functions for which the computational cost of evaluating their first derivative is higher than the function it self.

I want to plot the following equation

theta0 = 10.00000000*(2.718281828-exp(1.000000000*S))/exp(1.000000000*S)

I want that theta0 should be my x-axis in the plot and S should be the y-axis in the plot.

Can any one help me out?

Thx

First 1876 1877 1878 1879 1880 1881 1882 Last Page 1878 of 2243