peace951

15 Reputation

3 Badges

4 years, 238 days

MaplePrimes Activity


These are questions asked by peace951

      how to write a procedure that shuffle a matrix  (c:=matrix([[1,2,3],[3,4,5]] ) by using command randperm in maple?

1. Write a procedure that enables to compute the volume of a cone. Remember that a cone volume can be calculated using the following equation:

𝑉𝑜𝑙𝑐𝑜𝑛𝑒 =1/3𝜋𝑟2ℎ
with r and h generated randomly, both in the range from -100 to 100.

If Maple returns negative figures for r and h, ask it to replace these values with their absolute values.

If Maple returns 0 for r and h, Maple asks directly the user to input desired values.


2) With reference to point 2, you have the following matrix:

[
−65 1 32
1 −12 3

12 −2 2
]
Write a procedure that chooses randomly two numbers from the above matrix and assigns them to r and h. Then, it compares the two cone volumes and returns the largest value.

1 2 Page 2 of 2