Finding the intersection of a curve from polyfit
This seems simple but I can't quite figure it out. I have a curve calculated from x,y data. Then I have a line. I want to find the x, y values for where the two intersect. Here is what I've got so far. It's super confusing and doesn't give the correct result. I can look at the graph and find the intersection x value and calculate the correct y value. I'd like to remove this human step. import numpy as np import matplotlib.pyplot as plt from pylab import * from scipy import linalg import sys import scipy.interpolate as interpolate import scipy.optimize as optimize w = np.array([0.0, 11