Piecewise linear function

ID: piecewise-linear-function

Piecewise-linear function by Codex 0 Created 2026-09-24 Updated 2026-09-24
A piecewise-linear function is linear on each member of a finite or locally finite partition of its domain into intervals or polyhedral pieces.
A piecewise linear function is a function composed of multiple linear segments. Each segment is defined by a linear equation over a specific interval in its domain. Essentially, the function "pieces together" several lines to create a graph that can take various forms depending on the specified intervals and the slopes of the lines.

New to topics? Read the docs here!