de.cm.frw.core.fun.impl
Class NUM

java.lang.Object
  extended by de.cm.frw.core.fun.impl.NUM

public class NUM
extends java.lang.Object

A collection of static tools for numerical computations

Author:
cm

Nested Class Summary
static class NUM.Binary
          Class to simplify the definition of numerical with two argument.
static class NUM.BinaryTest
           
static class NUM.Unary
          Class to simplify the definition of numerical with one argument.
 
Field Summary
static Function add
          Function to add two numbers
static Function avgDamp
           
static Function continuedFraction
           
static Function deriv
           
static Function divide
          Function to divide two numbers
static Function equal
           
static Function fixedPoint
           
static Function inv
           
static Function min
           
static Function multiply
          Function to multiply two numbers
static Function newtonsMethod
           
static Function power
           
static Function sqrt
           
static Function square
           
static Function subtract
          Function to subtract two numbers
 
Constructor Summary
NUM()
           
 
Method Summary
static Function avgDamp(Function f)
           
static Function derive(Function g)
           
static Function derive(Function g, double dx)
           
static java.lang.Number fixedPoint(Function f, double guess)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

equal

public static final Function equal

add

public static final Function add
Function to add two numbers


subtract

public static final Function subtract
Function to subtract two numbers


multiply

public static final Function multiply
Function to multiply two numbers


divide

public static final Function divide
Function to divide two numbers


min

public static final Function min

inv

public static final Function inv

square

public static final Function square

power

public static final Function power

sqrt

public static final Function sqrt

fixedPoint

public static final Function fixedPoint

avgDamp

public static final Function avgDamp

deriv

public static final Function deriv

continuedFraction

public static final Function continuedFraction

newtonsMethod

public static final Function newtonsMethod
Constructor Detail

NUM

public NUM()
Method Detail

fixedPoint

public static java.lang.Number fixedPoint(Function f,
                                          double guess)
                                   throws Function.InvalidArguments
Throws:
Function.InvalidArguments

avgDamp

public static Function avgDamp(Function f)
                        throws Function.InvalidArguments
Throws:
Function.InvalidArguments

derive

public static Function derive(Function g,
                              double dx)
                       throws Function.InvalidArguments
Throws:
Function.InvalidArguments

derive

public static Function derive(Function g)
                       throws Function.InvalidArguments
Throws:
Function.InvalidArguments