calc-017-interpolacion-lineal

Punto A

Punto B

x

Recta de interpolación

f(x)=mx+n

A = (6, 2)
B = (4, 4)
CasillaDeEntrada1 = Textfield(A)
CasillaDeEntrada2 = Textfield(B)
xa: x(A)
ya: y(A)
xb: x(B)
yb: y(B)
m: (y(B) - y(A)) / (x(B) - x(A))
n: y(A) - (m * x(A))
C = Point(xAxis)
fx: (m * x(C)) + n
D: (x(C), fx)
a = Line(B, A)
xc: x(C)
b = Segment(D, C)
c = OrthogonalLine(D, yAxis)
E = Intersect(c, yAxis)
d = Segment(D, E)
f(x) = (m * x) + n
e = false
texto1: "" + (LaTeX[ya]) + "  =m·(" + (LaTeX[xa]) + ")+n\\ " + (LaTeX[yb]) + "=m·(" + (LaTeX[xb]) + ")+n"
texto3: "f(x)=" + (LaTeX[f]) + "\\f(" + (LaTeX[xc]) + ")= " + (LaTeX[fx]) + ""

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'