Beispiel #1
0
 public override SyntaxBlock Derivative(VariableArgumentValue ArgumentToDerive)
 {
     if (ArgumentToDerive != Argument)
     {
         return(new NumericConstant(0));
     }
     return(new NumericConstant(1));
 }
Beispiel #2
0
 public override bool IsConstant(VariableArgumentValue Non_Constant)
 {
     if (Argument != Non_Constant)
     {
         return(true);
     }
     return(false);
 }
Beispiel #3
0
 public bool IsConstant(VariableArgumentValue Non_Constant)
 {
     if (A.IsConstant(Non_Constant) && B.IsConstant(Non_Constant))
     {
         return(true);
     }
     return(false);
 }
Beispiel #4
0
 public SyntaxBlock ParallelDerivative(VariableArgumentValue ArgumentToDerive, int Depth)
 {
     return(Derivative(ArgumentToDerive));
 }
Beispiel #5
0
 public bool ParallelIsConstant(VariableArgumentValue Non_Constant, int Depth)
 {
     return(IsConstant(Non_Constant));
 }
Beispiel #6
0
 public SyntaxBlock Derivative(VariableArgumentValue ArgumentToDerive)
 {
     return(new NumericConstant(0));
 }
Beispiel #7
0
 public bool IsConstant(VariableArgumentValue Non_Constant)
 {
     return(true);
 }
Beispiel #8
0
 /// <summary>
 /// Creates a variable.
 /// </summary>
 /// <param name="Argument">An instance of the VariableArgumentValue class with which the value is controlled.</param>
 public Variable(VariableArgumentValue Argument) : base(Argument, false)
 {
 }
Beispiel #9
0
 public SyntaxBlock Derivative(VariableArgumentValue ArgumentToDerive)
 {
     return(new Sum(new Product(A.Derivative(ArgumentToDerive), B), new Product(A, B.Derivative(ArgumentToDerive))));
 }
Beispiel #10
0
 public abstract bool IsConstant(VariableArgumentValue Non_Constant);
Beispiel #11
0
 public abstract SyntaxBlock Derivative(VariableArgumentValue ArgumentToDerive);
 public bool IsConstant(VariableArgumentValue Non_Constant)
 {
     return(A.IsConstant(Non_Constant) && B.IsConstant(Non_Constant));
 }
 public SyntaxBlock Derivative(VariableArgumentValue ArgumentToDerive)
 {
     //(A'*B + -1(B'*A))/(B*B) == (A'*B - B'*A)/B^2
     return(new Quotient(new Sum(new Product(A.Derivative(ArgumentToDerive), B),
                                 new Product(new NumericConstant(-1), new Product(B.Derivative(ArgumentToDerive), A))), new Product(B, B)));
 }