integrate Taylor series function?
I am writing a algorithm to test how fast the area under a function can be found. My function is e^(-x^2). when i integrate the function from -3 to 3 i get about 1.77241. Next i tried to compute the area of the function again, but i converted the function to the first 5 non zero terms in the taylor series. I got: 1-x^2+x^4/2-x^6/6+x^8/24+O(x^9) where O(x^9) is the error. when i integrate 1-x^2+x^4/2-x^6/6+x^8/2 from -3 to 3 i get 2119.46 which is not even close to the real integral. how do i compute the area under the taylor series version of the function to get a similar answer to 1.77. Shouldnt the regular function and the taylor series function be equal (except for the error term), which would make the integrals equal???