Apply Gauss Quadrature formula to the following equation

조회 수: 4 (최근 30일)
Quinten
Quinten 2016년 11월 17일
댓글: Torsten 2016년 11월 18일
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.

답변 (1개)

Torsten
Torsten 2016년 11월 17일
편집: Torsten 2016년 11월 17일
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
Quinten
Quinten 2016년 11월 17일
편집: Quinten 2016년 11월 17일
I don't understand where the sum goes. I don't understand this at all.
Torsten
Torsten 2016년 11월 18일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by