Class PowerFunc.Updatable

java.lang.Object
net.algart.math.functions.PowerFunc
net.algart.math.functions.PowerFunc.Updatable
All Implemented Interfaces:
Func, Func.Updatable
Enclosing class:
PowerFunc

public abstract static class PowerFunc.Updatable extends PowerFunc implements Func.Updatable

Updatable extension of the power function with one argument.

  • Method Details

    • set

      public abstract void set(double[] x, double newResult)
      Description copied from interface: Func.Updatable
      Correct some of x arguments so that get(x) will be, as possible, equal to newResult. For example, if this is one-argument function f(x), and its inverse function is g(y) (g(f(x))=x), then this method should assign x[0]=g(newResult).

      This method does not guarantee the precise equality get(x)==newResult. (Usually, it is impossible due to limited precision of floating-point calculations.) But this method should try to provide this equality (after its call) with, as possible, maximal possible precision.

      Specified by:
      set in interface Func.Updatable
      Parameters:
      x - the function arguments.
      newResult - the desired function result.
    • toString

      public String toString()
      Returns a brief string description of this object.
      Overrides:
      toString in class PowerFunc
      Returns:
      a brief string description of this object.