Class PartialDerivative

All Implemented Interfaces:
Serializable

public class PartialDerivative extends DVariable
Contains information about a PartialDerivative of a variable.
Author:
Rich Morris Created on 29-Oct-2003 Since Jep 4.1 it no longer implements Observer so cannot detect if its root variable changes.
See Also:
  • Constructor Details

    • PartialDerivative

      protected PartialDerivative(DVariable var, String[] derivnames)
      Protected constructor, should only be constructed through the findDerivative method in DVariable.
    • PartialDerivative

      protected PartialDerivative(DVariable var, String[] derivnames, Node deriv)
  • Method Details

    • getName

      public String getName()
      Description copied from class: Variable
      Returns the variable name.
      Overrides:
      getName in class Variable
      Returns:
      the variable name.
    • getRoot

      public DVariable getRoot()
      Every partial derivative has a root variable for instance the root variable of dy/dx is y. This method returns than variable.
    • getDnames

      public String[] getDnames()
    • toString

      public String toString()
      Description copied from class: XVariable
      Returns a string rep of variable with its equation and value.
      Overrides:
      toString in class XVariable
      Returns:
      A string with the variable name and value.
    • findDerivative

      public PartialDerivative findDerivative(String dname, DJep jep) throws ParseException
      Throws:
      ParseException
    • derivativeIsTriviallyZero

      public boolean derivativeIsTriviallyZero()
      Overrides:
      derivativeIsTriviallyZero in class DVariable