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

InputResult
piecewise(x^2,x<0,x,x≥0)|x=-39

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