필터 지우기
필터 지우기

logarithm how to slove

조회 수: 1 (최근 30일)
MANANJAYA NAYAK
MANANJAYA NAYAK 2022년 11월 27일
댓글: Dyuman Joshi 2022년 11월 27일
i want the result should be in form of logarithm
log10(64)-log10(128)+log10(32)
ans =
1.2041
% but i need the result in form of 4*log10(2)
  댓글 수: 1
Dyuman Joshi
Dyuman Joshi 2022년 11월 27일
You won't be able to do that with numeric operations. MATLAB will always return final answer as numeric value.
The closest you might get is using symobilc variable, which supports natural log -
syms f(x,y,z)
f(x,y,z)=log10(x)-log10(y)+log10(z);
val=simplify(f(64,128,32))
val = 
str=class(val)
str = 'sym'

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Exponents and Logarithms에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by