CASCALC89 COMMAND · NOT ON THE TI-89
piecewise(
Defines a piecewise function from pairs of values and conditions; each value applies where its condition is true.
Syntax
piecewise(value1, condition1[, value2, condition2, …])
- Group
- Algebra
- Arguments
- Takes alternating values and conditions: value1, condition1, then further pairs as needed.
- Availability
- Included
- Menu path
- MATH ▸ Number ▸ piecewise(
- Origin
- TI-Nspire CAS style command; the TI-89 Titanium handheld does not have it
Example
| Input | Result |
|---|---|
| piecewise(x^2,x<0,x,x≥0)|x=-3 | 9 |
Typing piecewise(x^2,x<0,x,x≥0)|x=-3 on the home screen and pressing ENTER returns 9.
Keystrokes in Calc89
2NDMATH1◀▼×11ENTER
The sequence above inserts piecewise( in Calc89.
Related commands
- polyCoeffs(Returns the coefficients of a polynomial as a list, starting with the highest power.
- polyDegree(Returns the degree of a polynomial, the highest power of the variable that occurs.
- polyGcd(Returns the greatest common divisor of two polynomials.
- polyQuotient(Divides one polynomial by another and returns the quotient, as in polynomial long division.
- polyRemainder(Divides one polynomial by another and returns the remainder, as in polynomial long division.
- polyRoots(Returns the real roots of a polynomial as a list.
- propFrac(Rewrites a fraction as a proper fraction: a whole part plus a remainder fraction.
- right(Returns the right side of an equation or inequality.