I need something, that can do this thing:

I have number 5, 5 and result 25. The program return 5*5. Another example: I have 7 and result 49. The program return 7². (of course with more complex equations)


input 5;5 = 25
output = 5*5

input 5;2;4 = 7
output = 5-2+4

Also it will be good if program will be in console, so I can implement it with other programs.

  • 1
    you are asking to solve an equation for operators. an operator can also be expressed as a function, and there are functional equation solvers in the popular math softwares. see a related math exchange, and also check out the Wikipedia link in the answer: math.stackexchange.com/questions/525914/… – chiliNUT Apr 19 '17 at 4:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.