Le 12/05/2015 17:31, fujimoto2005 a écrit :
I want to integrate a discontinuous function whose number of discontinuous
points are 3-4.
I know I can get an enough accurate result when I divide whole integrate
range to sub-ranges over which the function is continuous and apply the
standard
Le 12/05/2015 18:08, Serge Steer a écrit :
.../...
in the first case it seems that intg gives quite good results even
with a discontinuous function:
Actually, the algorithm used by intg() is self-adaptative. It
automatically refine the sampling of intervals where the function varies
I want to integrate a discontinuous function whose number of discontinuous
points are 3-4.
I know I can get an enough accurate result when I divide whole integrate
range to sub-ranges over which the function is continuous and apply the
standard intergration program such as inttrap for each range