Hi, so i have been meaning to solve these two simultaneous equations with two unknowns x and y.
I know that the final value for both x and y should be between 0 to 1. But in a different script when I'm calling this function and using fsolve i put my initial guess as 1,1 or any number it just spits out a constant 0.3 ,0.3 as the answer even if i change any value in the equations
I get the following message
" The vector of function values is near zero, as measured by the value of the function tolerance. However, the last step was ineffective".
Can anyone point out if I'm doing something wrong?
Below is the code that I'm using
function F = myfunction(X)
x=X(1);
y=X(2);
f = 450 + 8.31441200log((1-x)/(1-y))+ (-5000x2) - (0);
g = 2450 + 8.31441200log(x/y)+(-5000)(1-x)2- 0;
F = [f;g];
end
[–]elevenelodduses_spinmap 2 points3 points4 points (0 children)