Newton's method: 2 variables

The following functions are predefined:
f1 = x**2+y**2-1,
f2 = x*y-0.25

This has four solutions on the unit circle.
Proposed first box is [-4,4]x[-4,4]
f1 = x**2-y-2,
f2 = x*y+1

Here three solutions exist, the point (1,-1)
and the two points +/-((1-sqrt(5))/2,2/(1-sqrt(5))
Proposed first box is [-4,4]x[-4,4]
f1 = 2*x+y+1+(1/12)*tanh(x-y),
f2 = 2*x+3*y+1+(1/8)*atan(x+y)

The solution of this problem is globally unique.
Proposed first box [-10,10]x[-10,10]
f1 = (1/2)*x*sin((1/2)*pi*x)-y,
f2 = y**2-x+1

Here we have an infinite but countable set of solutions.
Proposed first box is [-6,10]x[1,10]
Input of functions of your own
Please type the evaluation program of your function here using FORTRAN rules. This function has the form d22usr(x,y,f1,f2) with input x, y and output f1, f2. Your final statement must be
      f1=
      f2=
You may use the constants pi, e(=exp(1)), sqrt2(=1.414...), the integer variables i,j,k, the logicals bool1,bool2,bool3 and the double precision variables sum,h1,h2,h3,h4,u(100),v(100),a(100,100) which are all intialized with zero resp. .false. . never change x or y!. first is a local integer and set 0 before calling the function the first time. You may use this in order to initialize some local data and set it 1 afterwards to avoid multiple such initialization. Your settings of the local variables are preserved during program execution.

Please specify the bounding rectangle here
If the iteration leaves this, we terminate the computation.
Of course :
xmin <= xmax und ymin <= ymax.
xmin = xmax =
ymin = ymax =

 

Please specify the termination criterion : correction 1-norm less than ε × box-size:
ε =
ε must be in the interval [1.0e-12,1.0e-2]. Other values will be projected on this interval.

Please specify the initial guess for the zero here.
This must lie strictly inside the bounding rectangle.
xstart =
ystart =

And here you must specify your view point via two rotation angles:
Important :0 <= xang <= 180 and 0 <= zang <= 360 in degrees!
xang = 0 and zang=0 means that the x-axis is screen horizontal, the y-axis screen vertical and the z-axis is vertical to the screen, that is you are looking down on the (x,y)-plane vertically
xang =
zang =

Warning!!! - This may take some time.

Click on "evaluate", in order to submit your input.

Back to the theory page

 Back to the top!

19.05.2016