Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface nl.coffee.math.CompositeNumber

Implementing Classes:
AbstractCompositeNumber

public abstract interface CompositeNumber
extends RealNumber
A composite real number. Examples of composite numbers include sines, logarithms, powers, sums and products.

Since:
JUMP_1.0
Version:
1.1 199809.24
Author:
Ernst de Haan

Method Summary
RealNumber getElement(int n)
          Returns the nth operand of this CompositeNumber.
int getElementCount()
          Counts the number of operands in this CompositeNumber.
RealNumber[] getElements()
          Returns the operands.
 

Method Detail

getElements

public RealNumber[] getElements()
Returns the operands.
Returns:
the operands.

getElementCount

public int getElementCount()
Counts the number of operands in this CompositeNumber.
Returns:
the operand count.

getElement

public RealNumber getElement(int n)
                                    throws java.lang.IndexOutOfBoundsException
Returns the nth operand of this CompositeNumber.
Parameters:
n - the index of the operand.
Returns:
the nth operand.
Throws:
java.lang.IndexOutOfBoundsException - if one of the following applies:
  1. n < 0
  2. n >= operandCount

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD