solve equation with intégral with the unknown inside the integral in matlab
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Ameer Hamza
2020-5-2
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 个评论
Ameer Hamza
2020-5-3
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.
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
