Question: procedures


natalie_g 64 Maple

1. Write a procedure to implement this function:
p(n)= x^n – 2^x cos(x), if n<5
nx + arcsin(x), otherwise.
2. Plot two functions in Q1, when n=2 and n=5, both when x is in the interval [0, 5].
3. Write a procedure to implement:
Input: 1-dimensional Array: X
Output: X’s mean and variance
You should use two output params to store “mean” and “variance”.


**I can't use any of Maple's built in functions like "sum" to sum up something**

Please Wait...