functionsmoothMin_exponential
Extends from TRANSFORM.Icons.Function (Icon for functions).
Information
An implementation of the smooth minimum using an exponential term approach. This does not return the exact value of x1 or x2, only an approximation, though the error diminishes as the transition region is exited.
Adapted to avoid underflow and overflow for large values of x1 and/or x2.
Source:
- http://iquilezles.org/www/articles/smin/smin.htm
- https://www.johndcook.com/blog/2010/01/20/how-to-compute-the-soft-maximum/
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x1 | First argument of smooth operator | |
| Real | x2 | Second argument of smooth operator | |
| Real | dx | Approximate difference between x1 and x2, below which regularization starts |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Result of smooth operator |