Piecewise Playground
Define piecewise functions with {cond:expr, else:expr} and explore discontinuities.
What this template does
This is a ready-to-run GetCalcMaster Notebook starter. Open it into Notebook, run once with defaults, then tweak inputs and keep your assumptions next to the math.
How to use it (recommended)
- Open in Notebook.
- Edit the piecewise definition (intervals + formulas).
- Plot in 2D Graph to inspect continuity and corners.
- Evaluate boundary points to confirm limits and continuity.
- Save a snapshot with the final piecewise definition and notes.
Tip: When a result matters, verify it twice: a unit check + a second method (graph/estimate).
Preview (first cells)
This preview is for readability. The full template loads into Notebook when you click Open.
TEXT
# Piecewise Playground
Supported syntax in 2D Graph:
`{ x < 0 : -x, else : x }`
You can chain cases:
`{ x < -1: -1, x > 1: 1, else: x }`
MATH
# Try plotting:
# f(x) = {x<0:-x, else:x}
MATH
# Or a clamp:
# f(x) = {x<-1:-1, x>1:1, else:x}