Answer the question
In order to leave comments, you need to log in
How to convert a formula entered by the user into code?
Hello, how to convert the formula entered by the user into code?
There is a task. A person enters some formula with 2 unknowns (let's say x, y ) and you need to enumerate these unknowns with recording the values of the equation.
Example.
What the person enters.
A person enters a formula in the console
What, in theory, should become.
Math.sqrt(x * 5) + Math.Pow(y, 2) - 4
double formula = Math.sqrt(x * 5) + Math.Pow(y, 2) - 4;
// x , y - перебирается по определенным законам.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question