how to solve logarithm equation

6 次查看(过去 30 天)
i want to solve an logarithm equation and find the value of x
log10(x^4)-log10(x^3) == log10(5*x) -log10(2*x)
  4 个评论
Ghazwan
Ghazwan 2022-10-11
syms a b c x
eqn = a*x^2 + b*x + c == 0
S = solve(eqn)
David Hill
David Hill 2022-10-11
Use fzero to solve a non-linear equation numerically. fzero

请先登录,再进行评论。

采纳的回答

David Hill
David Hill 2022-10-11
f=@(x)log10(x.^4)-log10(x.^3)-log10(5*x) +log10(2*x);
fzero(f,2)
ans = 2.5000
x=.1:.1:10;
plot(x,f(x));

更多回答(2 个)

David Hill
David Hill 2022-10-11
if you plot, it never crosses zero.
f=@(x)log10(4*x)-log10(3*x) -log10(5*x) +log10(2*x)
f = function_handle with value:
@(x)log10(4*x)-log10(3*x)-log10(5*x)+log10(2*x)
fzero(f,1)
Exiting fzero: aborting search for an interval containing a sign change because NaN or Inf function value encountered during search. (Function value at -4.06772e+307 is -Inf.) Check function or try again with a different starting value.
ans = NaN

Torsten
Torsten 2022-10-11
编辑:Torsten 2022-10-11
log10(4*x)-log10(3*x) = log10((4*x)/(3*x)) = log10(4/3)
log10(5*x)-log10(2*x) = log10((5*x)/(2*x)) = log10(5/2)
So you try to "solve"
log10(4/3) = log10(5/2)
You can imagine that this makes no sense.

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by