Question: 1.1 Sum Implement a recursive function that calculates the mathematical sum y% (2i + 1)! i-0 which approximates sin(). You can verify your result by
1.1 Sum Implement a recursive function that calculates the mathematical sum y% (2i + 1)! i-0 which approximates sin(). You can verify your result by comparing it to the si function. For sufficiently large n, the above should practically equal the sine functio You will need to come up with a suitable recursive identity and b ase case for this sur Use the following function header: function y sumRecursive(x,n) 1.2 n-choose-k Write a MATLAB function with a header function y nchoosekRecursive(n,k) where y is the number of combinations of k 2 0 elements that can be generated from a set of n 2 k items. We call this quantity n-choose-k, denoted (4), where (n)-(n-k)! 71 For this computation, take advantage of the recursive formulea Take extra care to properly define the base case in your recursion. Be sure to explic- itly check that k. If n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
