functionPiecewise
Piecewise linear function
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Independent variable | |
| Real[:] | x_grid | Independent variable data points | |
| Real[:] | y_grid | Dependent variable data points |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Interpolated result |