How can I write log(e) in MATLAB?
조회 수: 96 (최근 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에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!