Class BisectionTest

Class BisectionTest

java.lang.Object
   |
   +----rootsolvers.Bisection
           |
           +----BisectionTest

public class BisectionTest
extends Bisection
This simple application demonstrates and tests the Bisection root finding method in the rootsolvers package. See the code and README in the TestApplications directory for more information.
Version:
1.0 03-31-97
Author:
Daren Stotler
See Also:
Bisection

Constructor Index

 o BisectionTest(double, double, double)
This constructor sets the coefficients of the quadratic to be solved by the Bisection class.

Method Index

 o calcfOfX(double)
This is the function to be solved: a simple quadratic for demonstration purposes.
 o main(String[])
This application main routine sets up a member of the BisectionTest and solves it for both of the two roots.

Constructors

 o BisectionTest
  public BisectionTest(double alpha,
                       double beta,
                       double gamma)
This constructor sets the coefficients of the quadratic to be solved by the Bisection class.

Methods

 o main
  public static void main(String args[])
This application main routine sets up a member of the BisectionTest and solves it for both of the two roots.
 o calcfOfX
  public double calcfOfX(double x)
This is the function to be solved: a simple quadratic for demonstration purposes.
Parameters:
x - point at which function is to be evaluated; on return, this is the root
Returns:
function value for use in solution algorithm
Overrides:
calcfOfX in class Bisection