Plotting the graph for THERMAL RECOVERY

How do i use the erfc function together with fzero? this is the equation i'm trying to solve exp(tcd)*erfc(sqrt(tcd))-0.909 = 0

답변 (1개)

David Wilson
David Wilson 2019년 4월 9일

0 개 추천

Plot it, and you'll quickly see where the root is:
f = @(tcd) exp(tcd).*erfc(sqrt(tcd))-0.909;
tcd = linspace(0,0.02);
plot(tcd,f(tcd))
Now use your favourite root solver, starting say from 0.01.
>> tcd = fsolve(f,0.01)
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
tcd =
0.0076

카테고리

도움말 센터File Exchange에서 Optimization Toolbox에 대해 자세히 알아보기

태그

질문:

2019년 4월 9일

답변:

2019년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by