x, ^, sqrt(), abs(), sin(). Conditions accept < <= > >= != ==, and/or.
Domain
Range (approximate)
Plot
Drag to pan, scroll to zoom.Sample Points
| # | piece | expression | condition | x | f(x) | valid |
|---|
Example Data Table
| # | Expression f(x) | Condition on x | Notes |
|---|---|---|---|
| 1 | x^2 | x < 0 | Quadratic on negatives. |
| 2 | 2*x + 1 | 0 <= x && x <= 3 | Closed interval, linear. |
| 3 | 1/(x - 4) | x > 3 && x != 4 | Asymptote at x=4 excluded. |
| 4 | sqrt(x-5) | x >= 5 | Square root, domain starts at 5. |
Formula Used
Domain is the set of all real x for which at least one piece’s condition is true and the expression is defined (no division by zero, even roots of negatives, logarithms of nonpositives, etc.). We compute a numeric approximation by scanning x from xmin to xmax, respecting each piece’s inequality constraints and skipping undefined points.
Range is the set of all f(x) values attained on the domain. We sample densely within each valid subinterval, detect jumps near undefined points, and aggregate encountered values. For rigorous proofs, check analytic endpoints and singularities; the calculator highlights suspected discontinuities to guide inspection.
How to Use
- Enter one row per piece: an expression in x, and its condition.
- Set x min, x max, and Step for sampling density.
- Click Calculate. Domain and approximate range appear in interval notation.
- Review the plot for gaps, jumps, and asymptotes; adjust bounds if needed.
- Export a CSV of sampled points or a PDF report for documentation.
- Use Load Example to see a ready-made piecewise function.
FAQs
x, numeric constants, parentheses, and comparators <,<=,>,>=,==,!= with and/or (or &&/||). Examples: x < 0, 0 <= x && x < 3, x != 2.abs, sqrt, pow, exp, log, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, floor, ceil, round, sign, plus arithmetic and ^.∪.