Maison  >  Questions et réponses  >  le corps du texte

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

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

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


高洛峰高洛峰2908 Il y a quelques jours1166

répondre à tous(1)je répondrai

  • 三叔

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

    Math.tan(1); // 1.5574077246549023

    或者这样

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


    répondre
    0
  • Annulerrépondre