Nepedia
Back to Discover
Independent Reader
🔢

Piecewise function

math Maturity 11-13 Next article →

Imagine a path that changes its rule at different spots.

Piecewise linear function gnuplot
Piecewise linear function gnuplot

In math, we call this a piecewise function. This is a function that uses different rules for different parts. We call these parts subdomains. Each subdomain is a small section of the whole group.

Absolute value
Absolute value

One famous example is the absolute value function. It uses one rule for numbers less than zero. It uses a different rule for numbers zero or higher. This makes negative numbers become positive.

Sometimes these parts join together smoothly. Other times, there is a jump. A jump discontinuity is a break where the path skips.

Upper semi
Upper semi

A function can also be piecewise constant. This means the rule stays the same for a while. This can make a shape that looks like steps. These rules help us model how people see. Our eyes often see smooth areas and sharp edges. This is a lot like how a cartoon looks. We can use these pieces to make many shapes.

160 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:Piecewise linear function gnuplot.svg
Piecewise linear function gnuplot.svg
File:Absolute value.svg
Absolute value.svg
File:PiecewiseMonoDiff svg.svg
PiecewiseMonoDiff svg.svg
File:Upper semi.svg
Upper semi.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.