I have a non-linear polynomial equation example: 2*x**2 - sin(x) + 1. how will I code to take this equation as a user input
i tried using eval() function but how will i describe the x
s= input("enter your equation here")
equation = eval(s)
I have a non-linear polynomial equation example: 2*x**2 - sin(x) + 1. how will I code to take this equation as a user input
i tried using eval() function but how will i describe the x
s= input("enter your equation here")
equation = eval(s)