Non-Linear Equation with two unknowns
- From: "Faisal Iradat" <faisal.iradat@xxxxxxxxxx>
- Date: Sun, 21 Dec 2008 19:13:03 +0000 (UTC)
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.
.
- Follow-Ups:
- Re: Non-Linear Equation with two unknowns
- From: John D'Errico
- Re: Non-Linear Equation with two unknowns
- Prev by Date: help!!! for simulink
- Next by Date: Re: Problem with Matlab Compiler/Builder
- Previous by thread: help!!! for simulink
- Next by thread: Re: Non-Linear Equation with two unknowns
- Index(es):
Relevant Pages
|
Loading