diff --git a/functions.py b/functions.py index 624ff2f..ab00e7c 100644 --- a/functions.py +++ b/functions.py @@ -2,6 +2,14 @@ import numpy as np +def line(x, m, c): + return m*x + c + + +def inverse_line(x, m, c): + return (x-c)/m + + def exponential_function(x, a, b, c): return (a-c)*np.exp(-x/b)+c