[Scilab-users] numderivative Heart function

Stéphane Mottelet stephane.mottelet at utc.fr
Thu Dec 7 19:58:43 CET 2017


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)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20171207/eca7a6fb/attachment.htm>


More information about the users mailing list