var choyce=0;
var angconv=new Array(0.0174532925199433, 0.000290888208665722, 0.00000484813681109536, 57.2957795130823, 3437.74677078494, 206264.806247096)
var cnv=3;
-->
if (choyce==3){num3 = Math.atan((.5*num2)/num1);num3=num3*2*angconv[cnv]}
if (choyce==4){num1 = (num1/(angconv[cnv])*.5);num3=num2*.5/(Math.tan(num1))}
if (choyce==5){num1 = (num1/(angconv[cnv])*.5);num3=(Math.tan(num1))*num2*2}
if(sigfig>-1){
num3=num3.toExponential(sigfig);
if(num3>.001 && num3<1000){num3=num3*1}};
if (choyce>3){ang$=""};
document.outbox.x0.value=" "+num3 + ang$;
}
-->