Packagecom.degrafa.utilities.math
Classpublic class SimpleRoot
InheritanceSimpleRoot Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined by
  iterations : uint
[read-only]
SimpleRoot
  message : String
[read-only]
SimpleRoot
Public Methods
 MethodDefined by
  
SimpleRoot
  
findRoot(_x0:Number, _x2:Number, _f:Function, _imax:uint, _eps:Number):Number
SimpleRoot
Public Constants
 ConstantDefined by
  ERROR : String = "error"
[static]
SimpleRoot
  INVALID_INTERVAL : String = "invalid interval"
[static]
SimpleRoot
  NO_CONVERGENCE : String = "no convergence"
[static]
SimpleRoot
Property detail
iterationsproperty
iterations:uint  [read-only]Implementation
    public function get iterations():uint
messageproperty 
message:String  [read-only]Implementation
    public function get message():String
Constructor detail
SimpleRoot()constructor
public function SimpleRoot()
Method detail
findRoot()method
public function findRoot(_x0:Number, _x2:Number, _f:Function, _imax:uint, _eps:Number):Number

Parameters
_x0:Number — root isolated in interval [_x0, _x2]
 
_x2:Number — root isolated in interval [_x0, _x2]
 
_f:Function — reference to function whose root in the interval is desired. Function accepts a single Number argument.
 
_imax:uint — maximum number of iterations
 
_eps:Number — tolerance value for root

Returns
Number — Number: Approximation of desired root within specified tolerance and iteration limit. In addition to too small an iteration limit or too tight a tolerance, some patholotical numerical conditions exist under which the method may incorrectly report a root.
Constant detail
ERRORconstant
public static const ERROR:String = "error"
INVALID_INTERVALconstant 
public static const INVALID_INTERVAL:String = "invalid interval"
NO_CONVERGENCEconstant 
public static const NO_CONVERGENCE:String = "no convergence"