Class InverseNumberFunc.Updatable

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

public static class InverseNumberFunc.Updatable extends InverseNumberFunc implements Func.Updatable
  • Method Details

    • set

      public 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.