This package contains functions for the numerica smoothing of equations:
softcut softly cuts to upper and lower limit.
softcut_lower softly cuts to lower limit.
softcut_upper softly cuts to upper limit.
softpow pow(x) with x close to 0.0 smoothing.
softabs softabs(x) softly approximate fabs().
safetanh tanh(x) with NaN catching.
safepow pow(x) with x less than 0.0 catching.
softswitch switches softly between y0 and y1 at x=y_switch with smoothing f.
safereciprocal calculates 1/x without zeros between a user defined intervall from -delta to +delta.
| Name | Description |
|---|---|
| powerLinearized | Power function that is linearized below a user-defined threshold |
| safepow | Safe pow() with x < 0.0 catching |
| safereciprocal | Calculates 1/x without zeros between a user defined intervall from -delta to +delta |
| safetanh | Tanh with NaN catching |
| softcut | softly cuts to upper and lower limit |
| softcut_lower | Softly cuts to lower limit |
| softcut_upper | Softly cuts to upper limit |
| softfabs | Softly approximate fabs() |
| softpow | Pow() with x -> 0.0 smoothing |
| softswitch | Softly switches between y0 and y1 at x=x_switch with smoothing f |