derivitive matlab temp function
显示 更早的评论
in matlab how would I ask the user to enter a starting guess V0 to use as the first value for the Newton-Raphson method. If this guess causes the derivative of the temperature function to be zero , the method will immediately fail due to a division by zero. Che
3 个评论
Aquatris
2020-2-25
You require an additional input to your function.
function y = fun(v,v0)
%The Newton Raphson Method
...
%check condition for division by 0
if statement == 0
error('Division by 0 detected, stopping the function');
end
% continue the method
...
end
What exactly is the problem you are running into?
matt noman
2020-2-25
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Newton-Raphson Method 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!