I wrote sympy functions with parameters. For example,
ampl, freq, phase, cte, t =sp.symbols('ampl freq phase cte t')
func=sp.Function("Func")(t)
func=ampl*sp.cos(freq*t+phase)+cte
To plot, this function, I use lambdify in this way :
funclamb=sp.lambdify([(ampl, freq, phase, cte) ,t],func)
xline=np.linspace(0,10,11)
yValues=funclamb((5, 4, 1.5, 12) ,xline)
plt.plot(xline,yValues)
But, I must be careful about the element order in the tuple : (ampl, freq, phase, cte). I wonder if there is a mean to use these parameters in a dictionary :
myParamDict={ampl: 5, freq: 4, phase: 1.5, cte: 12}
I tried different things but it does not work.