Meetod Math.atan
Meetod Math.atan tagastab arvu
arktangensi. Meetodi parameeter peab asuma
vahemikus -π/2 kuni π/2, vastasel juhul
tagastatakse NaN.
Süntaks
javascriptMath.atan(arv);
Näide
Väljastame arvu 2 arktangensi:
javascriptconsole.log(Math.atan(2));
Koodi täitmise tulemus:
javascript1.1071487177940904