<?php
$progression=1;
$cpte=10000;
for($i=2;$i<$cpte;$i++){
$progression+=1/$i/$i;
}
$pi=sqrt(6*$progression); echo "Pi ($cpte loops) : $pi , cste ".M_PI."\n";
$progression=1;
$cpte=100000;
for($i=2;$i<$cpte;$i++){
$progression+=1/$i/$i;
}
$pi=sqrt(6*$progression); echo "Pi ($cpte loops) : $pi , cste ".M_PI."\n";
PD9waHAKCiRwcm9ncmVzc2lvbj0xOwokY3B0ZT0xMDAwMDsKZm9yKCRpPTI7JGk8JGNwdGU7JGkrKyl7CgkkcHJvZ3Jlc3Npb24rPTEvJGkvJGk7Cn0KJHBpPXNxcnQoNiokcHJvZ3Jlc3Npb24pOwplY2hvICJQaSAoJGNwdGUgbG9vcHMpIDogJHBpICwgY3N0ZSAiLk1fUEkuIlxuIjsKCiRwcm9ncmVzc2lvbj0xOwokY3B0ZT0xMDAwMDA7CmZvcigkaT0yOyRpPCRjcHRlOyRpKyspewoJJHByb2dyZXNzaW9uKz0xLyRpLyRpOwp9CiRwaT1zcXJ0KDYqJHByb2dyZXNzaW9uKTsKZWNobyAiUGkgKCRjcHRlIGxvb3BzKSA6ICRwaSAsIGNzdGUgIi5NX1BJLiJcbiI7Cg==