2950 S=SQR(DE(1)^2+DE(2)^2-2*R*DE(1)*DE(2))