298 |
* @param a the angle (in radians) |
* @param a the angle (in radians) |
299 |
* @return sin(a) |
* @return sin(a) |
300 |
*/ |
*/ |
301 |
public native static double sin(double a); |
public static native double sin(double a); |
302 |
|
|
303 |
/** |
/** |
304 |
* The trigonometric function <em>cos</em>. The cosine of NaN or infinity is |
* The trigonometric function <em>cos</em>. The cosine of NaN or infinity is |
307 |
* @param a the angle (in radians) |
* @param a the angle (in radians) |
308 |
* @return cos(a) |
* @return cos(a) |
309 |
*/ |
*/ |
310 |
public native static double cos(double a); |
public static native double cos(double a); |
311 |
|
|
312 |
/** |
/** |
313 |
* The trigonometric function <em>tan</em>. The tangent of NaN or infinity |
* The trigonometric function <em>tan</em>. The tangent of NaN or infinity |
317 |
* @param a the angle (in radians) |
* @param a the angle (in radians) |
318 |
* @return tan(a) |
* @return tan(a) |
319 |
*/ |
*/ |
320 |
public native static double tan(double a); |
public static native double tan(double a); |
321 |
|
|
322 |
/** |
/** |
323 |
* The trigonometric function <em>arcsin</em>. The range of angles returned |
* The trigonometric function <em>arcsin</em>. The range of angles returned |
328 |
* @param a the sin to turn back into an angle |
* @param a the sin to turn back into an angle |
329 |
* @return arcsin(a) |
* @return arcsin(a) |
330 |
*/ |
*/ |
331 |
public native static double asin(double a); |
public static native double asin(double a); |
332 |
|
|
333 |
/** |
/** |
334 |
* The trigonometric function <em>arccos</em>. The range of angles returned |
* The trigonometric function <em>arccos</em>. The range of angles returned |
339 |
* @param a the cos to turn back into an angle |
* @param a the cos to turn back into an angle |
340 |
* @return arccos(a) |
* @return arccos(a) |
341 |
*/ |
*/ |
342 |
public native static double acos(double a); |
public static native double acos(double a); |
343 |
|
|
344 |
/** |
/** |
345 |
* The trigonometric function <em>arcsin</em>. The range of angles returned |
* The trigonometric function <em>arcsin</em>. The range of angles returned |
351 |
* @return arcsin(a) |
* @return arcsin(a) |
352 |
* @see #atan2(double, double) |
* @see #atan2(double, double) |
353 |
*/ |
*/ |
354 |
public native static double atan(double a); |
public static native double atan(double a); |
355 |
|
|
356 |
/** |
/** |
357 |
* A special version of the trigonometric function <em>arctan</em>, for |
* A special version of the trigonometric function <em>arctan</em>, for |
400 |
* @return <em>theta</em> in the conversion of (x, y) to (r, theta) |
* @return <em>theta</em> in the conversion of (x, y) to (r, theta) |
401 |
* @see #atan(double) |
* @see #atan(double) |
402 |
*/ |
*/ |
403 |
public native static double atan2(double y, double x); |
public static native double atan2(double y, double x); |
404 |
|
|
405 |
/** |
/** |
406 |
* Take <em>e</em><sup>a</sup>. The opposite of <code>log()</code>. If the |
* Take <em>e</em><sup>a</sup>. The opposite of <code>log()</code>. If the |
414 |
* @see #log(double) |
* @see #log(double) |
415 |
* @see #pow(double, double) |
* @see #pow(double, double) |
416 |
*/ |
*/ |
417 |
public native static double exp(double a); |
public static native double exp(double a); |
418 |
|
|
419 |
/** |
/** |
420 |
* Take ln(a) (the natural log). The opposite of <code>exp()</code>. If the |
* Take ln(a) (the natural log). The opposite of <code>exp()</code>. If the |
430 |
* @return the natural log of <code>a</code> |
* @return the natural log of <code>a</code> |
431 |
* @see #exp(double) |
* @see #exp(double) |
432 |
*/ |
*/ |
433 |
public native static double log(double a); |
public static native double log(double a); |
434 |
|
|
435 |
/** |
/** |
436 |
* Take a square root. If the argument is NaN or negative, the result is |
* Take a square root. If the argument is NaN or negative, the result is |
444 |
* @return the square root of the argument |
* @return the square root of the argument |
445 |
* @see #pow(double, double) |
* @see #pow(double, double) |
446 |
*/ |
*/ |
447 |
public native static double sqrt(double a); |
public static native double sqrt(double a); |
448 |
|
|
449 |
/** |
/** |
450 |
* Raise a number to a power. Special cases:<ul> |
* Raise a number to a power. Special cases:<ul> |
514 |
* @param b the power to raise it to |
* @param b the power to raise it to |
515 |
* @return a<sup>b</sup> |
* @return a<sup>b</sup> |
516 |
*/ |
*/ |
517 |
public native static double pow(double a, double b); |
public static native double pow(double a, double b); |
518 |
|
|
519 |
/** |
/** |
520 |
* Get the IEEE 754 floating point remainder on two numbers. This is the |
* Get the IEEE 754 floating point remainder on two numbers. This is the |
530 |
* @return the IEEE 754-defined floating point remainder of x/y |
* @return the IEEE 754-defined floating point remainder of x/y |
531 |
* @see #rint(double) |
* @see #rint(double) |
532 |
*/ |
*/ |
533 |
public native static double IEEEremainder(double x, double y); |
public static native double IEEEremainder(double x, double y); |
534 |
|
|
535 |
/** |
/** |
536 |
* Take the nearest integer that is that is greater than or equal to the |
* Take the nearest integer that is that is greater than or equal to the |
541 |
* @param a the value to act upon |
* @param a the value to act upon |
542 |
* @return the nearest integer >= <code>a</code> |
* @return the nearest integer >= <code>a</code> |
543 |
*/ |
*/ |
544 |
public native static double ceil(double a); |
public static native double ceil(double a); |
545 |
|
|
546 |
/** |
/** |
547 |
* Take the nearest integer that is that is less than or equal to the |
* Take the nearest integer that is that is less than or equal to the |
551 |
* @param a the value to act upon |
* @param a the value to act upon |
552 |
* @return the nearest integer <= <code>a</code> |
* @return the nearest integer <= <code>a</code> |
553 |
*/ |
*/ |
554 |
public native static double floor(double a); |
public static native double floor(double a); |
555 |
|
|
556 |
/** |
/** |
557 |
* Take the nearest integer to the argument. If it is exactly between |
* Take the nearest integer to the argument. If it is exactly between |
561 |
* @param a the value to act upon |
* @param a the value to act upon |
562 |
* @return the nearest integer to <code>a</code> |
* @return the nearest integer to <code>a</code> |
563 |
*/ |
*/ |
564 |
public native static double rint(double a); |
public static native double rint(double a); |
565 |
|
|
566 |
/** |
/** |
567 |
* Take the nearest integer to the argument. This is equivalent to |
* Take the nearest integer to the argument. This is equivalent to |