Puoi aprire il codice e modificare la funzione: vedi l'Help
You can open the Code and modify the function: see the Help
HELP

La somma di una forza di 20 N con direzione 30° e una forza di 12 N con direzione di 50°:  31.5 N, 37.5°
The sum of a force of 20 N with a direction of 30° and a force of 12 N with a direction of 50°:  31.5 N, 37.5°

function f(x) { y = 1/0; return y }

aX = 0; bX = 30; aY = 0; bY = 30
Dx = 5; Dy = 5

C1=C2 = "red"; C3 = "green"
L1x = [0, 20*Math.cos(30*Math.PI/180)]; L1y = [0, 20*Math.sin(30*Math.PI/180)]
L2x = [0, 12*Math.cos(50*Math.PI/180)]; L2y = [0, 12*Math.sin(50*Math.PI/180)]
L3x = [L1x[0]+L2x[0], L1x[1]+L2x[1]]; L3y = [L1y[0]+L2y[0], L1y[1]+L2y[1]]
Px=Py=[0]; Q1x = [L1x[1],L2x[1]]; Q1y = [L1y[1],L2y[1]]; Q3x = [L3x[1]]; Q3y = [L3y[1]]

s0=["x="+L3x[1], 15,28.5]; s1=["y="+L3y[1], 15,26.5]
s2=["L="+Math.sqrt(L3x[1]*L3x[1]+L3y[1]*L3y[1]), 15,23.5]
s3=["dir="+Math.atan(L3y[1]/L3x[1])/Math.PI*180+"^", 15,21.5]