Maciej W. Rozycki
Sat, 12 Dec 2009 05:08:02 -0800
Hi, On Fri, 11 Dec 2009, Maciej W. Rozycki wrote:
> Noticed in and taken from GCC sources, but present in the current head of
> the classpath tree (0.99-pre) too. This should be obvious -- the
> description of the atan() method incorrectly refers to "arcsin" rather
> than "arctan". Fixed thus.
There's more to fix; please use the following patch instead.
2009-12-11 Maciej W. Rozycki <ma...@linux-mips.org>
* java/lang/StrictMath.java (atan): Correct description.
Please apply,
Maciej
classpath-0.98-20091211-atan.patch
Index: java/lang/StrictMath.java
===================================================================
--- java/lang/StrictMath.java (revision 155148)
+++ java/lang/StrictMath.java (working copy)
@@ -478,12 +478,12 @@ public final strictfp class StrictMath
}
/**
- * The trigonometric function <em>arcsin</em>. The range of angles returned
+ * The trigonometric function <em>arctan</em>. The range of angles returned
* is -pi/2 to pi/2 radians (-90 to 90 degrees). If the argument is NaN, the
* result is NaN; and the arctangent of 0 retains its sign.
*
* @param x the tan to turn back into an angle
- * @return arcsin(x)
+ * @return arctan(x)
* @see #atan2(double, double)
*/
public static double atan(double x)