Packagecom.degrafa.utilities.math
Classpublic class Bisect



Public Methods
 MethodDefined by
  
Bisect
  
bisection(_f:Function, _left:Number, _right:Number):Object
[static]
Bisect
Constructor detail
Bisect()constructor
public function Bisect()
Method detail
bisection()method
public static function bisection(_f:Function, _left:Number, _right:Number):Object

Parameters
_f:Function — function whose root(s) are desired
 
_left:Number — leftmost x-coordinate of interval to be bisected
 
_right:Number — rightmost x-coordinate of interval to be bisected

Returns
Object — Object 'left' property contains the leftmost x-coordinate of the interval and 'right' property contains the rightmost x-coordinate of the interval. returns null if the right interval value is less than the left value or the interval has been reduced to below the bisection limit with no sign change.