【发布时间】:2021-04-11 05:58:45
【问题描述】:
根据这篇referralcandy 文章中的信息,我得出结论,我需要使用以下幂等式按排名计算商店的利润:
revenue = (1.25 * 10 ^ 13) / (x ^ 1.54);
我将我正在研究的网站的 Alexa 排名插入 X,然后该等式将为您提供收入估计值。
所以问题是我如何使用 PHP 做到这一点,到目前为止我尝试的是:
function getStoreRevenueByRank(int $rank)
{
return (1.25 * 10 ^ 13) / ($rank ^ 1.54); // 0.0034982508745627 (incorrect)
}
虽然你可以看到正确的google calculator result。
【问题讨论】: