A Piecewise function (

) is created by splicing together several functions, each defined on one interval. Define the argument, extrapolation and smoothing methods, and the functions and their intervals. The piecewise function is a function of one variable with different definitions on different intervals, which must not overlap or have any holes between them. The default
Function name is
pw1.
Select an Extrapolation method to control what happens when the function is evaluated in a point that does not belong to any interval:
Constant (the default),
None,
Nearest function,
Specific value, or
Periodic.
Select a Smoothing:
No smoothing (the default),
Continuous function (to make the function continuous but not its derivatives),
Continuous first derivative, or
Continuous second derivative. For any selection (except
No smoothing), enter a value in the
Size of transition zone field (dimensionless). The default is 0.1. Using the
Transition zone list you can select if the size should be relative or absolute.
Relative size (the default) means that the size is relative in relation to the size of the intervals on both sides of the border.
Absolute size gives smoothing on an interval that is symmetric around the border. If you have chosen to use smoothing and the
Extrapolation is
Constant,
Specific value, or
Periodic, a
Smooth at endpoints check box appears. Select that check box if you want to smooth at the endpoints — that is, the left endpoint of the leftmost interval and the right endpoint of rightmost interval.
For each cell in the Intervals table, enter
Start and
End interval limits. The intervals must not overlap, and there cannot be any holes between intervals. Enter an expression defining the
Function.