A C D E F G H I L M N P R S T U V Z 
All Classes All Packages

A

add() - Method in class hw4.RatPolyStack
Pops two elements off of the stack, adds them, and places the result on top of the stack.
add(RatNum) - Method in class hw4.RatNum
Addition operation.
add(RatPoly) - Method in class hw4.RatPoly
Addition operation.
add(RatTerm) - Method in class hw4.RatTerm
Addition operation.
antiDifferentiate() - Method in class hw4.RatTerm
Returns the antiderivative of this RatTerm.
antiDifferentiate(RatNum) - Method in class hw4.RatPoly
Returns the antiderivative of this RatPoly.

C

CalculatorFrame - Class in hw4
CalculatorFrame is part of the graphical calculator that utilizes all of the other classes in package hw4.
CalculatorFrame() - Constructor for class hw4.CalculatorFrame
 
clear() - Method in class hw4.RatPolyStack
Clears the stack.
compareTo(RatNum) - Method in class hw4.RatNum
Compares two RatNums.

D

degree() - Method in class hw4.RatPoly
Returns the degree of this RatPoly.
differentiate() - Method in class hw4.RatPoly
Return the derivative of this RatPoly.
differentiate() - Method in class hw4.RatPolyStack
Pops the top element off of the stack, differentiates it, and places the result on top of the stack.
differentiate() - Method in class hw4.RatTerm
Return the derivative of this RatTerm.
div() - Method in class hw4.RatPolyStack
Divides the next from top poly by the top poly, pops both off the stack, and places the result on top of the stack.
div(RatNum) - Method in class hw4.RatNum
Division operation.
div(RatPoly) - Method in class hw4.RatPoly
Division operation (truncating).
div(RatTerm) - Method in class hw4.RatTerm
Division operation.
doubleValue() - Method in class hw4.RatNum
Approximates the value of this rational.
drawPlot(float, float, float, float, float[], float[], float, float, int, int, int, Graphics) - Method in class hw4.PolyGraph
 
dup() - Method in class hw4.RatPolyStack
Duplicates the top RatPoly on this.

E

equals(Object) - Method in class hw4.RatNum
Standard equality operation.
equals(Object) - Method in class hw4.RatPoly
Standard equality operation.
equals(Object) - Method in class hw4.RatTerm
Standard equality operation.
eval(double) - Method in class hw4.RatPoly
Returns the value of this RatPoly, evaluated at d.
eval(double) - Method in class hw4.RatTerm
Returns the value of this RatTerm, evaluated at d.

F

floatValue() - Method in class hw4.RatNum
Returns a float approximation for this.

G

getCoeff() - Method in class hw4.RatTerm
Gets the coefficient of this RatTerm.
getExpt() - Method in class hw4.RatTerm
Gets the exponent of this RatTerm.
getNthFromTop(int) - Method in class hw4.RatPolyStack
Returns the RatPoly that is 'index' elements from the top of the stack.
getTerm(int) - Method in class hw4.RatPoly
Gets the RatTerm associated with degree 'deg'

H

hashCode() - Method in class hw4.RatNum
Standard hashCode function.
hashCode() - Method in class hw4.RatPoly
Standard hashCode function.
hashCode() - Method in class hw4.RatTerm
Standard hashCode function.
hw4 - package hw4
 

I

integrate() - Method in class hw4.RatPolyStack
Pops the top element off of the stack, integrates it, and places the result on top of the stack.
integrate(double, double) - Method in class hw4.RatPoly
Returns the integral of this RatPoly, integrated from lowerBound to upperBound.
intValue() - Method in class hw4.RatNum
Returns an integer approximation for this.
isNaN() - Method in class hw4.RatNum
Returns true if this is NaN
isNaN() - Method in class hw4.RatPoly
Returns true if this RatPoly is not-a-number.
isNaN() - Method in class hw4.RatTerm
Returns true if this RatTerm is not-a-number.
isNegative() - Method in class hw4.RatNum
Returns true if this is negative.
isPositive() - Method in class hw4.RatNum
Returns true if this is positive.
isZero() - Method in class hw4.RatPoly
Returns whether this is the zero polynomial.
isZero() - Method in class hw4.RatTerm
Returns true if this RatTerm is equal to 0.
iterator() - Method in class hw4.RatPolyStack
Returns an iterator of the elements contained in the stack.

