fork download
  1. <?php
  2. function f($rank) { return 10000 * pow(0.993575964272119, pow($rank, 3.16332422407427) - 1); }
  3. function g($rank) { printf("f(%d) = %.5g\n", $rank, f($rank)); }
  4. g(1);
  5. g(2);
  6. g(4);
  7. g(9);
  8. g(10);
  9. g(200);
  10. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
f(1) = 10000
f(2) = 9500
f(4) = 6000
f(9) = 12.065
f(10) = 0.84341
f(200) = 0