Skip to content

integrate_funct_1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1dT_integrate_funct_1d🔗

Short description🔗

integrate_funct_1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1dT_integrate_funct_1d — Compute the positive and negative areas of a function.

Signature🔗

integrate_funct_1d( function_1d Function, out number Positive, out number Negative )void IntegrateFunct1d( const HTuple& Function, HTuple* Positive, HTuple* Negative )static void HOperatorSet.IntegrateFunct1d( HTuple function, out HTuple positive, out HTuple negative )def integrate_funct_1d( function: Sequence[float] ) -> Tuple[float, Sequence[float]]

Herror T_integrate_funct_1d( const Htuple Function, Htuple* Positive, Htuple* Negative )

double HFunction1D::IntegrateFunct1d( HTuple* Negative ) const

double HFunction1D.IntegrateFunct1d( out HTuple negative )

Description🔗

integrate_funct_1dIntegrateFunct1d integrates the function Functionfunctionfunction (see create_funct_1d_arrayCreateFunct1dArray and create_funct_1d_pairsCreateFunct1dPairs) and returns the integral of the positive and negative parts of the function in Positivepositivepositive and Negativenegativenegative, respectively. Hence, the integral of the function is the difference Positivepositivepositive - Negativenegativenegative. The integration is done on the interval on which the function is defined. For the integration, the function is interpolated linearly.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Functionfunctionfunction (input_control) function_1d → (real)HTuple (double)HFunction1D, HTuple (double)Sequence[float]Htuple (double)

Input function.

Positivepositivepositive (output_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)

Area under the positive part of the function.

Negativenegativenegative (output_control) number-array → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Area under the negative part of the function.

Combinations with other operators🔗

Combinations

Possible predecessors

create_funct_1d_pairsCreateFunct1dPairs, create_funct_1d_arrayCreateFunct1dArray

See also

create_funct_1d_arrayCreateFunct1dArray, create_funct_1d_pairsCreateFunct1dPairs

Module🔗

Foundation