Opus5
Interface Polynomial

All Known Implementing Classes:
PolynomialAsOrderedList, PolynomialAsSortedList

public interface Polynomial

Encapsulates methods common to all polynomials.

Version:
$Id: Polynomial.java,v 3.2 1998/07/28 02:35:50 brpreiss Exp $
Author:
Bruno R. Preiss, P.Eng.

Field Summary
static java.lang.String copyright
           
 
Method Summary
 void add(Term term)
          Adds the specified term to this polynomial.
 void differentiate()
          Differentiates this polynomial.
 Polynomial plus(Polynomial polynomial)
          Returns the sum of this polynomial and the specified polynomial.
 

Field Detail

copyright

public static final java.lang.String copyright
Method Detail

add

public void add(Term term)
Adds the specified term to this polynomial.
Parameters:
term - The term to be added to this polynomial.
See Also:
Term

differentiate

public void differentiate()
Differentiates this polynomial. The terms of this polynomial are each differentiated one-by-one.

plus

public Polynomial plus(Polynomial polynomial)
Returns the sum of this polynomial and the specified polynomial.
Parameters:
polynomial - The polynomial to add to this polynomial.
Returns:
The sum of this polynomial and the specified polynomial.