C Library Functions  - trapezoidal_integral (3)

NAME

trapezoidal_integral(3f) - [M_math] trapezoidal integration

CONTENTS

Synopsis
Description
Options
Returns
Example

SYNOPSIS

subroutine trapezoidal_integral(x,y,ivals,y2)

     real,intent(in)  :: x(*), y(*)
     real,intent(out) :: y2(*)
     integer          :: ivals

DESCRIPTION

Given the arrays X() and Y(), use trapezoidal integration to generate the integral of Y and return it as Y2().

OPTIONS

X input X values
Y input Y values
ivals size of X and Y arrays

RETURNS

Y2 integral of the curve <X,Y>

EXAMPLE


Nemo Release 3.1 trapezoidal_integral (3) August 28, 2026
Generated by manServer 1.08 from 7d07a401-51af-408f-a21c-8be6d9e78569 using man macros.