1 8 package org.lsmp.djep.groupJep.values; 9 10 import org.lsmp.djep.groupJep.groups.FreeGroup; 11 import org.nfunk.jep.type.*; 12 13 20 public class FreeGroupElement extends Polynomial implements HasComplexValueI { 21 22 FreeGroup group; 23 24 29 public FreeGroupElement(FreeGroup K, Number coeffs[]) { 30 super(K.getBaseRing(),K.getSymbol(),coeffs); 31 this.group = K; 32 } 33 34 38 39 protected Polynomial valueOf(Number lcoeffs[]) 40 { 41 FreeGroupElement g = new FreeGroupElement(group,lcoeffs); 42 return g; 43 } 44 45 50 51 public Complex getComplexValue() { 52 return calculateComplexValue((Complex) group.getRootVal()); 53 } 54 } 55 | Popular Tags |