Non-Linear Equation with two unknowns



Hi Everyone,

Kindly let me know if the following function I have written to determine two unknowns of non-linear equations using fsolve is rigth or not?

x0=0.2;
y0 = 0.2;
options=optimset('Largescale','off','Display','iter');
x = fsolve('prob',x0,options,y0);
fprintf('%f',x);

####Function#######
function f = prob(x)
f(1) = x(1) + (1-x(2))^2 -1;
f(2) = (2*(1-2*x(1)))-x(2)*((33*(1-2*x(1)))+(33*x(1)*(1-(2*x(1))^3)));

I just want to determine the point where both equations intersect.
.



Relevant Pages

  • Re: fsolve
    ... I am trying to use fsolve to to solve a set of 3 non-linear equations ... with 3 unknowns. ... My problem is that in the above function myfun2, ...
    (comp.soft-sys.matlab)
  • fsolve
    ... I am trying to use fsolve to to solve a set of 3 non-linear equations with 3 unknowns. ... I would like to be able to pass these calculated parameters, as well as the ones to be solved for, into myfun2, so it would look something like this; ...
    (comp.soft-sys.matlab)
  • Re: constraints in system of non-linear equations
    ... I'm trying to solve a system of 3 non-linear equations (using fsolve), and I need to impose restrictions on the each of the unknowns. ...
    (comp.soft-sys.matlab)
  • fsolve problem
    ... I am using Matlab 7.6.0.324, and I find that I am having problems using fsolve to solve a system on two non-linear equations in two unknowns. ...
    (comp.soft-sys.matlab)
  • Re: Non-Linear Equation with two unknowns
    ... Kindly let me know if the following function I have written to determine two unknowns of non-linear equations using fsolve is rigth or not? ... A scalar sympoly object ... I'll assume that you only wish the real roots. ...
    (comp.soft-sys.matlab)