How to write a matlab script and test for percentage error

Hi i am having some problems with coming up with a script to estimate cos (π/3) and the percentage error by adding terms one at a time, starting from cos x = 1.

2 件のコメント

Rik
Rik 2017 年 10 月 4 日
The first step in programming in Matlab is figuring out what it is you want to do. We can read your mind, so you need to explain it.
As the cosine doesn't work with consecutive terms, you are probably talking about something similar to a Taylor series approximation. You need to write down what Matlab needs to do. If you can't do it directly in Matlab syntax, start out with the mathematics.
This sounds like homework. You can find guidelines for posting homework on this forum here.
Jan
Jan 2017 年 10 月 4 日
This sounds like a homework question. Please post the code and explain the problems you have. Currently you did not ask a specific question, so how can we help you to solve your homework?

サインインしてコメントする。

回答 (0 件)

カテゴリ

質問済み:

2017 年 10 月 4 日

コメント済み:

Jan
2017 年 10 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by