HUMath.Algebra
Class QI

java.lang.Object
  extended by HUMath.Algebra.QI

public class QI
extends java.lang.Object

komplexe Zahlen mit Q-Komponenten

Version:
12.1.2005
Author:
Hubert Grassmann

Field Summary
 Q x
           
 Q y
           
 
Constructor Summary
QI(Q real)
          This is the constructor.
QI(Q real, Q imaginary)
          This is the constructor.
 
Method Summary
static QI add(QI a, QI b)
          This is a static class method.
static QI assign(Q a)
          Realteil besetzen, Imaginaeteil = 0
static Q bet2(QI x)
          Quadrat des Betrags
static QI conj(QI a)
          Konjugierte
static QI copy(QI z)
          kopieren
static QI div(QI a, QI b)
          A static class method to divide QI numbers
 Q imaginary()
          An accessor method.
static void main(java.lang.String[] a)
           
static QI mult(QI a, QI b)
          multiplizieren
static QI neg(QI a)
          negieren
static QI power(QI z, int n)
          potenzieren
static QI read()
          lesen
 Q real()
          An accessor method.
static QI sub(QI a, QI b)
          subtrahieren
static void write(QI z)
          schreiben
static boolean zero(QI x)
          null ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public Q x

y

public Q y
Constructor Detail

QI

public QI(Q real,
          Q imaginary)
This is the constructor. It initializes the x and y variables


QI

public QI(Q real)
This is the constructor. It initializes the x and y=0 variables

Method Detail

real

public Q real()
An accessor method. Returns the real part of the QI number. Note that there is no setReal() method to set the real part. This means that the QI class is "immutable".


imaginary

public Q imaginary()
An accessor method. Returns the imaginary part of the QI number


bet2

public static Q bet2(QI x)
Quadrat des Betrags


assign

public static QI assign(Q a)
Realteil besetzen, Imaginaeteil = 0


zero

public static boolean zero(QI x)
null ?


neg

public static QI neg(QI a)
negieren


add

public static QI add(QI a,
                     QI b)
This is a static class method. It takes two QI numbers, adds them, and returns the result as a third number. Because it is static, there is no "current instance" or "this" object. Use it like this: QI c = QI.add(a, b);


sub

public static QI sub(QI a,
                     QI b)
subtrahieren


conj

public static QI conj(QI a)
Konjugierte


mult

public static QI mult(QI a,
                      QI b)
multiplizieren


div

public static QI div(QI a,
                     QI b)
A static class method to divide QI numbers


read

public static QI read()
lesen


write

public static void write(QI z)
schreiben


copy

public static QI copy(QI z)
kopieren


power

public static QI power(QI z,
                       int n)
potenzieren


main

public static void main(java.lang.String[] a)