示例#1
0
 public static NumberSymbol Add(NumberSymbol left, NumberSymbol right)
 {
     return(left + right);
 }
示例#2
0
 public static NumberSymbol Negate(NumberSymbol item)
 {
     return(-item);
 }
示例#3
0
 /**
  * <summary>
  *   Returns a <see cref="NumberSymbol"/> equal to the value of this instance's
  *   <see cref="NumericValue"/> raised to the power of <paramref name="right"/>'s
  *   <see cref="NumericValue"/>.
  * </summary>
  * <param name="right">
  *   The <see cref="NumberSymbol"/> to raise this instance's value to.
  * </param>
  */
 public NumberSymbol Pow(NumberSymbol right)
 => new NumberSymbol(System.Math.Pow(numericValue, right));
示例#4
0
 public static NumberSymbol Divide(NumberSymbol left, NumberSymbol right)
 {
     return(left / right);
 }
示例#5
0
 public static NumberSymbol Multiply(NumberSymbol left, NumberSymbol right)
 {
     return(left * right);
 }
示例#6
0
 public static NumberSymbol Subtract(NumberSymbol left, NumberSymbol right)
 {
     return(left - right);
 }