manueleleonelli

40 Reputation

4 Badges

10 years, 64 days

MaplePrimes Activity


These are questions asked by manueleleonelli

Hi all,
I plot a cube using the command

with(plottools);
cube := cuboid([0, 0, 0], [1, 1, 1], color = black);
plots[display](cube, scaling = constrained, axes = boxed, style = wireframe, thickness = 3, orientation = [40, 75]) 

Now I would like to plot with different colors some of the faces/edges of the cube? How do i do it? Is it better to use a different code for the cube itself?

Bests
Manu 

Hi all,

I have been trying to plot in Maple a Beta Prime Distribution using the Statistics package. I have define it through its density function and its range with the command

U := Distribution(PDF = (proc (x) options operator, arrow; x^(alpha-1)*(1+x)^(-alpha-beta)/Beta(alpha, beta) end proc), Support = 0 .. infinity)

and then assigned it to a random variable Z with the command

Z := RandomVariable(U)

Now I wanted to plot the density...

I am trying to solve the following integral

beta^alpha*x^(alpha-1)*exp(-beta*x)/((1+x)*GAMMA(alpha)) 

with respect to x, between zero and infinity.

If i just integrate it the result that I obtain is

(alpha^2*beta^(alpha+1)*exp(beta)*GAMMA(-alpha-1, beta)+alpha*beta^(alpha+1)*exp(beta)*GAMMA(-alpha-1, beta)+beta-alpha)/beta

My problem is that the alpha is positive and consequently the GAMMA functions do not exist, since the argument...

I wrote down a covariance matrix through the following command:

 A := Matrix([[a, b], [b, c]], shape = symmetric, attributes = [positive_definite]);

and then I computed the Cholesky decomposition of this matrix using afterwards the command simplify as well
B := LUDecomposition(A, method = Cholesky)
C:=simplify(%)
What I obtained is this matrix
Matrix(2, 2, {(1, 1) = sqrt(a), (1, 2) = 0, (2, 1...
1 2 Page 2 of 2