core.symbolic¶
Symbolic helpers shared by the models: type checks, smooth norms, quadrature.
Functions
|
Gauss–Legendre nodes and weights on [0, 1], exact for polynomials of degree 2n − 1. |
|
True for CasADi symbols (SX, MX) and numeric matrices (DM). |
|
True for CasADi symbols (SX, MX). |
|
log(cosh x), written to avoid overflow for large arguments. |
|
∫ f over [a, b] by n-point Gauss–Legendre quadrature; a, b and f may be symbolic. |
|
√(xᵀx + ε): the Euclidean norm, differentiable at zero. |