Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Simpson's Rule with negative values

  1. Aug 19, 2014 #1
    Hey guys,

    Not claiming to be an expert on numerical methods here but I am doing some digital integration using simpson's rule that takes 10 samples a second to provide me with the "approximate" integral for that time period.

    Right now I am currently taking the magnitude of the value I receive (before integrating it), it is possible that for some of my samples, within the 1 second time period, could be negative. What does this do to the result of simpsons rule? Will it still provide accurate results or is the error greater?

    Thanks!
     
  2. jcsd
  3. Aug 19, 2014 #2

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    Whether or not there are negative function values does not change the accuracy of Simpson's. You can, in fact, add a fixed number to each value- adding that number times the length of the interval to the integral but not changing the accuracy.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Simpson's Rule with negative values
  1. Simpsons Rule Problem (Replies: 1)

  2. Simpson's Rule formula (Replies: 1)

Loading...