MaplePrimes Questions

I have a question about the different possibilities for calling a little used function from a package. It seems that there are three ways to do that:

1) Load the package and use te short form of the call e.g.
> with(combinat);
>randperm(5);

2) just load the command e.g.

>with(combinat,randperm);
>randperm(5);

3) use the long form of the call e.g.

>combinat[randperm](5)

4) with the use command e.g.

Hello,

 

I have a .dat file with three colluns, namely E,  a and b and N rows. The objective is to compute a function of a, b and a given value K F(a,b,K).  I would like to write a maple code that read the element in the first colum, E. If  E is lower or equal to a given value K, than we compute a term of f(a,b,K). After check the N rows, F(a,b,K) = sum(f(a,b,K)). I am new to maple, so I can`t figure out how to write this function.

Hi

I have a plot using plot() function. I would like to label the x-axis using math symbol (example a_subscript 0).

Is there any way I could do this. I tried label=["a[0]", "some text"]. However, the label on x-axis appears as a[0].

 

I am using Maple 15 Worksheet.

Thanks in advance.

I have these two procedures which produce 2/3 parts of my snowflake. But HOW do I angle them to put them together? Or should I modify one to cover the entire snowflake? If so, how should I modify my procedure?


This produces an "up right" fractal of a shape basically like this:   __/\__

Koch:=proc(n::posint)    
  if (n=1) then return("F"); fi;
 ## now n>1
  return( cat( " ",Koch(n-1), "L", Koch(n-1...

Hi,

 

I'm having trouble finding the maximu of the following function over a defined range. (Note: I dont have the global optimization toolbox... don't have that sort of money!)

From my system of 3 DE's I get the solution with dsolve.

One such solution:

f(G)=_C3 MathieuC(b,p,G)+_C4 MathieuS(b,p,G)

 

For given b and p. How can I find the maximum for a range of G. For example G=0 .. 100.

 

Below is my code for solving a solution of three first order ODEs using the 4th-order Runge-Kutta method.

I have been able to successfully plot the solutions of each of the ODEs (x,y,z) against time t, however I am struggling to produce a plot in the three dimensional phase domain of x,y,z. Could anybody suggest what commands to use as everything I have tried (plot, plot3d, implicitplot3d etc) has produced an error. 

h:= 0.01:
N:= 200:
x:=Vector(N+1):

if given a permutation group

1 2 3

2 1 3

How to calculate the cycle factorization and type of permutation group f in polya counting in maple

with(Statistics):

F := ((1/6)*z+(1/3)*z^2)/(1+(1/6)*z+(1/3)*z^2);

Dist := subs(z=t,F);

RealDist := Distribution(CDF = unapply(Dist(t-1),t)); # using this Distribution for Maple DistributionX:=RandomVariable(RealDist); # Random Variable

Pgraph := DensityPlot(X, range = -1 .. 1);

A := Sample(X, 1):

when i look help example, it has a very high range 3500,

when i want to change the range to small , it run very long time at Sample function like endless

F := ((1/6)*z+(1/3)*z^2)/(1+(1/6)*z+(1/3)*z^2);

Dist := subs(z=t,F);

RealDist := Distribution(CDF = unapply(Dist(t-1),t));

X:=RandomVariable(RealDist);

CommonDensity := PDF(X,t);

 

F do not have D(t) but density have D(t) , what is D(t)?

i have this:

u:=[a=x,b=w];

p:=[1=4,3=2,5=2];

How can I write a procedure which produces following:

[u(a)=x,u(b)=w],[p(1)=4,p(3)=2,p(5)=2]

Problem is extracting and then using variable name inside the printing. regards

So, I have to minimize only one variable, but with totally insane constraints. For simplicity, I want to solve it only for n=4 and specific graph, so it will be a little bit easier than described below.

1n is a column of "1".
So, is it possible at all? I spent almost 5 hours, tried everything that is possible to google, but still can't run it. Here is what I've done(as 'D' is reserved, I used 'B' instead):

a := .4*x^3+.3*x^2+.2*x+.1;

z^coeff(b, x^0);

it should be z^1

however can not run this, how to get this constant term 1?

Dear Experts,

 

 

I have an equation which needs to be simplified. However it is mostly in Bessel I and BesselK. To simply it I have used the simplify( expression,

Can somebody explain me this:

http://www.maplesoft.com/support/help/Maple/view.aspx?path=LinearAlgebra/ToeplitzMatrix
http://en.wikipedia.org/wiki/Toeplitz_matrix

in wiki it started from 1 at [1,1] if using below

however maple package started from 5

restart;

x := 1;

y := 3;

input := [1, 2, 3, 4, 5, 6, 7, 8, 9];
with(LinearAlgebra):

T1 := ToeplitzMatrix(input, 3);

T1 := Transpose(result);

First 1594 1595 1596 1597 1598 1599 1600 Last Page 1596 of 2430