iterations:uint [read-only]Implementation
public function get iterations():uint
message:String [read-only]Implementation
public function get message():String
public function SimpleRoot()
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.
|
public static const ERROR:String = "error"
public static const INVALID_INTERVAL:String = "invalid interval"
public static const NO_CONVERGENCE:String = "no convergence"