Exemplo n.º 1
0
 /**
  * Returns a constant function of specified value.
  *
  * @param value the value returned by this function.
  * @return the corresponding constant function.
  */
 @SuppressWarnings("unchecked")
 public static <R extends Ring<R>> Constant<R> valueOf(R value) {
   Constant<R> cst = FACTORY.object();
   cst._termToCoef.put(Term.ONE, value);
   return cst;
 }