approximation_modes module¶
The approximation modes.
- class gemseo.utils.derivatives.approximation_modes.ApproximationMode(value)[source]
Bases:
StrEnum
The approximation derivation modes.
- COMPLEX_STEP = 'complex_step'
The complex step method used to approximate the Jacobians by perturbing each variable with a small complex number.
- FINITE_DIFFERENCES = 'finite_differences'
The finite differences method used to approximate the Jacobians by perturbing each variable with a small real number.
Examples using ApproximationMode¶
Compute the Jacobian of a discipline with finite differences
Compute the Jacobian of a discipline with finite differences
Create a discipline from analytical expressions
Create a discipline from analytical expressions