atan() in JavaScript

function doMath(){
        var inputNum=document.form1.input.value;
        var result = Math.atan(inputNum);
        document.form1.answer.value = result;
    }