Cos function | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Cos function

Hey šŸ‘‹, Please im trying to use taylor series to calculate the cos(x), But every time i pass number 20 or even cos(15) it gives me a wrong answer, Notice: even first number it gives the correct fractions, but it always 1 i donā€™t know how to make it 0 This is my code, any help will be appreciated https://code.sololearn.com/chBdGYvgtYQ4/?ref=app

5th Aug 2022, 4:08 PM
HeeSo
HeeSo - avatar
1 Resposta
7th Aug 2022, 10:31 PM
SoloProg
SoloProg - avatar