Home>Article>Web Front-end> 简介JavaScript中用于处理正切的Math.tan()方法_基础知识

简介JavaScript中用于处理正切的Math.tan()方法_基础知识

WBOY
WBOY Original
2016-05-16 15:54:49 1615browse

这个方法返回一个数字的正切值。tan 方法返回表示的角度的正切值。
语法

Math.tan( x ) ;

下面是参数的详细信息:

  • x: 一个数字,表示以角度表示弧度

返回值:

  • 返回一个数字的正切值

例子:

  JavaScript Math tan() Method 

这将产生以下结果:

First Test Value : 1 Second Test Value : 21 Third Test Value : 20 Fourth Test Value : -20

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn