+ 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 Answer
7th Aug 2022, 10:31 PM
SoloProg
SoloProg - avatar