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