I want to integrate a function in c++ - so I dug out some numerical integration functions. However, they do not produce the correct results when the limits are infinite.(adsbygoogle = window.adsbygoogle || []).push({});

Simply using 1e6 or something instead of infinity seems like a very "hack" solution... and I also don't know the function ahead of time so I wouldn't know if 1e3 is good enough? or do I need 1e8, etc.

Of course you can find the analytic integral and just evaluate it, but not if the function doesn't have an analytic integral!

What do people usually do to numerically evaluate infinite integrals?

Thanks!

Dave

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

Join Physics Forums Today!

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

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

# Infinite Integrals Numerically

Loading...

Similar Threads - Infinite Integrals Numerically | Date |
---|---|

Trying to find the infinite sum of e^-x using integration | Oct 30, 2014 |

Infinite series and improper integrals | Jun 11, 2014 |

So why does the integral represent an infinite sum? | Jul 22, 2013 |

Integral of an infinite product | May 23, 2013 |

Integration of an infinite product | Apr 5, 2013 |

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