Piecewise Playground

Define piecewise functions with {cond:expr, else:expr} and explore discontinuities.

graphing piecewise functions
All templates

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)

  1. Open in Notebook.
  2. Edit the piecewise definition (intervals + formulas).
  3. Plot in 2D Graph to inspect continuity and corners.
  4. Evaluate boundary points to confirm limits and continuity.
  5. 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}