Commit | Line | Data |
---|---|---|
8de51304 H |
1 | <?php\r |
2 | \r | |
3 | //Settings:\r | |
4 | $c = 999; //Higher number = better PI\r | |
5 | \r | |
6 | //Code:\r | |
7 | $pico = 0;\r | |
8 | \r | |
9 | $c1 = (180 / $c);\r | |
10 | echo ("Debug1: ".$c1."\n");\r | |
11 | \r | |
12 | $c2 = sin($c1);\r | |
13 | echo ("Debug2: ".$c2."\n");\r | |
14 | \r | |
15 | $pico = ( $c * $c2 );\r | |
16 | echo("Short PI: " . PI() . "\n Counted PI:\n");\r | |
17 | echo($pico);\r | |
18 | \r | |
19 | ?>\r |