Answer the question
In order to leave comments, you need to log in
How to choose which function to call during program execution?
Hello. Please do not scold me for the crazy name of the question, I have no idea how to call such a thing correctly.
I have a method that searches for the minimum of a function of two variables. In this method, to calculate the value of the function for given variables, a method is called that looks like this:
double f1(double x1, double x2)
{
return 18 * x1 * x1 - 18 * x1 - 12 * x1 * x2 + 8 * x2 * x2 - 12 * x2;
}
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