Esempio 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);
 }
Esempio n. 2
0
 // Derivative rule
 public override Function Derivative()
 {
     return((LeftFunc.Derivative() * RightFunc - RightFunc.Derivative() * LeftFunc) / (RightFunc * RightFunc));
 }
Esempio n. 3
0
 // Derivative rule
 public override Function Derivative()
 {
     return(LeftFunc.Derivative() * RightFunc + LeftFunc * RightFunc.Derivative());
 }