Skip to content

Instantly share code, notes, and snippets.

@OmarBerrayti
Created February 28, 2013 21:56
Show Gist options
  • Select an option

  • Save OmarBerrayti/5060456 to your computer and use it in GitHub Desktop.

Select an option

Save OmarBerrayti/5060456 to your computer and use it in GitHub Desktop.
just a little test :)
<?php
$i = 0;
$result = array();
while ($i <= 10) {
if($i != 0){
$x = $result[$i-1];
$result[$i] = ((5.2 - (10.8 * $x)) * 0.04) + $x;
}else{
$result[0] = 0;
}
$i++;
}
print_r($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment