How can I write log(e) in MATLAB?
18 ビュー (過去 30 日間)
古いコメントを表示
I am trying to calculate x=log(e) but I can not. Any help?
6 件のコメント
John D'Errico
2021 年 4 月 16 日
Surely you can read the formula from that site?
Walter Roberson
2021 年 4 月 16 日
f = @(x) 4.^x - 256;
log4_256 = fzero(f, 1.2345)
4^log4_256
採用された回答
David Fletcher
2018 年 4 月 15 日
I assume you mean log10? In Matlab log is base e, so log(e)=1
x=log10(exp(1))
6 件のコメント
John D'Errico
2021 年 4 月 16 日
@sultana saffi Please stop spamming this question with answers and comments to compute a log to do your homework.
Do you know the basic rule for logs to other bases?
The formula is given here:
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Exponents and Logarithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!