Class PolyClient

java.lang.Object
it.unimi.di.prog2.h11.PolyClient

public class PolyClient extends Object
A class to test some methods of Poly.
  • Constructor Details

    • PolyClient

      private PolyClient()
      .
  • Method Details

    • main

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

      Starting from term \( t_0 = 0 \) reads a list of \( t_i \) of terms from the standard input, given as a (coefficient, degree) pairs, and computes the polynomial \( t_0 + t_1 + t_2 \cdots \), emitting in the standard output the pairs "coefficient degree" for every term in the result (in increasing order of degree).

      Parameters:
      args - not used.