# how to implement the algorithm for approximating Cosine using the Taylor series

2 visualizaciones (últimos 30 días)
Fathimath Shifla el 10 de Ag. de 2020
Comentada: Rik el 10 de Ag. de 2020
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 comentariosMostrar 2 comentarios más antiguosOcultar 2 comentarios más antiguos
madhan ravi el 10 de Ag. de 2020
Rik el 10 de Ag. de 2020
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.

Iniciar sesión para comentar.

Vladimir Sovkov el 10 de Ag. de 2020
syms theta
n=4;
taylor(cos(theta),'Order',n)
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Categorías

Más información sobre Mathematics en Help Center y File Exchange.

### Community Treasure Hunt

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

Start Hunting!

Translated by