L

leadingCoeff() - Method in class hw4.RatPoly
Returns the coefficient of the largest degree term.
longValue() - Method in class hw4.RatNum
Returns a long approximation for this.

M

main(String[]) - Static method in class hw4.CalculatorFrame
Main method
mul() - Method in class hw4.RatPolyStack
Pops two elements off of the stack, multiplies them, and places the result on top of the stack.
mul(RatNum) - Method in class hw4.RatNum
Multiplication operation.
mul(RatPoly) - Method in class hw4.RatPoly
Multiplication operation.
mul(RatTerm) - Method in class hw4.RatTerm
Multiplication operation.

N

NaN - Static variable in class hw4.RatNum
A constant holding a Not-a-Number (NaN) value of type RatNum
NaN - Static variable in class hw4.RatPoly
A constant holding a Not-a-Number (NaN) value of type RatPoly
NaN - Static variable in class hw4.RatTerm
A constant holding a Not-a-Number (NaN) value of type RatTerm
negate() - Method in class hw4.RatNum
Returns the additive inverse of this RatNum.
negate() - Method in class hw4.RatPoly
Return the additive inverse of this RatPoly.
negate() - Method in class hw4.RatTerm
Negation operation.

P

paint(Graphics) - Method in class hw4.PolyGraph
 
PolyGraph - Class in hw4
PolyGraph is part of the graphical calculator that utilizes all of the other classes in package hw4.
PolyGraph(CalculatorFrame) - Constructor for class hw4.PolyGraph
 
pop() - Method in class hw4.RatPolyStack
Removes and returns the top RatPoly.
push(RatPoly) - Method in class hw4.RatPolyStack
Pushes a RatPoly onto the top of this.

R

RatNum - Class in hw4
RatNum represents an immutable rational number.
RatNum(int) - Constructor for class hw4.RatNum
 
RatNum(int, int) - Constructor for class hw4.RatNum
 
RatPoly - Class in hw4
RatPoly represents an immutable single-variate polynomial expression.
RatPoly() - Constructor for class hw4.RatPoly
 
RatPoly(int, int) - Constructor for class hw4.RatPoly
 
RatPoly(RatTerm) - Constructor for class hw4.RatPoly
 
RatPolyStack - Class in hw4
RatPolyStack is a mutable finite sequence of RatPoly objects.
RatPolyStack() - Constructor for class hw4.RatPolyStack
 
RatTerm - Class in hw4
RatTerm is an immutable representation of a term in a single-variable polynomial expression.
RatTerm(RatNum, int) - Constructor for class hw4.RatTerm
 

S

size() - Method in class hw4.RatPolyStack
Returns the number of RayPolys in this RatPolyStack.
sub() - Method in class hw4.RatPolyStack
Subtracts the top poly from the next from top poly, pops both off the stack, and places the result on top of the stack.
sub(RatNum) - Method in class hw4.RatNum
Subtraction operation.
sub(RatPoly) - Method in class hw4.RatPoly
Subtraction operation.
sub(RatTerm) - Method in class hw4.RatTerm
Subtraction operation.
swap() - Method in class hw4.RatPolyStack
Swaps the top two elements of this.

T

toString() - Method in class hw4.RatNum
 
toString() - Method in class hw4.RatPoly
Returns a string representation of this RatPoly.
toString() - Method in class hw4.RatTerm
Returns a string representation of this RatTerm.

U

update(Graphics) - Method in class hw4.PolyGraph
 
updatePlotBuffer(float, float, int, float[], float[], float[], RatPoly) - Method in class hw4.PolyGraph
 

V

valueOf(String) - Static method in class hw4.RatNum
Makes a RatNum from a string describing it.
valueOf(String) - Static method in class hw4.RatPoly
Builds a new RatPoly, given a descriptive String.
valueOf(String) - Static method in class hw4.RatTerm
Builds a new RatTerm, given a descriptive String.

Z

ZERO - Static variable in class hw4.RatNum
A constant holding a zero value of type RatNum
ZERO - Static variable in class hw4.RatPoly
A constant holding a zero value of type RatPoly
ZERO - Static variable in class hw4.RatTerm
A constant holding a zero value of type RatTerm
A C D E F G H I L M N P R S T U V Z 
All Classes All Packages