infinite series in mat lab
3 views (last 30 days)
Show older comments
ME 2016 – Computing Techniques Computing Project : Sine – The Infinite Series Problem Statement The sine function can be written in terms of the following infinite series 21 0 sin( ) ( 1) (2 1)! m m m x x m . In this project, you wil l compare your calculation of s in ( x ) based on this series to the built - in Matlab function sin . Task List: S ine – The Infinite Series 1. Write a Matlab function called mysin 1 that sums the series for the sine function using a given number of terms in the series. The function should have the form y = mysin 1 (x, n) . I nput argument s : x , a vector of input values, and n , the number of terms to use in the series. The output argument y contains the values of your sum for sin ( x ). Make sure your function can handle a vector input x and return the proper values of the sum s in y .
Answers (0)
See Also
Categories
Find more on Time Series in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!