Solution of an Implicit Function

Hello,
I have an equation which is (200)*(2-0.1*sqrt(x)-2*log(2-0.1*sqrt(x)))-(200)*(2-0.1*sqrt(100)-2*ln(2-0.1*sqrt(100)))=t. I am supposed to find x value for t=1000, but I could not achieve. Can you help me on this?
Thank you

댓글 수: 1

Torsten
Torsten 2020년 3월 29일
Use "fzero" to solve your equation for x, given t = 1000.

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

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 3월 29일
편집: Ameer Hamza 2020년 3월 29일

1 개 추천

There is no function 'ln' in MATLAB. I guess you meant log to the base e. Try this
f = @(x,t) (200)*(2-0.1*sqrt(x)-2*log(2-0.1*sqrt(x)))-(200)*(2-0.1*sqrt(100)-2*log(2-0.1*sqrt(100))) - t;
f_sol = fsolve(@(x) f(x, 1000), 0);
I suspect that by log you might have meant log to the base 10. In that case replace first log with log10
f = @(x,t) (200)*(2-0.1*sqrt(x)-2*log10(2-0.1*sqrt(x)))-(200)*(2-0.1*sqrt(100)-2*log(2-0.1*sqrt(100))) - t;
f_sol = fsolve(@(x) f(x, 1000), 0);

댓글 수: 2

Berkay Berk
Berkay Berk 2020년 3월 29일
Sorry, I meant log as natural logarithm, you're right.
I really stacked and this worked perfectly, thank you.
Ameer Hamza
Ameer Hamza 2020년 3월 29일
Glad to be of help.

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

카테고리

제품

릴리스

R2017b

질문:

2020년 3월 29일

댓글:

2020년 3월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by