Derive base 10 logarithm from base 2 log output
18 ビュー (過去 30 日間)
古いコメントを表示
Hi
I am looking to calculate .
- log10 with base2log as input.i.e. log10(log2())
- log() with base2log as input i.e. log(log2())
I have only base2log function available for calculation and I don't have common log() and log10() available
Below is my code and I am looking for the right mathematical formula for conversion so that I can get equivalent log() and log10() using log2()
Thank you!!
input = 32;
b = log2(input);
constant = 2.30258509299405; % assuming log(10)
base10 = log(b) / (constant) % formula for conversion, I don't have log function available
output = log10(b)
nlog = log(input) % need conversion formula
nlog = log(32)/log(2.718281828)
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Argument Definitions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!