Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Newton-Raphson Method for GUI why isn't it working?? where is wrong?? case newtonraphson str get (handles.equat ioninput, String') Fn inline(str) str1 diff (sym(str) Fn1 inline(str):
Newton-Raphson Method for GUI why isn't it working?? where is wrong??
case newtonraphson str get (handles.equat ioninput, String') Fn inline(str) str1 diff (sym(str) Fn1 inline(str): pronpt-f the initial value: the error factor the maxinum iternary: numl ines-1: options. Resize- on neNeetonRaphson defaul t answers dIg-inputdlg(pronpt,name,numl ines,defaultanswer, opt ions): if isenpty(dlg) xrestr2double(dl): es str2double(dlg) n1-str2double(dlgi3t): iter-D:ea 100: flag false: while (1) xrxr-Fn(xr)/Fn1(xr): iter iter xroldaxr if r ~ 0, ea = abs( (xr-arold)/xr)+100:end if ea nl flag false: break:end end if flag false set (handles.root, String,num2str)): set (handles.thevalueoffunction, String num2str Fn(x))) set (handles. iterat ions, 'String ,nun2striter)): set (handles.errorfactor, String ,num2sta)): else set (handles . root,'String','error'); case newtonraphson str get (handles.equat ioninput, String') Fn inline(str) str1 diff (sym(str) Fn1 inline(str): pronpt-f the initial value: the error factor the maxinum iternary: numl ines-1: options. Resize- on neNeetonRaphson defaul t answers dIg-inputdlg(pronpt,name,numl ines,defaultanswer, opt ions): if isenpty(dlg) xrestr2double(dl): es str2double(dlg) n1-str2double(dlgi3t): iter-D:ea 100: flag false: while (1) xrxr-Fn(xr)/Fn1(xr): iter iter xroldaxr if r ~ 0, ea = abs( (xr-arold)/xr)+100:end if ea nl flag false: break:end end if flag false set (handles.root, String,num2str)): set (handles.thevalueoffunction, String num2str Fn(x))) set (handles. iterat ions, 'String ,nun2striter)): set (handles.errorfactor, String ,num2sta)): else set (handles . root,'String','error')
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started