calc-010-funciones-a-trozos.ggb

a = 4 (slider from -5 to 5, step 0.1)
b = -3 (slider from -5 to 5, step 0.1)
c = 1 (slider from -5 to 5, step 0.1)
x_1 = -2 (slider from -5 to 5, step 0.1)
x_2 = 3
g(x) = x + a
h(x) = x^(2) + b
i(x) = -1 / (x - x_2) + c
f(x) = If[x < x_1, g(x), If[x < x_2, h(x), If[x ≥ x_2, i(x)]]]
A: (x_1, g(x_1))
B: (x_1, h(x_1))
C: (x_2, h(x_2))
D: (x_2, i(x_2))
d: x = x_2
e: y = c
texto1: "f(x)=" + (LaTeX[f]) + ""
k = Circle(A, 0.07)
r = Circle(C, 0.07)
p = Circle(A, 0.04)
q = Circle(C, 0.04)

Tool: Inc
Input: A, B, C, D, E
Output: F

c = Ellipse(A, B, C)
a = Ray(D, E)
F = Intersect(c, a, 1)

Tool: Ref
Input: A, B, C, D, E
Output: G

c = Ellipse(A, B, C)
u = Vector(D, E)
a = Ray(D, E)
F = Intersect(c, a, 1)
b = Tangent(F, c)
F' = Translate(F, u)
v = Vector(F, F')
v' = Mirror(v, b)
G: F + v'