I have a function f (x, y) = 0, the program should build its graph. The function is set by the user. Example function:

f(x,y) = x*y + sin(x+y)/ln(x) 
  • 2
    in the general case, such functions are not resolved with respect to x or y, so here we must look at the numerical methods for solving transcendental equations. if this is a learning task, then most likely the appropriate methods were reported to you. if not, you can probably try to consider the method math.fullerton.edu/mathews/n2003/newtonsystemmod.html (Fixed Point Iteration in n-Dimensions). Hopefully there are good “henchmen” here who prompt something more precisely, but as an option .. - alphard
  • I know that they are not solvable, but where to go? thanks for the link - Vitaliy
  • one
    Please, when you find the appropriate method, accomplish your goal - this has also been a long-time concern, but somehow it did not reach the hands - alphard

2 answers 2

I suggest an algorithm from one site . A funny graph is drawn to your function.

Update:

The proposed algorithm is correct, but too slow. I suggest to get acquainted with:

Update:

And now the control update! Here is a robust algorithm for Jeff Tupper.

    if you just need to count something: here