Class SparsePolyClient

java.lang.Object
it.unimi.di.prog2.s09.SparsePolyClient

public class SparsePolyClient extends Object
A class to test some methods of SparsePoly.
  • Constructor Details

    • SparsePolyClient

      private SparsePolyClient()
      .
  • Method Details

    • main

      public static void main(String[] args)
      Tests some methods of SparsePoly.

      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.