Re: Numerical Integration



"selim selim" <fthsel@xxxxxxxxxxx> wrote in message
<g64se3$15d$1@xxxxxxxxxxxxxxxxxx>...
Hallo,
I have a rectangular domain and equally spaced points on
this domain. At each point I have some variables
(velocity , temperature etc..)
I want to evaluate integral
in the form integral (T(x,y)*u(x,y)+u(x,y)^2) over domain.
I dont have any functions for temperature and velocity ,
just discrete data on the equally spaced points.
How could I do that integral accuretly?
Summation could be , but in order to be more precise what
can I do? I need matlab commands, or a code? (Chebyschev,
Gauss Legendr. etc. could be?)

If you only have fixed points, then forget about
something like Gauss-Legendre, which will
specify the sample points.

You can use any Newton-Cotes rule, of which
trapezoidal and Simpson's rule are good
examples. trapz does trapezoidal rule, and
you can find several Simpson's rule variants
on the file exchange.

John
.



Relevant Pages

  • Numerical Integration
    ... I have a rectangular domain and equally spaced points on ... I dont have any functions for temperature and velocity, ...
    (comp.soft-sys.matlab)
  • Re: Seismic waves, density and temperature.
    ... shear rigidity, K is the incompressibility and R is the density. ... the higher velocity in the slab could mean that the slab is ... The viscosity increases with decreasing temperature. ... problem with respect to slabs. ...
    (sci.geo.geology)
  • Re: Velocity of Aluminum vapor in a vacuum?
    ... That may be the temperature of the hardware that contains the vacuum, ... but that is not the temperature of the boiling aluminum. ... kinetic energy is one half the mass times the square of the velocity. ... molecule [molecules with this velocity outnumber molecules with any ...
    (sci.physics)
  • Seismic waves, density and temperature.
    ... cooler than the upper mantle. ... shear rigidity, K is the incompressibility and R is the density. ... the higher velocity in the slab could mean that the slab is ... The viscosity increases with decreasing temperature. ...
    (sci.geo.geology)
  • Re: Numerical integration of a series
    ... velocity and displacement. ... I had used trapezoidal rule and remember ... routines? ...
    (sci.math.num-analysis)

Loading