src/Alg/Math/Analysis/Progression.php
public function isConvergent ()
	{
		$is = true;
		for( $i=$this->interval->getStart(); $i<$this->interval->getEnd(); $i++ )
		{
			$an = $this->getPartialSum( $this->interval->getStart(), $i );
			$an1 = $this->getPartialSum( $this->interval->getStart(), $i+1 );
			$diff = abs( $an1 - $an );
//			echo "<br>an1: ".$an1." | an: ".$an." | diff: ".$diff;
			if (!$old_diff) $old_diff = $diff;
			else if( $diff >= $old_diff )
				$is = false;
		}
		return $is;
	}
public function isConvergent ()
	{
		$is = true;
		for( $i=$this->interval->getStart(); $i<$this->interval->getEnd(); $i++ )
		{
			$an = $this->getPartialSum( $this->interval->getStart(), $i );
			$an1 = $this->getPartialSum( $this->interval->getStart(), $i+1 );
			$diff = abs( $an1 - $an );
//			echo "<br>an1: ".$an1." | an: ".$an." | diff: ".$diff;
			if (!$old_diff) $old_diff = $diff;
			else if( $diff >= $old_diff )
				$is = false;
		}
		return $is;
	}
public function isConvergent ( ) { $ is = true ; for ( $ i = $ this -> interval -> getStart ( ) ; $ i < $ this -> interval -> getEnd ( ) ; $ i ++ ) { $ an = $ this -> getPartialSum ( $ this -> interval -> getStart ( ) , $ i ) ; $ an1 = $ this -> getPartialSum ( $ this -> interval -> getStart ( ) , $ i + 1 ) ; $ diff = abs ( $ an1 - $ an ) ; //			echo "<br>an1: ".$an1." | an: ".$an." | diff: ".$diff;
 if ( ! $ old_diff ) $ old_diff = $ diff ; else if ( $ diff >= $ old_diff ) $ is = false ; } return $ is ; }
Indicates whether this Progression is convergent.
@access		public
@return		bool
@todo		correct Function: harmonic progression is convergent which is WRONG
Indicates whether this Progression is convergent .