how to implement the algorithm for approximating Cosine using the Taylor series
显示 更早的评论
The Taylor Series approximation for Cosine with varying values of n from n=0 to n=4 is given. and i have to use two arguments, theta and n where theta is angle in radians and n is the number of terms.
4 个评论
John D'Errico
2020-8-10
You need to write it. This is your homework, not ours. If we write it for you, then you learn nothing, except how to get someone to do your work for you. And you can surely do some reading online to find the basic algorithm. All you need do then is convert the pseudo-code into MATLAB. And that needs to be your job.
Fathimath Shifla
2020-8-10
madhan ravi
2020-8-10
Next time please post what you have tried. Please don’t expect others to write your homework.
Rik
2020-8-10
Flag by Fathimath Shifla:
turns out it did not work before because I was using an alternative for Matlab. I would like to remove it
The mere fact you were using Octave doens't make this question not appropriate for Matlab Answer. I would even suggest it is more relevant here if it doesn't work on Octave. In case you think of removing your question and/or change your username to avoid detection of cheating on your homework: don't bother. I have made a copy below, and site admin are generally able to restore such edits.
how to implement the algorithm for approximating Cosine using the Taylor series
The Taylor Series approximation for Cosine with varying values of n from n=0 to n=4 is given. and i have to use two arguments, theta and n where theta is angle in radians and n is the number of terms.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Parametric Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!