Daniel, we’re not using simple functions here, we’re using
rawExpression (which, admittedly is brittle and depreciated, but there isn’t a nice clean replacement) to write expressions in the form
y = af(x-h)+k. Comparing to a
simpleFunction("g") doesn’t self-correct.
For reference, I’ve read a lot and there’s not a good replacement for
rawExpression in this case. (The
parseEquation("x","y") is good for implicit functions, but that’s not what we’re doing here.) I’ve tested out various people’s suggestions when the question comes up, but the solutions tend to be good for things like conics, not graphing using function notation specifically.
What I had done (and tends to work, because it’s simple):
In the CL for the graph:
In the graph itself,
f = some random piecewise function
y = -f(x+2)-3