solve equation with intégral with the unknown inside the integral in matlab
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
Réponses (1)
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
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.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
