calculate solution of nonlinear equation system numerically
the algorithm uses newtons method to solve a non-linear equation system with 2 equations and 2 variables:
Note: partial derivate of your equation system needs to be calculated beforehand to change line 32 accordingly. In the example that would be: