How to solve the exponential equation?

Hi, I want to solve the equation as follows:
a^x = b^x + c
(a,b,c are the constant)
How can I get the 'x' using matlab?
please help me. thank you.

답변 (1개)

Star Strider
Star Strider 2014년 7월 3일

1 개 추천

It is sensitive to the values of the constants, but this code works:
a = .3;
b = .5;
c = .7;
fcn = @(x,a,b,c) a.^x - b.^x - c;
X = fzero(@(x) fcn(x,a,b,c), 10)
produces:
X =
-701.0091e-003

댓글 수: 2

Yongjun Park
Yongjun Park 2014년 7월 3일
thx :)
Star Strider
Star Strider 2014년 7월 3일
My pleasure!
(The most sincere expression of thanks on MATLAB Answers is to Accept the Answer that most closely solves your problem.)

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

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2014년 7월 2일

댓글:

2014년 7월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by