How to find roots of an implicit exprerssion

조회 수: 2 (최근 30일)
Uday
Uday 2015년 7월 22일
편집: Walter Roberson 2015년 7월 23일
Can anyone please tell me how to find roots of the following expression in MATLAB (solve for k) :
f(k) = -U + X/t(i) + (h*k*sech (k*h)^2 + tanh (k*h))/(2*(k*tanh (k*h))^(1/2));
for
U = 1;
X = 100;
h = 10;
t = 210:300 ?
Thank you in advance
  댓글 수: 4
Torsten
Torsten 2015년 7월 22일
Try MATLAB's "solve".
If no explicit solution can be found, use MATLAB's "fzero" for the function
func(k)=f(i)-(-U + X/t(i) + (h*k*sech (k*h)^2 + tanh (k*h))/(2*(k*tanh (k*h))^(1/2)))
Best wishes
Torsten.
Walter Roberson
Walter Roberson 2015년 7월 23일
편집: Walter Roberson 2015년 7월 23일
Could you confirm that you know the value of f(k) and you are solving for the k that makes the left hand side equal the right hand side? Or are you looking for the k that makes the right hand side zero?
If you are looking for the k that makes the right hand side zero, then my tests show me that the value will be slightly less than 1 for t(n) = 210, and will decrease as t(n) increases, declining to about .56 at t(n) = 300.

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

답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by