[Scilab-users] Get back the name of a function given as argument
Pierre Vuillemin
contact at pierre-vuillemin.fr
Mon Oct 12 16:46:51 CEST 2015
Hi all,
I am building some optimisation tools, and in this context, I was
wondering if it was possible to get back the name of a function given as
argument of another function.
More specifically, consider the function 'fun' defined as
deff('[f,g] = fun(x)','f = x^2;g = 2*x');
and an optimisation routine "minimize" which first argument is a
function.
Is there a way to get back the name of the function "fun" when calling
"minimize(fun)" ?
I would like to get back its name to wrap it inside another function
which includes calls towards numerical derivatives, if needed.
Best regards,
Pierre Vuillemin
More information about the users
mailing list