DEV Community

Towry
Towry

Posted on

Answer: Finding the point of a slope change as a free parameter- Python

Here is a plot of your data:

enter image description here

You need to find two slopes (== taking two derivatives). First, find the slope between every two points (using numpy):

import numpy as np 
x = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],dtype=np.float)
y = np.array([1, 2, 3, 4,

Top comments (0)