0% found this document useful (0 votes)
168 views

Numerical Integration Project

This document discusses numerical integration methods. It describes Simpson's rule and the trapezoidal rule for approximating integrals. Simpson's rule uses a second-order Lagrange polynomial to approximate the integral from a to b. The trapezoidal rule approximates the integral as the sum of small trapezoids under the curve. The document outlines a planned user interface for a program applying these numerical integration methods, allowing users to input data and select options to compute the area under a curve.

Uploaded by

ASGHaKCer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
168 views

Numerical Integration Project

This document discusses numerical integration methods. It describes Simpson's rule and the trapezoidal rule for approximating integrals. Simpson's rule uses a second-order Lagrange polynomial to approximate the integral from a to b. The trapezoidal rule approximates the integral as the sum of small trapezoids under the curve. The document outlines a planned user interface for a program applying these numerical integration methods, allowing users to input data and select options to compute the area under a curve.

Uploaded by

ASGHaKCer
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Numerical Integration

Ariel Salazar & Olivia Stopka


Before we start, let's talk basic

Language? Java Where? GitHub

Java Swing
Libraries? JFree Chart Maven? Compatible
Lagrange Interpolation
Lagrange Interpolation allows us to find
f(x) for x values that are not a part of the
dataset.
Numerical Integration Methods

Simpson’s Rule Trapezoidal Rule

The integral from a to b is Consists of taking the


approximated using a second- infinite sum of small
order Lagrange Polynomial. trapezoids under the curve.
This methods is more efficient
when using higher order
polynomials.

Where n is the number of subintervals, a = x o , b = xn , h = (b-a)/n, and xi = a + ih


➢ First, the user will input a dataset in the form
of a text file or inserting the data to the table.
○ The user will also choose the number of
subintervals, n, and the length of each
subinterval, h. How does this all
➢ Next, the program will apply either the connect?
Trapezoidal or Simpson’s Rule equation,
depending on the user’s choice.

➢ Lastly, the area will be returned from one of


the numerical integration functions and will be
displayed within a text field on the GUI.

➢ All user inputs will be validated.


User Interface
1. Import Option: the user can enter data on
Buttons & Inputs the table or upload a .csv or .txt file.

2. H-value: a positive integer, decimal, or


fraction (e.g., 9, pi/4, 2pi).

1 3. N-value: a positive integer that must be even


if, and only if, Simpson’s Rule is chosen.
2
4. Integration Option: dropdown menu for
choosing either the Trapezoidal Rule or
3 Simpson’s Rule.
4
5. Area Button & Field: the button will find
the area and the area will be displayed in the
CREDITS: This presentation template was created by 5 field.
Slidesgo, including icons by Flaticon, and infographics
& images by Freepik.
6 6. Graph Button: the button will show the
graph of the data in another frame if the area
was computed successfully.
1.

Buttons & Inputs


1. Add: Adds a row to the end of
the table. If a row is selected,
then a row will be added
immediately under that row.
2. Delete: Deletes the last row. If
a row is selected, then that row
2.
is will be deleted.
3. Push Down: Pushes all the
33. rows down once.
4. Clear: Clears all the data
4. entered.
5. Browse File: the button will
CREDITS: This presentation template was created by open the user’s file explorer
Slidesgo, including icons by Flaticon, and infographics and ask for a file to be selected.
& images by Freepik. 5.
Import Data Import File

You might also like