示例#1
0
  @Override
  public Polynomial expand(IdealFactory factory) {
    NumericPrimitive primitive = primitive();
    Polynomial expandedPrimitive = primitive.expand(factory);

    if (primitive.equals(expandedPrimitive)) return this;
    return (Polynomial) factory.power(expandedPrimitive, exponent());
  }
示例#2
0
 @Override
 public Polynomial denominator(IdealFactory factory) {
   return factory.one(type());
 }
示例#3
0
 @Override
 public SymbolicMap<Monic, Monomial> termMap(IdealFactory factory) {
   return factory.singletonMap((Monic) this, (Monomial) this);
 }
示例#4
0
 @Override
 public Constant monomialConstant(IdealFactory factory) {
   return factory.one(type());
 }
示例#5
0
 @Override
 public SymbolicMap<NumericPrimitive, PrimitivePower> monicFactors(IdealFactory factory) {
   return factory.singletonMap(primitive(), (PrimitivePower) this);
 }
示例#6
0
 @Override
 public Constant constantTerm(IdealFactory factory) {
   return factory.zero(type());
 }