[Scilab-users] numderivative Heart function

classic Classic list List threaded Threaded
2 messages Options
Hermes Hermes
Reply | Threaded
Open this post in threaded view
|

[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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

Re: numderivative Heart function

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:[hidden email]] On Behalf Of Hermes
Sent: Monday, October 02, 2017 9:42 AM
To: [hidden email]
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
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users