Esempio n. 1
0
 public static IOperantLexeme <double> Add(IOperantLexeme <double> left, IOperantLexeme <double> rigth)
 {
     return(new OperantLexeme <double>(left.Value + rigth.Value));
 }
Esempio n. 2
0
 public static IOperantLexeme <double> Pow(IOperantLexeme <double> left, IOperantLexeme <double> rigth)
 {
     return(new OperantLexeme <double>(Math.Pow(left.Value, rigth.Value)));
 }
Esempio n. 3
0
 public static IOperantLexeme <double> Sin(IOperantLexeme <double> operant)
 {
     return(new OperantLexeme <double>(Math.Sin(operant.Value)));
 }
Esempio n. 4
0
 public static IOperantLexeme <double> Multiply(IOperantLexeme <double> left, IOperantLexeme <double> rigth)
 {
     return(new OperantLexeme <double>(left.Value * rigth.Value));
 }
Esempio n. 5
0
 public static IOperantLexeme <double> Divide(IOperantLexeme <double> left, IOperantLexeme <double> rigth)
 {
     return(new OperantLexeme <double>(left.Value / rigth.Value));
 }
 public static IOperantLexeme <bool> And(IOperantLexeme <bool> left, IOperantLexeme <bool> right)
 {
     return(new OperantLexeme <bool>(left.Value && right.Value));
 }
Esempio n. 7
0
 public static IOperantLexeme <double> Minus(IOperantLexeme <double> lexeme)
 {
     return(new OperantLexeme <double>(-lexeme.Value));
 }
 public static IOperantLexeme <bool> Mirror(IOperantLexeme <bool> value)
 {
     return(new OperantLexeme <bool>(!value.Value));
 }
Esempio n. 9
0
 public static IOperantLexeme <Matrix> Add(IOperantLexeme <Matrix> left, IOperantLexeme <Matrix> rigth)
 {
     return(new OperantLexeme <Matrix>(Matrix.Add(left.Value, rigth.Value)));
 }
Esempio n. 10
0
 public static IOperantLexeme <Matrix> Invariant(IOperantLexeme <Matrix> lexeme)
 {
     return(new OperantLexeme <Matrix>(Matrix.InvariantMatrix(lexeme.Value)));
 }
Esempio n. 11
0
 public static IOperantLexeme <Matrix> Multiply(IOperantLexeme <Matrix> left, IOperantLexeme <Matrix> rigth)
 {
     return(new OperantLexeme <Matrix>(Matrix.Multiply(left.Value, rigth.Value)));
 }
Esempio n. 12
0
 public static IOperantLexeme <Matrix> Minus(IOperantLexeme <Matrix> lexeme)
 {
     return(new OperantLexeme <Matrix>(Matrix.Multiply(lexeme.Value, -1)));
 }