您的位置:首页 > 编程语言 > Java开发

《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 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: