Interface Derivative<T extends CalculusFieldElement<T>>

    • Method Detail

      • getValue

        double getValue()
        Get the value part of the function.
        Returns:
        value part of the value of the function
      • withValue

        default T withValue​(double value)
        Create a new object with new value (zeroth-order derivative, as passed as input) and same derivatives of order one and above.

        This default implementation is there so that no API gets broken by the next release, which is not a major one. Custom inheritors should probably overwrite it.

        Parameters:
        value - zeroth-order derivative of new represented function
        Returns:
        new object with changed value
        Since:
        3.1
      • getPartialDerivative

        double getPartialDerivative​(int... orders)
                             throws MathIllegalArgumentException
        Get a partial derivative.
        Parameters:
        orders - derivation orders with respect to each variable (if all orders are 0, the value is returned)
        Returns:
        partial derivative
        Throws:
        MathIllegalArgumentException - if the numbers of variables does not match the instance
        MathIllegalArgumentException - if sum of derivation orders is larger than the instance limits
        See Also:
        getValue()
      • getExponent

        default int getExponent()
        Return the exponent of the instance, removing the bias.

        For double numbers of the form 2x, the unbiased exponent is exactly x.

        Specified by:
        getExponent in interface CalculusFieldElement<T extends CalculusFieldElement<T>>
        Returns:
        exponent for the instance, without bias
      • remainder

        default T remainder​(double a)
        IEEE remainder operator.
        Specified by:
        remainder in interface CalculusFieldElement<T extends CalculusFieldElement<T>>
        Parameters:
        a - right hand side parameter of the operator
        Returns:
        this - n × a where n is the closest integer to this/a