# %% Import of e.g. numpy placed here if needed # import numpy as np # %% Defintion of class Formula_1: class Formula_1(object): def __init__(self, c0, c1): self.c0 = c0 self.c1 = c1 def output(self, x): c0 = self.c0 c1 = self.c1 y = c1*x + c0 return y def rate(self): r = self.c1 return r