Posts by Portal do Futuro • 23 points
1 post
-
1
votes2
answers783
viewsQ: How to implement the cosine function using Taylor series in Python?
Guys, I have the following problem: Until then I made the following code: import math def cos(x, n): soma = 1 formula = (((-1)**n)*(x**2*n))/math.factorial(2*n) for i in range(n): soma += formula…