[Scilab-users] numderivative Heart function

Rafael Guerra jrafaelbguerra at hotmail.com
Mon Oct 2 23:22:30 CEST 2017


Salut,

1. Define: z = H(x, y).
2. Differentiate analytically to obtain the gradient g = (gx,gy) = (dH/dx, dH/dy)
3. Use same contour method as before to plot |g| = 0

PS: as derivative has singularity along x=0; need to define grid appropriately to avoid it.

Bonne chance
Rafael

-----Original Message-----
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Hermes
Sent: Monday, October 02, 2017 9:42 AM
To: users at lists.scilab.org
Subject: [Scilab-users] numderivative Heart function

Hola,
I would like to find the values of the function for which its derivative is
equal to zero.

function val = Heart(x1, x2) 
    val=(1.25*x2-sqrt(abs(x1))).^2+x1.^2-1; 
endfunction;

I've tried it with the numderivative function.
Gracias



--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list