I am trying to calculate the value for Pi using Taylor Series. Below is the code that I have, but when I run the program I get a list of 1's and 0's.
Here is my code:
from math import *
import numpy as np
n= 100
x= 1
series = []
for i in range(0,n):
value = (x**(2*i+1)*(-1)**i)/(2*i+1)
series.append(value)
print series