Question: Write two functions that solve nonlinear systems of equations using the Quasi - Newton method. Function name: qnr _ nls Inputs: three: the name of

Write two functions that solve nonlinear systems of equations using the Quasi-Newton method.
Function name: qnr_nls
Inputs: three: the name of the equation (a string), a vector of starting values and a scalar allowable error (Es)
Outputs: one: the value of a solution to the system of equations
Comments:
H1 help line
Author and creation date information
Explanations of code and variables as necessary
This function must call two separate function: the one specified by the string for function evaluations and forwdiff_nls.m for derivative evaluations
Examples of how this should work:
\table[[x2-2y2=2xy=2 This has 2 solutions at (2,1) and (-2,-1).,]]
>>x=[0;0];
>> soll=qnr_nls('my_fun', x,.001
Warning: Matrix is singular to working precision. > In
qnr_nls (line 17) soll = Inf Inf
>>x=[10;10];
Write two functions that solve nonlinear systems

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!