Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I've using numerical integration method (Simpson rule) to evaluate a definite integral in the interval [a,b]. I was wondering what is the ideal way to approximate the integral in the boundary [a,b) or (a,b] or (a,b) when for example, the function inside the integral does not exist at that point. What I usually do is add a small constant to the open boundary, for example to evaluate integral at (a,b], I will evaluate at [a+10^-6,b]. What are your thoughts?

Secondly, are there any numerical integration methods available in R?

thanks,

Sam

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Numerical integration simpson

Loading...

Similar Threads - Numerical integration simpson | Date |
---|---|

I Gaussian Quadrature on a Repeated Integral | Nov 28, 2017 |

I Decomposing a Function for Numerical Integration | Sep 24, 2016 |

Numerically integrate bivariate function | Feb 12, 2016 |

Help with numerical integration | Dec 30, 2015 |

Tricky Intregral for numerical quadrature | Jan 21, 2015 |

**Physics Forums - The Fusion of Science and Community**