Ejemplo n.º 1
0
 // Derivative rule
 public override Function Derivative()
 {
     if (RightFunc is Constant)
     {
         return(RightFunc * (LeftFunc ^ (RightFunc - new Constant(1))) * LeftFunc.Derivative());
     }
     return((RightFunc.Derivative() * Funcs.Ln(LeftFunc) + LeftFunc.Derivative() * RightFunc / LeftFunc) * this);
 }
Ejemplo n.º 2
0
 // Derivative rule
 public override Function Derivative()
 {
     return((LeftFunc.Derivative() * RightFunc - RightFunc.Derivative() * LeftFunc) / (RightFunc * RightFunc));
 }
Ejemplo n.º 3
0
 // Derivative rule
 public override Function Derivative()
 {
     return(LeftFunc.Derivative() * RightFunc + LeftFunc * RightFunc.Derivative());
 }