Class DerivativeStructureBuilder

java.lang.Object
math.differentialcalculus.DerivativeStructureBuilder

public class DerivativeStructureBuilder extends Object
Objects of this class break down a scanned function into simple format to which a simple chain rule can be applied,following all the principles of differentiation. For instance..4*x/(5+sin(4*x^2-7)) may be broken down into u1/(5+sin(u-7))...u1/(5+sin(v))....u1/(5+v1)...u1/v2 At each level of simplification,a Differentiable object is created and recorded which holds a reference to the original function.
  • Field Details

  • Constructor Details

    • DerivativeStructureBuilder

      public DerivativeStructureBuilder(String expression) throws Exception
      Parameters:
      expression - The input expression to be differentiated.
      Throws:
      Exception
  • Method Details

    • getManager

      public DifferentiableManager getManager()
    • generateName

      private String generateName()
      Automatically generates a name for a given Differentiable object..especially since these are mostly automatically created on the fly during differential parsing.
      Returns:
      a unique name for the object.
    • main

      public static void main(String[] args)