1 Recursion Warm-up (matlab)
For this problem you are going to rewrite some simple iterativealgorithms as recur-
sive algorithms. The goal is to build your understanding of howrecursion works and
the importance of constructing a proper base case for youralgorithm.
1.1 Sum
Implement a recursive function that calculates the mathematicalsum(tylor series expansion sine)
which approximates sin(x). You can verify your result bycomparing it to the sine
function. For suciently large n, the above should practicallyequal the sine function.
You will need to come up with a suitable recursive identity andbase case for this sum.
Use the following function header:
function y = sumRecursive(x,n)
1.2 n-choose-k
Write a MATLAB function with a header
function
PayPal Gateway not configured
PayPal Gateway not configured