net.sf.drawj2d.cmd
Class Fkt
- java.lang.Object
-
- net.sf.drawj2d.cmd.Fkt
-
public final class Fkt extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Fkt()Creates a new instance of Funktionen
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubledet2x2(double ax1, double ax2, double az1, double az2)Berechnet die Determinante einer 2x2-Matrixstatic doublefix(double zahl, int anzStellen)Rundet die Zahl auf die gewünschte Anzahl Stellen.static double[]GLS2x2(double ax1, double ax2, double bx, double az1, double az2, double bz)löst das 2x2 GLS ax1 * s1 + ax2 * s2 = bx az1 * s1 + az2 * s2 = bz nach [s1,s2] auf.static double[]kreuzprodukt(double ux, double uy, double uz, double vx, double vy, double vz)Berechnet das Kreuzprodukt (Vektor) zweier Vektorenstatic doublemax(double[] liste)static doublemax(double[][] liste)static doublemin(double[] liste)static java.lang.Stringnf(double zahl, int AnzNachkommaStellen)Gibt einen Zahlenwert als formatierten String zurück.static java.lang.Stringnf(double zahl, int AnzNachkommaStellen, int minAnzStellenVorKomma)Gibt einen Zahlenwert als formatierten String zurück.static java.lang.Stringnf(int zahl, int minimaleAnzahlStellen)Gibt einen Zahlenwert als formatierten String zurück.static double[]normiere(double[] vektor)Normiert einen Vektor, der ursprüngliche Vektor bleibt unverändertstatic doublesignum(double a)Returns the sign of the argument as follows: - If a is greater than zero, the result is 1.0.static doublevektorbetrag(double[] vektor)Berechnet den Betrag (die Länge) eines Vektors
-
-
-
Method Detail
-
fix
public static double fix(double zahl, int anzStellen)Rundet die Zahl auf die gewünschte Anzahl Stellen. Für formatierten Text stattdessen Fkt.nf() verwenden.- See Also:
Fkt.nf()
-
max
public static double max(double[] liste)
-
max
public static double max(double[][] liste)
-
min
public static double min(double[] liste)
-
GLS2x2
public static double[] GLS2x2(double ax1, double ax2, double bx, double az1, double az2, double bz)löst das 2x2 GLS ax1 * s1 + ax2 * s2 = bx az1 * s1 + az2 * s2 = bz nach [s1,s2] auf. Vor Gebrauch nötigenfalls überprüfen, dass Determinante != 0, siehe Fkt.det2x2(...)
-
det2x2
public static double det2x2(double ax1, double ax2, double az1, double az2)Berechnet die Determinante einer 2x2-Matrix
-
kreuzprodukt
public static double[] kreuzprodukt(double ux, double uy, double uz, double vx, double vy, double vz)Berechnet das Kreuzprodukt (Vektor) zweier Vektoren- Returns:
- Vektor
-
vektorbetrag
public static double vektorbetrag(double[] vektor)
Berechnet den Betrag (die Länge) eines Vektors- Returns:
- Länge
-
normiere
public static double[] normiere(double[] vektor)
Normiert einen Vektor, der ursprüngliche Vektor bleibt unverändert- Returns:
- normierter Vektor
-
nf
public static java.lang.String nf(int zahl, int minimaleAnzahlStellen)Gibt einen Zahlenwert als formatierten String zurück.
-
nf
public static java.lang.String nf(double zahl, int AnzNachkommaStellen)Gibt einen Zahlenwert als formatierten String zurück.
-
nf
public static java.lang.String nf(double zahl, int AnzNachkommaStellen, int minAnzStellenVorKomma)Gibt einen Zahlenwert als formatierten String zurück.
-
signum
public static double signum(double a)
Returns the sign of the argument as follows: - If a is greater than zero, the result is 1.0. - If a is less than zero, the result is -1.0. - If a is NaN, the result is NaN. - If a is positive or negative zero, the result is the same. (von GNU classpath übernommen).- Parameters:
a- the numeric argument.- Returns:
- the sign of the argument.
- Since:
- 1.5.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG