HUMath.Algebra
Class C

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

public class C
extends java.lang.Object

komplexe Zahlen mit double-Komponenten

Version:
7.5.2003
Author:
Hubert Grassmann

Field Summary
 double x
           
 double y
           
 
Constructor Summary
C(double real)
          This is the constructor.
C(double real, double imaginary)
          This is the constructor.
 
Method Summary
static double abs(C z)
          Betrag
static C add(C a, C b)
          This is a static class method.
static C assign(double a)
          Realteil besetzen, Imaginaeteil = 0
static double bet2(C x)
          Quadrat des Betrags
static C conj(C a)
          Konjugierte
static C copy(C z)
          kopieren
static C div(C a, C b)
          A static class method to divide C numbers
static C exp(C a)
          exp-Reihe
static C expC(C z)
          Exponentialfunktion
static C expSeries(C z)
           
static C fromPolar(C p)
          kartesische Darstellung
 double imaginary()
          An accessor method.
static C logC(C z)
          Logarithmus
 double magnitude()
          Betrag
static void main(java.lang.String[] a)
           
 C mult(C a)
          An instance method to multiply C numbers
static C mult(C a, C b)
          multiplizieren
static C neg(C a)
          negieren
static C power(C z, int n)
          potenzieren
static C read()
          lesen
 double real()
          An accessor method.
static C rootn(C z, int n)
          n-te Wurzel
static C sqrt(C a)
          Quadratwurzel, v.
static C sub(C a, C b)
          subtrahieren
static C toPolar(C z)
          Polardarstellung
 java.lang.String toString()
          This method converts a C to a string.
static void write(C z)
          schreiben
static boolean zero(C x)
          null ?
static C zufall(double f)
          Zufallszahl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x

y

public double y
Constructor Detail

C

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


C

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

Method Detail

real

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


imaginary

public double imaginary()
An accessor method. Returns the imaginary part of the C number


bet2

public static double bet2(C x)
Quadrat des Betrags


assign

public static C assign(double a)
Realteil besetzen, Imaginaeteil = 0


zufall

public static C zufall(double f)
Zufallszahl


zero

public static boolean zero(C x)
null ?


neg

public static C neg(C a)
negieren


toString

public java.lang.String toString()
This method converts a C to a string. This is a method of Object that we override so that C numbers can be meaningfully converted to strings, and so they can conveniently be printed out with System.out.println() and related methods

Overrides:
toString in class java.lang.Object

add

public static C add(C a,
                    C b)
This is a static class method. It takes two C 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: C c = C.add(a, b);


sub

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


conj

public static C conj(C a)
Konjugierte


abs

public static double abs(C z)
Betrag


magnitude

public double magnitude()
Betrag


mult

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


div

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


mult

public C mult(C a)
An instance method to multiply C numbers


read

public static C read()
lesen


write

public static void write(C z)
schreiben


toPolar

public static C toPolar(C z)
Polardarstellung


fromPolar

public static C fromPolar(C p)
kartesische Darstellung


rootn

public static C rootn(C z,
                      int n)
n-te Wurzel


sqrt

public static C sqrt(C a)
Quadratwurzel, v. Mangoldt / Knopp


copy

public static C copy(C z)
kopieren


power

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


expSeries

public static C expSeries(C z)

exp

public static C exp(C a)
exp-Reihe


expC

public static C expC(C z)
Exponentialfunktion


logC

public static C logC(C z)
Logarithmus


main

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