def fun1(x, a, b):
return x + a + b
def fun2(x, a, b, c):
return x + a + b + c
def apply_eq(equation, params):
return equation(np.array(range(5)), *params)
p1 = [2, 8]
print(apply_eq(fun1, p1))
return x + a + b
def fun2(x, a, b, c):
return x + a + b + c
def apply_eq(equation, params):
return equation(np.array(range(5)), *params)
p1 = [2, 8]
print(apply_eq(fun1, p1))