D E G H L M P T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
D
- debug - Static variable in class edu.ucsb.cs56.polynomial.Polynomial
-
Assign
Polynomial.debug
to @{code true} orfalse
to turn debugging output on or off. - degreeOfPolynomialCoeffsHighToLow(int[]) - Static method in class edu.ucsb.cs56.polynomial.Polynomial
-
Given an
int []
of coefficients from highest to lowest power (where the x^0 term has the highest index in the array) find the degree of the polynomial represented by the coefficients shown. - degreeOfPolynomialCoeffsLowToHigh(int[]) - Static method in class edu.ucsb.cs56.polynomial.Polynomial
-
Given an
int []
of coefficients from lowest to highest degree (where the index in the array matches the power of the x term), find the degree of the polynomial represented by the coefficients shown.
E
- edu.ucsb.cs56.polynomial - package edu.ucsb.cs56.polynomial
- equals(Object) - Method in class edu.ucsb.cs56.polynomial.Polynomial
-
determine whether two polynomials are equal (same degree, same coefficients)
G
- getDegree() - Method in class edu.ucsb.cs56.polynomial.Polynomial
-
Get the degree of the polynomial.
H
- highToLow(int[]) - Static method in class edu.ucsb.cs56.polynomial.Polynomial
-
Convert a list of coefficients in order from lowest degree to highest degree (where index matches power of the x term) to one in order from highest degree to lowest degree (the order used for input to the Polynomial constructor).
L
- lowToHigh(int[]) - Static method in class edu.ucsb.cs56.polynomial.Polynomial
-
Convert a list of coefficients in order from highest degree to lowest degree (the order used for input to the Polynomial constructor) to one where the order is lowest degree to highest degree (where index matches power of the
x
term).
M
- main(String[]) - Static method in class edu.ucsb.cs56.polynomial.Polynomial
-
Main for testing constructing Polynomials from strings, and for testing plus, minus and times.
- minus(Polynomial) - Method in class edu.ucsb.cs56.polynomial.Polynomial
-
return a new Polynomial which has as its value the this polynomial minus the one passed in as a parameter.
P
- plus(Polynomial) - Method in class edu.ucsb.cs56.polynomial.Polynomial
-
return a new Polynomial which has as its value the this polynomial plus the one passed in as a parameter.
- Polynomial - Class in edu.ucsb.cs56.polynomial
-
Polynomial represents a polynomial from algebra.
- Polynomial() - Constructor for class edu.ucsb.cs56.polynomial.Polynomial
-
no-arg constructor returns a polynomial of degree 1, with value 0
- Polynomial(int[]) - Constructor for class edu.ucsb.cs56.polynomial.Polynomial
-
Construct polynomial from int array of coefficients.
- Polynomial(String) - Constructor for class edu.ucsb.cs56.polynomial.Polynomial
-
Construct polynomial from string representation that matches the output format of the Polynomial toString method.
T
- times(Polynomial) - Method in class edu.ucsb.cs56.polynomial.Polynomial
-
return a new Polynomial which has as its value the this polynomial times the one passed in as a parameter.
- toString() - Method in class edu.ucsb.cs56.polynomial.Polynomial
-
Return string respresentation of Polynomial according to the following rules:
U
- usage() - Static method in class edu.ucsb.cs56.polynomial.Polynomial
-
Print Usage message for Polynomial main
All Classes All Packages