I would like to write two variable in a file. I mean this is my code :
file.write("a = %g\n" %(params[0]))
file.write("b = %g\n" %(params[1]))
and what I want to write in my file is :
f(x) = ax + b
where a
is params[0]
and b
is params[1]
but I don't know how to do this ?
Thank you for your help !