I have an issue with following problem:
A line needs to be intersected with a cosinus function.
My line would be
$\displaystyle l_1 = \binom{x_1}{y_1} + s\binom{u_1}{v_1}$
My function for a curved line in 2D is
$\displaystyle g: y_2 = d + a + a * (-cos(f * x_2))$
I need the first intersection (the smallest s > 0). How do I do that? I stand at
$s * v_1 + a * cos(f * (x_1 + s * u_1)) = y_1 - a - d$
and have no idea how to solve for s from here.