Annex60.Utilities.Math.Functions.spliceFunction

# .Annex60.Utilities.Math.Functions.spliceFunction

## Information

Function to provide a once continuously differentiable transition between to arguments.

The function is adapted from Modelica.Media.Air.MoistAir.Utilities.spliceFunction and provided here for easier accessability to model developers.

#### Interface

>     function spliceFunction
>       input Real pos "Argument of x > 0";
>       input Real neg "Argument of x < 0";
>       input Real x "Independent value";
>       input Real deltax "Half width of transition interval";
>       output Real out "Smoothed value";
>     end spliceFunction;

## Revisions

- May 10, 2013, by Michael Wetter:
  Reformulated implementation to avoid unrequired computations.
- May 11, 2010, by Michael Wetter:
  Removed default value for transition interval as this is problem dependent.
- May 20, 2008, by Michael Wetter:
  First implementation.

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos