Example #1
0
        public override double Y(double x)
        {
            double n = a.Y(x), m = b.Y(x);

            if (n == 0 && m == 0)
            {
                return(new Quotient(a.Derivate(), b.Derivate()).Y(x));
            }
            else
            {
                return(n / m);
            }
        }
Example #2
0
 public override Function Derivate() => new Product(new Composition(a.Derivate(), b), b.Derivate());
Example #3
0
 public override Function Derivate() => new Sum(new Product(a.Derivate(), b), new Product(a, b.Derivate()));
Example #4
0
 public override Function Derivate() => new Sum(a.Derivate(), b.Derivate());