How to find roots of an implicit exprerssion

2 Ansichten (letzte 30 Tage)
Uday
Uday am 22 Jul. 2015
Bearbeitet: Walter Roberson am 23 Jul. 2015
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 Kommentare
Torsten
Torsten am 22 Jul. 2015
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 am 23 Jul. 2015
Bearbeitet: Walter Roberson am 23 Jul. 2015
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by