Apply Gauss Quadrature formula to the following equation

7 Ansichten (letzte 30 Tage)
Quinten
Quinten am 17 Nov. 2016
Kommentiert: Torsten am 18 Nov. 2016
given the equation
d = gm/c integral [0,10] [1 - exp(-(c/m)t)]dt
g = 9.8
c = 12.5
m = 68.1
employ two- through six-point gauss-legendre formulas to solve.
I have no idea what i'm doing and would love help.

Antworten (1)

Torsten
Torsten am 17 Nov. 2016
Bearbeitet: Torsten am 17 Nov. 2016
You are supposed to evaluate
5*sum_{i=1}^{i=n} w_i*f(5*x_i+5)
with
f(x) = g*m/c*(1 - exp(-(c/m)x))
for n = 2,3,4,5,6 and the corresponding x_i and w_i specified under
https://pomax.github.io/bezierinfo/legendre-gauss.html
(or in your textbook).
Best wishes
Torsten.
  2 Kommentare
Quinten
Quinten am 17 Nov. 2016
Bearbeitet: Quinten am 17 Nov. 2016
I don't understand where the sum goes. I don't understand this at all.
Torsten
Torsten am 18 Nov. 2016
To approximate the integral, the function f is evaluated at n intermediate x-values in the interval [a,b]. The n function values so obtained are then weighted by the w_i and summed - that's all.
I think it's best if you first try to understand the procedure from a textbook before you start programming.
Best wishes
Torsten.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Numerical Integration and Differential Equations finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by