NAME

PGanalyzeGraph.pl

DESCRIPTION

These routines support the analysis of graphical input from students.

detect_intervals

input: $pointDisplayString

return: (\@combined_intervals, \@values)

@values contains the y values of the function in order
@combined_intervals contains anonymous arrays of the form
[ $slope, $left_x, $right_x]  indicating the gradient on that segment.
successive intervals will have different slopes.