Weitere aktuelle Java-Titel finden Sie bei dpunkt.
 Inhaltsverzeichnis   Vorhergehendes Paket   Seite Zurück   Seite Vor   Nächstes Paket   Paketübersicht   Index

Klasse java.lang.StrictMath1.3

java.lang.Object
   |
   +--java.lang.StrictMath

Deklaration

public final strictfp class StrictMath
extends java.lang.Object

Beschreibung

Diese Klasse stellt das strictfp-Gegenstück zur Klasse Math dar. Sämtliche Methoden dieser Klasse verwenden für arithmetische Operationen die strikte Darstellung von Gleitpunkttypen, d. h., die Werte werden stets mit 32 bzw. 64 Bit dargestellt, selbst dann, wenn die Hardware und die Virtual Machine eine größere Genauigkeit erlauben würden. Dadurch liefern die Methoden dieser Klasse auf allen Plattformen und Virtual Machines immer das exakt gleiche Ergebnis.


 
Datenelemente
public final static doubleE
public final static doublePI
 
Methoden
public static native strictfp doubleIEEEremainder(double f1, double f2)
public static strictfp intabs(int a)
public static strictfp doubleabs(double a)
public static strictfp floatabs(float a)
public static strictfp longabs(long a)
public static native strictfp doubleacos(double a)
public static native strictfp doubleasin(double a)
public static native strictfp doubleatan(double a)
public static native strictfp doubleatan2(double y, double x)
public static native strictfp doubleceil(double a)
public static native strictfp doublecos(double a)
public static native strictfp doubleexp(double a)
public static native strictfp doublefloor(double a)
public static native strictfp doublelog(double a)
public static strictfp intmax(int a, int b)
public static strictfp longmax(long a, long b)
public static strictfp floatmax(float a, float b)
public static strictfp doublemax(double a, double b)
public static strictfp doublemin(double a, double b)
public static strictfp intmin(int a, int b)
public static strictfp longmin(long a, long b)
public static strictfp floatmin(float a, float b)
public static native strictfp doublepow(double a, double b)
public static strictfp doublerandom()
public static native strictfp doublerint(double a)
public static strictfp longround(double a)
public static strictfp intround(float a)
public static native strictfp doublesin(double a)
public static native strictfp doublesqrt(double a)
public static native strictfp doubletan(double a)
public static strictfp doubletoDegrees(double angrad)
public static strictfp doubletoRadians(double angdeg)


 

Datenelemente im Detail

public final static double E
Die Eulersche Zahl e=2,71...
public final static double PI
Die Kreiszahl Pi=3,14...

 

Methoden im Detail

public static native strictfp double IEEEremainder(double f1, double f2)
Liefert den Divisionsrest von f1/f2.
public static strictfp int abs(int a)
Liefert den Betrag von a.
public static strictfp double abs(double a)
public static strictfp float abs(float a)
Liefert den Betrag von a.
public static strictfp long abs(long a)
Liefert den Betrag von a.
public static native strictfp double acos(double a)
Liefert den Winkel im Bogenmaß, dessen Cosinus a ist. Das Ergebnis liegt zwischen 0 und Pi einschließlich. Falls NaN oder eine Zahl übergeben wird, deren Betrag größer als Eins ist, ist das Ergebnis NaN.
public static native strictfp double asin(double a)
Liefert den Winkel im Bogenmaß, dessen Sinus a ist. Das Ergebnis liegt zwischen -Pi/2 und Pi/2 einschließlich. Falls NaN oder eine Zahl übergeben wird, deren Betrag größer als Eins ist, ist das Ergebnis NaN.
public static native strictfp double atan(double a)
Liefert den Winkel im Bogenmaß, dessen Tangens a ist. Das Ergebnis liegt zwischen -Pi/2 und Pi/2 einschließlich. Falls NaN übergeben wird, ist das Ergebnis ebenfalls NaN.
public static native strictfp double atan2(double y, double x)
Liefert den Winkel im Bogenmaß, dessen Tangens b/a ist. Die Vorzeichen von a und b werden zur Ermittlung des richtigen Quadranten berücksichtigt.
public static native strictfp double ceil(double a)
Liefert die kleinste Ganzzahl, die größer oder gleich a ist.
public static native strictfp double cos(double a)
Liefert den Cosinus von a, wobei a im Bogenmaß erwartet wird.
public static native strictfp double exp(double a)
Liefert den Wert von e**a.
public static native strictfp double floor(double a)
Liefert die größte Ganzzahl, die kleiner oder gleich a ist.
public static native strictfp double log(double a)
Liefert den natürlichen Logarithmus von a.
public static strictfp int max(int a, int b)
Liefert das Maximum von a und b.
public static strictfp long max(long a, long b)
Liefert das Maximum von a und b.
public static strictfp float max(float a, float b)
Liefert das Maximum von a und b.
public static strictfp double max(double a, double b)
Liefert das Maximum von a und b.
public static strictfp double min(double a, double b)
Liefert das Minimum von a und b.
public static strictfp int min(int a, int b)
Liefert das Minimum von a und b.
public static strictfp long min(long a, long b)
Liefert das Minimum von a und b.
public static strictfp float min(float a, float b)
Liefert das Minimum von a und b.
public static native strictfp double pow(double a, double b)
Liefert den Wert von a**b.
public static strictfp double random()
Liefert eine Zufallszahl zwischen 0.0 und 1.0.
public static native strictfp double rint(double a)
Rundet a auf eine Ganzzahl, wobei das Ergebnis ebenfalls vom Typ double ist.
public static strictfp long round(double a)
Rundet einen float-Wert auf eine Ganzzahl und liefert sie als int-Wert zurück.
public static strictfp int round(float a)
Rundet einen float-Wert auf eine Ganzzahl und liefert sie als int-Wert zurück.
public static native strictfp double sin(double a)
Liefert den Sinus von a, wobei a im Bogenmaß erwartet wird.
public static native strictfp double sqrt(double a)
Liefert die Quadratwurzel von a. Falls a den Wert NaN hat oder kleiner als null ist, wird NaN zurückgegeben.
public static native strictfp double tan(double a)
Liefert den Tangens von a, wobei a im Bogenmaß erwartet wird.
public static strictfp double toDegrees(double angrad)
Liefert den im Bogenmaß gemessenen Winkel angrad im Gradmaß zurück.
public static strictfp double toRadians(double angdeg)
Liefert den im Gradmaß gemessenen Winkel angdeg im Bogenmaß zurück.


 Inhaltsverzeichnis   Vorhergehendes Paket   Seite Zurück   Seite Vor   Nächstes Paket   Paketübersicht   Index

Copyright © 2002 dpunkt.Verlag, Heidelberg. Alle Rechte vorbehalten.