Ca marche
Author: Daniel Mentrard

'

Marca las casillas para ver la ecuación horaria

v1 = 20 (slider from 0 to 50, step 0.1)
v2 = 40 (slider from 0 to 50, step 0.1)
x1 = 37.1 (slider from 0 to 100, step 0.1)
x2 = 25.7 (slider from 0 to 100, step 0.1)
t = 97.5 (slider from 0 to 150, step 0.1)
f = Function(v2 * 2.0 / 60.0 * x + x2, 0.0, t)
g = Function(v1 * 2.0 / 60.0 * x + x1, 0.0, t)
A = Intersect(g, f)
B: (v2 * t / 30.0 + x2 + 40.0, 247.0)
C: (v1 * t / 30.0 + x1 + 40.0, 250.0)
D = Point(yAxis)
a = Line(D, xAxis)
E = (173.44978656884834, 4.42201443138729)
F = (174.55845033030724, -7.218955063931092)
G = (271.01219757723095, -9.436282586848879)
H = (271.01219757723095, 7.193673835034524)
poly1, e, f_1, g_1, h = Polygon(E, F, G, H)
T2: " v = " + (2.0 * v1) + "km/h"
b = false
c = false
I = (169.84662934410693, 248.32804195234385)
J = (270.1806997561368, 248.8823738330733)
K = (270.1806997561368, 170.72157865022132)
L = (170, 170)
poly2, i, j, k, l = Polygon(I, J, K, L)
M = (170, 75)
N = (270.4578656965015, 76.48515892621536)
poly3, l_1, m, n, k_1 = Polygon(L, M, N, K)
d = Line(A, xAxis)
p = Line(A, yAxis)
O = Intersect(yAxis, d)
P = Intersect(xAxis, p)
q = Segment(O, A)
r = Segment(A, P)
Q = (-11.974227535151583, 325.38017337373697)
R = Point(yAxis)
S = Point(yAxis)
T = (-11.419895654422136, 251.09970135599107)
T7: "" + t
U = (19.068357785697433, 290.4572648877818)
V = (42.07313083596947, 290.4572648877818)
W = (41.79596489560475, 273.8273084658984)
Z = (18.791191845332712, 273.8273084658984)
poly5, u, v, w, z = Polygon(U, V, W, Z)
poly6, u_1, v_1, w_1, z_1 = Polygon(U, V, W, Z)
a1 = Line(I, xAxis)
A1 = Point(a1)
s = Line(A1, yAxis)
B1 = Point(s)
c1 = Circle(A1, B1)
C1 = (29.877829459921646, 261.07767520912114)
D1 = Point(s)
poly4, d1, b1, c1_1 = Polygon(B1, C1, D1)
e1 = Segment(B1, A1)
E1: (t, f(t))
F1: (t, g(t))
G1: (t - 10.0, f(t - 10.0))
H1: (t - 7.0, g(t - 7.0))
T5: "Ecuación horaria (1):  e = " + (2.0 * v1) + "t   + " + x1
T6: "Ecuación horaria (2): e =  " + (2.0 * v2) + "t  + " + x2
T9: "Tiempo del adelantamiento :  " + (x(P)) + "min"
T8: "Distancia del adelantamiento : " + (y(O)) + "km"
T3: "Distancia a t_0: " + x1 + " km"
T4: "Distancia a t_0: " + x2 + " km"
T1: " v = " + (2.0 * v2) + "km/h"