Find intersection between curves in julia

For this problem, Dierckx is just fine:

using Dierckx
n = length(vin_y)
spl = Spline1D(1:n, col_y[1:n] - vin_y)
x0 = roots(spl)   # 2.4181
y0 = Spline1D(1:n, vin_y)(x0)  # 1.2583e8

3 Likes