Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
log数の自然対数を計算するラケットの機能を知っています。任意の底に上げられた数の対数を見つけようとしています。言い換えれば、これの代わりに:
log
> (log 9) 2.1972245773362196
私はこれに似た何かをしたいと思います:
> (logarithm 3 9) 2
Racketに組み込まれている、またはPLaneTのモジュールで利用できる機能について誰かが知っている機能はありますか?このように使用できますか?
数学を使用: log k n = ln n / ln k:
(/ (log 9) (log 3))