Exemple #1
0
        NumericExpression one()
        {
            NumericRep rep_one = new NumericRep(new Significand(new Fraction("1")));
            Factor     factor  = new Factor();

            factor.add(new NumericConstant(rep_one));
            Term term = new Term();

            term.add(factor);
            NumericExpression ne = new NumericExpression();

            ne.add(term);
            return(ne);
        }
Exemple #2
0
 public NumericConstant(Sign _sign, NumericRep rep)
 {
     numericrep = rep;
     sign       = _sign;
 }
Exemple #3
0
 public NumericConstant(NumericRep rep)
 {
     numericrep = rep;
     sign       = Sign.PLUSSIGN;
 }