Please answer this simple SPAM challenge: five minus five? (Example: nine)
You can use array_product() to calculate the geometric mean of an array of numbers: <?php $a = [ 1, 10, 100 ]; $geom_avg = pow( array_product( $a ), 1 / count( $a )); // = 9.999999999999998 ≈ 10 ?>
<< Back to user notes page