Visualizing Functions as Graphs
Author: Jamie Mulholland

insert text here

Input

Slide to Change Example

Output

Move the input with your mouse 
to see how the output changes.

f2(x) = x^(3.0) - 3.0 * x + 1.0
D = Point(xAxis)
f3(x) = 4.0 * sin(x)
f1(x) = -1.0 * x^(2.0) + 4.0
toggle = 1 (slider from 0 to 3, step 1)
f0(x) = x
f = If(toggle ≟ 0.0, f0, If[toggle ≟ 1.0, f1, If[toggle ≟ 2.0, f2, f3]])
A: (0.0, f(x(D)))
B: (x(D), f(x(D)))
LineSegVertical = Segment(B, D)
LineHorizontal = Line(A, B)
text1: "input = x = " + (x(D))
text2: "output = f(x) = y = " + (y(A))
text4: "f(x)= " + f