解决log in iphone Objective C 计算

发布于 2024-09-27 06:13:53 字数 92 浏览 3 评论 0原文

如何在 iPhone 上求解对数?我尝试对 log2f 和所有这些使用不同的方法,但是我不确定如何制作日志让我们说 log (base4) 5 = x x 将作为答案给出

how can a logarithm be solved on the iphone. I tried using different methods with the log2f and all those however I wasnt sure exactly how to make a log lets say log (base4) 5 = x
and x would be given as the answer

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

盛夏尉蓝 2024-10-04 06:13:53

log_a(x)=log_b(x) / log_b(a) 其中 a 是您想要的基数,b 是任何其他基数。特别是以 5 为底的对数 4 是 log2f(5)/log2f(4)

log_a(x)=log_b(x) / log_b(a) where a is the base you want and b is any other base. In particular log base 4 of 5 is log2f(5)/log2f(4)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文