solve equation with intégral with the unknown inside the integral in matlab

1 vue (au cours des 30 derniers jours)
ZOUBAIR DAOUMA
ZOUBAIR DAOUMA le 1 Mai 2020
Commenté : Ameer Hamza le 3 Mai 2020
I'm looking for a Matlab program that will determine for which value of "tau1" this equation is verified, the problem is that one of the "R0" terminals depends on this unknown (tau1), please I need help.
  1 commentaire
darova
darova le 1 Mai 2020
Show some of your attempts. Do you have any idea? What about fsolve?

Connectez-vous pour commenter.

Réponses (1)

Ameer Hamza
Ameer Hamza le 2 Mai 2020
Try this
R1 = 7.403361345;
Bi = 100;
n = 1/2;
R0 = @(tau) sqrt(abs(tau)/Bi)*R1;
integrand = @(tau, r) (abs(tau).*R1.^2./r.^(2+n) - Bi./r.^n).^(1./n);
int_term = @(tau) integral(@(r) integrand(tau, r), R1, R0(tau));
eq = @(tau) sign(tau)*R1*int_term(tau) + 1;
sol_tau = fsolve(eq, rand())
Result
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
sol_tau =
95.7194
  2 commentaires
ZOUBAIR DAOUMA
ZOUBAIR DAOUMA le 3 Mai 2020
I tested this program but it does not give me the result is what you can show me how you got the result.
Ameer Hamza
Ameer Hamza le 3 Mai 2020
Somewhere on your MATLAB path. You have created a script named fsolve(). fsolve() is the name of MATLAB's function. You need to rename your script. Run this line
which fsolve -all
It will show the list of all fsolve() function, which MATLAB can see. Rename the one you defined.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by