Piecewise Function
Loading the math board and drawing, please wait…
This example demonstrates the dynamic changes of a piecewise function by dragging line segments. A piecewise function is a function defined by multiple sub-functions, each applying to a certain interval of the independent variable. The Segment command is used to construct the line segments, suitable for high school mathematics education.
GeoGebra Commands & Parameters
Segment(C, D) → bSegment(A, B) → a
AI Drawing Prompt Reference
Draw a piecewise function with two line segments. First, draw a line segment connecting point A and point B, then draw another line segment connecting point C and point D. By dragging the endpoints of these segments, you can dynamically change the shape of the piecewise function.
The prompt above was compiled from the original drawing commands and is for reference only.