/** * $OpenXM: OpenXM/src/OpenMath/ORG/openxm/tam/CMO_MONOMIAL32.java,v 1.2 2000/09/13 06:32:42 tam Exp $ */ package ORG.openxm.tam; import java.io.*; import java.math.BigInteger; /** * CMO 形式の MONOMIAL32 型を表します. * このクラスは単項式を表現します. */ final public class CMO_MONOMIAL32 extends CMO{ private int[] degree; private CMO coefficient; /** * 係数 coefficient, 次数 degree[] とする MONOMIAL32 を作成します. */ public CMO_MONOMIAL32(int[] degree,CMO coefficient){ this.degree = degree; this.coefficient = coefficient; } public int DISCRIMINATOR(){ return CMO.MONOMIAL32; } public void sendByObject(OpenXMstream os) throws IOException,MathcapViolation{ os.writeInt(degree.length); for(int i=0;i