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