How does numerical integration work in programming?

Since numbers in the computer are discrete, I was wondering how can a computer calculate the numerical integration of a function? Thanks.

👍︎ 2
💬︎
📅︎ Jan 05 2021
🚨︎ report
An article I wrote for the r/roblox tech-blog about numerical methods and integration of the motion of spinning bodies. robloxtechblog.com/motion…
👍︎ 7
📰︎ r/math
💬︎
📅︎ Dec 10 2020
🚨︎ report
Does numerical integration require a continuous function?

Simple question, if you have a set of data points plotted in 2D, can you numerically integrate them? Or do you need to fit a function to these data points before you can numerically integrate?

👍︎ 2
💬︎
👤︎ u/AJCurb
📅︎ Dec 03 2020
🚨︎ report
Wrote this article on spinning rigid bodies and numerical integration (for Roblox Tech Blog). Delves into mathematical details of simulating rotational motion of rigid bodies, mainly in computer game physics engines. robloxtechblog.com/motion…
👍︎ 5
💬︎
📅︎ Dec 11 2020
🚨︎ report
Can't figure out B to this Simpson's Rule Numerical Integration Problem. I have part A completed, but I don't understand how the series given in part B relates to part A. A hint was given that we should use the "composite trapezoid rule". I just don't see how we can find N for a number as big as 911 reddit.com/gallery/jzbod2
👍︎ 5
💬︎
📅︎ Nov 23 2020
🚨︎ report
Getting Initial Conditions from Numerical Integration Results

Let’s say you have some initial conditions for a set of ODEs and you need to do some numerical integration. Once you have those results, is there a method to back out what your initial conditions were?

I’ve been out of school for a while so I am sorry if my questions is basic or I haven’t worded it correctly.

👍︎ 3
📰︎ r/math
💬︎
📅︎ Nov 19 2020
🚨︎ report
The common Numerical Integration techniques.
👍︎ 3k
💬︎
📅︎ Apr 30 2020
🚨︎ report
|Numerical Integration| What is Simpson's Rule? [Intuition] :) v.redd.it/m572spvr18r41
👍︎ 543
📰︎ r/math
💬︎
📅︎ Apr 06 2020
🚨︎ report
[F#] Numerical Integration in 30 lines, plus 100 lines of tests

I am a mathematician by profession, and am trying my hand at F#.

This is not my first exercise, but I would like some feedback especially on the testing part - I'll soon be building a much bigger system for more sophisticated numerics.

Pastebin: https://pastebin.com/R6z08kER

Gist: https://gist.github.com/OrlandoRiccardo/543fb187e6f00589a7f99cbd8884623b

👍︎ 3
💬︎
📅︎ Sep 25 2020
🚨︎ report
[F#] Numerical Integration in 30 lines, plus 100 lines of tests /r/CritiqueMyCode/comment…
👍︎ 2
💬︎
📅︎ Sep 25 2020
🚨︎ report
[College math: Numerical integration] How can I remove singularities from integral?

I've got an integral from 2 to infinity of 1/[x*ln^2(x+sqrt(x))] to integrate numerically using matlab. First I removed singularities and made it into a proper integral by substitution y=1/x, which gave me integral from 0 to 1/2 of 1/[y*ln^2(1/y+1/sqrt(y))], which still have a singularity and I don't know how to remove it in order to integrate this numerically. Can you help me with this?

👍︎ 3
💬︎
📅︎ Jul 09 2020
🚨︎ report
AP Calc: Numerical Integration with Tables

Self studying BC here. For some rather inexplicable reason, I just suck at numerical integration (Riemann sums, midpoint, trapezoidal, etc). This is specifically the case when the info is in tables with unequal intervals. It always costs me two points when it comes up. I've looked for resources but there's nothing specifically geared to applying those techniques with tabular data. The FRQ solution guides don't make much sense to me.

Could someone give me some resources to work with or guide me through it with an example? That would be much appreciated.

👍︎ 5
💬︎
📅︎ Apr 30 2020
🚨︎ report
A Video Lecture on Numerical Double Integration
👍︎ 12
💬︎
📅︎ Apr 08 2020
🚨︎ report
Numerical Integration of Differential Equations

When can a differential equation be solved through analytical integration, and when can it be solved ONLY through numerical integration. Or in other words: What boxes must a differential equation need to "tick" before I know it can be analytically integrated?

👍︎ 30
📰︎ r/math
💬︎
📅︎ Dec 06 2019
🚨︎ report
Numerical integration is better in certain situations.
👍︎ 57
💬︎
📅︎ Mar 18 2020
🚨︎ report
Ideas for parameterizing this curve in the complex plane and calculating its length by (numerical) contour integration?
👍︎ 2
💬︎
👤︎ u/cl214
📅︎ May 11 2020
🚨︎ report
Error bounds of numerical integration

I am trying to understand how to use the error bound of a trapezoidal numerical integration.

If the error bound is

abs(E) <= (K(b-a)^3 ) / (12n^2)

and

f''(x) <= K

How do I find (or reasonably estimate) K if I don't have the exact f(x) ?

Thanks.

Edit: To elaborate, I'm trying to propagate errors through a rather complex equation that includes a trapezoidal integration. I have the error due to my 6 measured variables accounted for, but I haven't been able to figure out how to account for the error to to the numerical integration. Any help on this would be greatly appreciated.

👍︎ 2
💬︎
📅︎ Jan 22 2020
🚨︎ report
Numerical Methods in C++ Part 1: Newton-Cotes Integration thoughts-on-cpp.com/2019/…
👍︎ 38
📰︎ r/cpp
💬︎
👤︎ u/bmahr
📅︎ Apr 17 2019
🚨︎ report
Very weird results with numerical integration using trapezoid method - Online Technical Discussion Groups—Wolfram Community

The graph I got using the code in the link is VERY peculiar to say the least. I have no idea what's causing it.

https://community.wolfram.com/groups/-/m/t/1840568

👍︎ 2
💬︎
📅︎ Dec 12 2019
🚨︎ report
Numerical integration and optimization

I want to solve something like min_x \int f(x,y)dy automatically. Not sure if there's a way to do this in JuMP with a numerical integration method or if I have to write out the integral approximation.

👍︎ 7
📰︎ r/Julia
💬︎
📅︎ Jun 18 2019
🚨︎ report
Been learning numerical integration recently
👍︎ 390
💬︎
📅︎ Nov 01 2018
🚨︎ report
Numerical Methods in C++ Part 2: Gauss-Legendre Integration thoughts-on-cpp.com/2019/…
👍︎ 26
📰︎ r/cpp
💬︎
👤︎ u/bmahr
📅︎ Apr 25 2019
🚨︎ report
[1902.00648] Numerical Integration Method for Training Neural Network arxiv.org/abs/1902.00648
👍︎ 4
💬︎
📅︎ Feb 05 2019
🚨︎ report
Is there a way to express the position of a celestial body in orbit in r(t) and θ(t) without numerical integration?

As far as I know, there's no mathematical way to analytically express the position of a celestial body orbiting another body in a two-body problem at time t, just like calculating precisely the circumference of an ellipse.

Am I wrong? If I'm right is there an equation that approximates r(t) and θ(t)?

If it helps, I'm trying to plot the density wave theory for my students so they can see where the individual stars go.

Edit: I'm talking about elliptical orbits because there are no perfectly circular and parabolic orbits in real life.

👍︎ 2
💬︎
📅︎ Aug 07 2019
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.