Simetría %v

P(x, y)

P'

P'

P'

g

g

g

P'

a = 1 (slider from -5 to 5, step 0.1)
b = 1 (slider from -5 to 5, step 0.1)
c = 1 (slider from -5 to 5, step 0.1)
simetría = 1 (slider from 1 to 4, step 1)
f(x) = a * x^(2.0) + b * x + c
P = Point(f)
Px: (x(P), 0.0)
Py: (0.0, y(P))
PX: (x(P), -y(P))
PY: (-x(P), y(P))
PO: (-x(P), -y(P))
PXy: -(Py)
PYx: -(Px)
sx = Segment(P, Px)
sy = Segment(P, Py)
sPXx = Segment(PX, Px)
sPXy = Segment(PO, PXy)
sPYx = Segment(PY, PYx)
sPYy = Segment(PY, Py)
sPOx = Segment(PO, PYx)
sPOy = Segment(PX, PXy)
sPO = Segment(PO, P)
rX(x) = -f(x)
rY(x) = f(-(x))
rO(x) = -f(-(x))
Q = Mirror(P, g)
Qx: (x(Q), 0.0)
Qy: (0.0, y(Q))
sQx = Segment(Q, Qx)
sQy = Segment(Q, Qy)
sPQ = Segment(P, Q)
lugar1 = Locus(Q, P)
texto1: "f(x) = " + f