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: 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)
  • Can I not use variables with fsolve?
    ... Im trying to solve a system of 2 non-linear equations using fsolve. ... Undefined function or variable 'Da'. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • problem with fsolve command
    ... I am trying to solve the following system of non-linear equations (3 ... Unbalanced or misused parentheses or brackets. ... Error in ==> fsolve at 176 ... fuser = feval; ...
    (comp.soft-sys.matlab)
  • ? N eqns and N unknowns
    ... one must have N linearly independent equations to ... N non-linear equations for N unknowns? ... by Cheng Cosine ...
    (sci.math)

Loading