Question: Please solve using Matlab (a write a function with one input argument N that returns the value of the sum The definition of your function


Please solve using Matlab
(a write a function with one input argument N that returns the value of the sum The definition of your function can be eg. 1 + ++ 22 32 42 + + i function [s] mySumApproxi mation (N (b) Call your function to approximate by taking 10, 100, 1000 and 10000 terms. Compare your results to the floating-point number that is nearest to the true value of t. This is represented as pi in Matlab. c) In a block of comments, write your observations about how the resulting approximations of behave as the number of terms increases You will need to use the built-in function sqrt for the square root
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
