I am making a python script for data fitting of mathematical functions say, a*sin(b*x)
with the given data. I am planning to input this math function externally by the user while the program is already running. I am entering this math function through an Entry or Text box in tkinter. This is totally fine, but when I am extracting data using .get()
function, it returns the entered math function in string format. But this is not useful for future process of fitting. What I understood for fitting I should have a defined functional form like
def F(x,a,b):
return a*sin(b*x)
But if get this return value from .get()
Entry display, it will be a simple string of a*sin(b*x)
can't use further.
Please help me for fixing this issues if any one has any suggestions. Thanks in advance. ☺️