Package it.unimi.di.prog2.s09
Class SparsePolyClient
java.lang.Object
it.unimi.di.prog2.s09.SparsePolyClient
A class to test some methods of
SparsePoly
.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SparsePolyClient
private SparsePolyClient().
-
-
Method Details
-
main
Tests some methods ofSparsePoly
.Starting from term \( t_0 = x + 1 \) reads a list of \( t_i \) of terms from the standard input, given as a (coefficient, degree) pairs, and computes the polynomials \( p_{i+1} = p_i \codt t_i + t_i \) emitting in the standard output the pairs "coefficient degree" for every term (in increasing order of degree) of the last computed polynomial.
- Parameters:
args
- not used.
-