Class SolvFunction

java.lang.Object
  |
  +--SolvFunction

class SolvFunction
extends java.lang.Object
implements Solvable

Simple implementation of Solvable for a Function. This class is intended to be used for the plotting of simple functions.


Field Summary
protected  Function function
           
 
Constructor Summary
SolvFunction(Function f)
           
 
Method Summary
 void solve(double x0, double step, double[] vals)
          Simply evaluates the function at each value of x0.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

function

protected Function function
Constructor Detail

SolvFunction

public SolvFunction(Function f)
Parameters:
f - The function to be used when producing results
Method Detail

solve

public void solve(double x0,
                  double step,
                  double[] vals)
Simply evaluates the function at each value of x0.
Specified by:
solve in interface Solvable
Tags copied from interface: Solvable
Parameters:
x0 - The initial x-value
step - The increment to be applied to x0
vals - The array which will hold the solution data