《JAVA编程技巧1001条》第341条:数学函数 ARCTAN;
2017-12-17 10:17
447 查看
第341条:数学函数 ARCTAN
341atan 方法的使用
The arctangent is the ratio between the legadjacent to a given acute angle and the leg opposite it in a right triangle; 【此句有和上面 2 句有类似的概念错误,译文中已改正】 the inverse of the tangent of an angle. If y isthe tangent of α, then α is the arctangent
of y. The atan method in the Mathclass returns the arctangent of the number as a double. The declaration of theatan method is as follows: 反正切(atan)是一个角的正切(tan)的逆, 即: 如果 y 是角 α 的正切, 则 α 就是 y 的反 正切. 在 Math 类中, atan 方法返回用弧度表示的反正切值. Atan 函数的说明如下: public static
double atan(double a); To returnthe arctangent of a number, you can use the atan method, as shown: 要得到一个数的反正切,你可使用 atan 方法,如下所示: double num = 1.0D; num = Math.atan(num); //return the arctangent
相关文章推荐
- 《JAVA编程技巧1001条》第337条:数学函数 SIN。
- 《JAVA编程技巧1001条》第338条:数学函数 TAN
- 《JAVA编程技巧1001条》第339条:数学函数 ARCCOS
- 《JAVA编程技巧1001条》第334条:数学函数 求绝对值.
- 《JAVA编程技巧1001条》第335条:数学函数 SQRT.
- 《Java编程技巧1001条》353条:求随机浮点数
- 《Java编程技巧1001条》第594条: 循环播放声音剪辑
- 《Java编程技巧1001条》第596条: 把WAV格式转成AU格式
- 《Java编程技巧1001条》第600条: 重用update方法来减少图像闪烁
- 《Java编程技巧1001条》354条:了解伪随机与真随机
- 《Java编程技巧1001条》第379条: 初始化基本类型数组
- 《Java编程技巧1001条》 第345条:使用ceil方法
- 《Java编程技巧1001条》 第598...条 滚动文本动画
- 《Java编程技巧1001条》第604条:了解图像的观察器
- 《Java编程技巧1001条》第591-609条 播放声音剪辑
- 《Java编程技巧1001条》 第346条:浮点数向上向下舍入方法
- 《Java编程技巧1001条》第373条: 了解不同的日期标准,
- 《Java编程技巧1001条》 第605条: 检测图像装入过程
- 《Java编程技巧1001条》357条:用高斯分布建立随机数
- 《Java编程技巧1001条》第606条: 获得图像的大小尺寸