tan() in JavaScript

function doMath(){
        var inputNum1=document.form1.input1.value;
        var result = Math.tan(inputNum1);
        document.form1.answer.value = result;
    }