opale.mathtools
Class FixPoint

java.lang.Object
  |
  +--opale.mathtools.FixPoint

public final class FixPoint
extends java.lang.Object

This class implements the fix point method to solve the equation f(x) = x, where f is a function R^n->R^n.

Since:
Opale-Mathtools 0.12

Field Summary
static int MAXITERATION
          This value fixes the maximum number of iterations in the algorithm.
static int NITER
          This variable contains the number of iterations after convergence.
static double PRECISION
          This value represents the square of the solution precision.
 
Constructor Summary
FixPoint()
           
 
Method Summary
static void main(java.lang.String[] arg)
           
static boolean solve(IFnn f, int n, DVect x0, DVect sol)
          To call this method runs the resolution of the equation f(x) = x.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRECISION

public static double PRECISION
This value represents the square of the solution precision.

MAXITERATION

public static int MAXITERATION
This value fixes the maximum number of iterations in the algorithm.

NITER

public static int NITER
This variable contains the number of iterations after convergence.
Constructor Detail

FixPoint

public FixPoint()
Method Detail

solve

public static boolean solve(IFnn f,
                            int n,
                            DVect x0,
                            DVect sol)
To call this method runs the resolution of the equation f(x) = x.
Parameters:
IFnn, - the function f.
int, - the dimension of the definition spaces of the function.
DVect - x0, the initial condition for the algorithm.
DVect - sol, the solution.
Returns:
boolean, true if the method converges.

main

public static void main(java.lang.String[] arg)