Class VariableEquationTerm<V extends Enum<V> & Quantity,​E extends Enum<E> & Quantity>

    • Constructor Detail

      • VariableEquationTerm

        public VariableEquationTerm​(Variable<V> variable)
    • Method Detail

      • getElementNum

        public int getElementNum()
      • getVariables

        public List<Variable<V>> getVariables()
        Description copied from interface: EquationTerm
        Get the list of variable this equation term depends on.
        Returns:
        the list of variable this equation term depends on.
      • eval

        public double eval()
        Description copied from interface: EquationTerm
        Evaluate equation term.
        Returns:
        value of the equation term
      • der

        public double der​(Variable<V> variable)
        Description copied from interface: EquationTerm
        Get partial derivative.
        Parameters:
        variable - the variable the partial derivative is with respect to
        Returns:
        value of the partial derivative