Puoi aprire il codice e modificare la funzione: vedi l'Help
You can open the Code and modify the function: see the Help
HELP
H = 8 A1x=1; A1y=2; B1x=3; B1y=8 ... ... L = Math.sqrt((A1x-B1x)*(A1x-B1x)+(A1y-B1y)*(A1y-B1y)) // AB m1= -(B1x-A1x)/(B1y-A1y) // slope of the perpendicular to AB Mx = A1x+(B1x-A1x)/2; My = A1y+(B1y-A1y)/2 // center of AB BA=H/Math.sqrt(1+m1*m1); HE= BA*m1 // DeltaX, DeltaY of the altitude of the triangle D1x = Mx + BA; D1y = My + HE // second end of altitude ... function f(x) { y = 1/0; return y } ... aX = -1; bX = 10; aY = -1; bY = 10 Dx = 1; Dy = 1 ... Px=[A1x,B1x]; Py=[A1y,B1y]; Qx=[Mx]; Qy=[My] Lx=[Mx,D1x]; Ly=[My,D1y] L1x=[A1x,B1x,D1x,A1x]; L1y=[A1y,B1y,D1y,A1y] C0="red" ... AX=BX=AY=BY="" BY="A=("+A1x+","+A1y+") B=("+B1x+","+B1y+") H="+H ... AAX=aX; BBX=bX; AAY=aY; BBY=bY ...