Ejemplo n.º 1
0
 public override Expression LesserThanOrEqualTo(Irrational other)
 {
     return(new Boolean(@decimal <= other.@decimal));
 }
Ejemplo n.º 2
0
 public override Expression SubWith(Irrational other)
 {
     return(new Irrational(@decimal - other.@decimal));
 }
Ejemplo n.º 3
0
 public override Expression ExpWith(Irrational other)
 {
     return(new Irrational(Math.Pow((double)@decimal, (double)other.@decimal)));
 }
Ejemplo n.º 4
0
 public override Expression GreaterThan(Irrational other)
 {
     return(new Boolean(@decimal > other.@decimal));
 }
Ejemplo n.º 5
0
 public override Expression AddWith(Irrational other)
 {
     return(new Text(@string + other.ToString()));
 }
Ejemplo n.º 6
0
 public virtual Expression AddWith(Irrational other)
 {
     return(new Error(this, "Don't support adding " + other.GetType().Name));
 }
Ejemplo n.º 7
0
 public virtual Expression LesserThanOrEqualTo(Irrational other)
 {
     return(new Error(this, "Don't support lesser than or equal " + other.GetType().Name));
 }
Ejemplo n.º 8
0
 public virtual Expression GreaterThan(Irrational other)
 {
     return(new Error(this, "Don't support greater than " + other.GetType().Name));
 }
Ejemplo n.º 9
0
 public virtual Expression OrWith(Irrational other)
 {
     return(new Error(this, "Don't support or with " + other.GetType().Name));
 }