> 1); // Convert the integer back to a float $y = unpack('f', pack('l', $i))[1]; // Perform the final calculation return $y * (1.5 - 0.5 * $x * $y * $y); }