infinite series in mat lab

3 次查看(过去 30 天)
Landon
Landon 2014-9-11
评论: José-Luis 2014-9-11
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 .

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Time Series 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by