Skip to content

derivate_funct_1dDerivateFunct1dDerivateFunct1dderivate_funct_1dT_derivate_funct_1d🔗

Short description🔗

derivate_funct_1dDerivateFunct1dDerivateFunct1dderivate_funct_1dT_derivate_funct_1d — Calculate the derivatives of a function.

Signature🔗

derivate_funct_1d( function_1d Function, string Mode, out function_1d Derivative )void DerivateFunct1d( const HTuple& Function, const HTuple& Mode, HTuple* Derivative )static void HOperatorSet.DerivateFunct1d( HTuple function, HTuple mode, out HTuple derivative )def derivate_funct_1d( function: Sequence[Union[float, int]], mode: str ) -> Sequence[Union[float, int]]

Herror T_derivate_funct_1d( const Htuple Function, const Htuple Mode, Htuple* Derivative )

HFunction1D HFunction1D::DerivateFunct1d( const HString& Mode ) const

HFunction1D HFunction1D::DerivateFunct1d( const char* Mode ) const

HFunction1D HFunction1D::DerivateFunct1d( const wchar_t* Mode ) const (Windows only)

HFunction1D HFunction1D.DerivateFunct1d( string mode )

Description🔗

derivate_funct_1dDerivateFunct1d calculates the derivatives of the function Functionfunctionfunction up to the second degree. It uses a finite difference approximation of order \(O(h^2)\). The derivative is also a function with the same sampling points as Functionfunctionfunction. With the parameter Modemodemode, 'first'"first" and 'second'"second" derivatives can be selected.

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 / integer)HTuple (double / Hlong)HFunction1D, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Input function

Modemodemode (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Type of derivative

Default: 'first'"first"
List of values: 'first', 'second'"first", "second"

Derivativederivativederivative (output_control) function_1d → (real / integer)HTuple (double / Hlong)HFunction1D, HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Derivative of the input function

Combinations with other operators🔗

Combinations

Possible predecessors

create_funct_1d_pairsCreateFunct1dPairs, create_funct_1d_arrayCreateFunct1dArray, smooth_funct_1d_gaussSmoothFunct1dGauss, smooth_funct_1d_meanSmoothFunct1dMean

Module🔗

Foundation