Hello,

As y is your unknown, you have interverted x and y in the arguments list of Hxy function (y is the unknown and x the parameter) :

function val = Hxy(y,x)
val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched .^ to ^ to handle vectors
endfunction;

will dot it.

S.

Le 07/12/2017 à 18:29, Hermes a écrit :
function val = Hxy(x,y)
     val=(1.25*y-sqrt(abs(x))).^2+x.^2-1; // switched .^ to ^ to handle
vectors
endfunction;

x=0.0;
yint1=fsolve(1,list(Hxy,x))//// ---> (25/16)*y^2-1
disp(yint1)
yint2=fsolve(-1,list(Hxy,x))
disp(yint2)

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to