I am trying to make a search function to work with algebra problems. I want something like Wolfram Alpha, but I create a python structure for it. He must be able to calculate many variables and equations on both sides of the equal sign. I recently asked about a validator for a program, so I need a loop that goes through a bunch of numbers and calculates that each of the variables is equal. My problem is decimal. I suggest using the search function. Here is a solution to the equation:
def s_equation(a):
left, right = a.split('=')
return eval(left) == eval(right)
Any help would help!
user502039
source
share