integrate_funct_1dT_integrate_funct_1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1d (Operator)

Name

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

Signature

integrate_funct_1d( : : Function : Positive, Negative)

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

void IntegrateFunct1d(const HTuple& Function, HTuple* Positive, HTuple* Negative)

double HFunction1D::IntegrateFunct1d(HTuple* Negative) const

static void HOperatorSet.IntegrateFunct1d(HTuple function, out HTuple positive, out HTuple negative)

double HFunction1D.IntegrateFunct1d(out HTuple negative)

def integrate_funct_1d(function: Sequence[float]) -> Tuple[float, Sequence[float]]

Description

integrate_funct_1dintegrate_funct_1dIntegrateFunct1dIntegrateFunct1dIntegrateFunct1dintegrate_funct_1d integrates the function FunctionFunctionFunctionFunctionfunctionfunction (see create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array and create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs) and returns the integral of the positive and negative parts of the function in PositivePositivePositivePositivepositivepositive and NegativeNegativeNegativeNegativenegativenegative, respectively. Hence, the integral of the function is the difference PositivePositivePositivePositivepositivepositive - NegativeNegativeNegativeNegativenegativenegative. The integration is done on the interval on which the function is defined. For the integration, the function is interpolated linearly.

Execution Information

Parameters

FunctionFunctionFunctionFunctionfunctionfunction (input_control)  function_1d HFunction1D, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Input function.

PositivePositivePositivePositivepositivepositive (output_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Area under the positive part of the function.

NegativeNegativeNegativeNegativenegativenegative (output_control)  number-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Area under the negative part of the function.

Possible Predecessors

create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs, create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array

See also

create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array, create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs

Module

Foundation