Puoi aprire il codice e modificarlo
HELP

...
aX = -3; bX = 10; aY = -3; bY = 10
Dx = 1; Dy = 1

titolo = "Come tracciare un triangolo equilatero aggiungendo due lati?"
C1="black"  // colore del grafico L1

Q0x=L1x=[-1,6]; Q0y=L1y=[5,7]

angolo=Math.atan(2/7)-2*Math.PI/3
angolo2=Math.atan(2/7)-Math.PI/3
lungh=Math.sqrt(7*7+2*2)

// modifica la funzione di cui tracciare il grafico (f blu, g verde, h rosso, k arancione)

function f(x) { y = 7+(x-6)*Math.tan(angolo); return y }  
function g(x) { y = 5+(x+1)*Math.tan(angolo2); return y }
function h(x) { y = 7-Math.sqrt(lungh*lungh-(x-6)*(x-6)); return y }
function k(x) { y = 5-Math.sqrt(lungh*lungh-(x+1)*(x+1)); return y }
...