Formulas/Resources/Formulas/Aspects/Unit.php
private function cancel( &$numerators, &$denominators )
	{
		if ( ! $denominators ) return;

		foreach ( $numerators as $key => $numerator )
		{
			$found = array_search( $numerator, $denominators );
			if ( $found === false ) continue;
			unset( $numerators[ $key ] );
			unset( $denominators[ $found ] );
		}
	}
private function cancel( &$numerators, &$denominators )
	{
		if ( ! $denominators ) return;

		foreach ( $numerators as $key => $numerator )
		{
			$found = array_search( $numerator, $denominators );
			if ( $found === false ) continue;
			unset( $numerators[ $key ] );
			unset( $denominators[ $found ] );
		}
	}
private function cancel ( & $ numerators , & $ denominators ) { if ( ! $ denominators ) return ; foreach ( $ numerators as $ key => $ numerator ) { $ found = array_search ( $ numerator , $ denominators ) ; if ( $ found === false ) continue ; unset ( $ numerators [ $ key ] ) ; unset ( $ denominators [ $ found ] ) ; } }
Cancel out the common items in the set of numerators and denominators
@param array $numerators
@param array $denominators
Cancel out the common items in the set of numerators and denominators