com.cedarspring.tvm
Interface Solve

All Known Implementing Classes:
InterestRate.SolveI, InterestRate.SolveIE, NumberOfPeriods.SolveN

public interface Solve

Classes that implement this interface must supply methods which evaluate a function f(x) = 0 and its derivative. These methods are used by FindRoot to find the root of f(x) = 0.

Version:
1.2.2 15-May-2003
Author:
Cedar Spring Software, Inc.

Method Summary
 java.math.BigDecimal df(java.math.BigDecimal x, Options o)
          Evaluate the derivative of f(x)
 java.math.BigDecimal f(java.math.BigDecimal x, Options o)
          Evaluate f(x)
 

Method Detail

f

public java.math.BigDecimal f(java.math.BigDecimal x,
                              Options o)
Evaluate f(x)


df

public java.math.BigDecimal df(java.math.BigDecimal x,
                               Options o)
Evaluate the derivative of f(x)