Home  >  Q&A  >  body text

JS 已知tan的值,如何求对应的角度

JS 已知tan的值,如何求对应的角度

也就是谁 tan x = y;知道y的值,如何求x?


高洛峰高洛峰2909 days ago1167

reply all(1)I'll reply

  • 三叔

    三叔2016-11-03 10:27:59

    Math.tan(1); // 1.5574077246549023

    或者这样

    function getTanDeg(deg) { 
     var rad = deg * Math.PI/180; 
      return Math.tan(rad);
    }


    reply
    0
  • Cancelreply