[Scilab-users] numderivative Heart function

sgougeon at free.fr sgougeon at free.fr
Thu Nov 30 18:03:18 CET 2017


Hello Hermes,

----- Mail original -----
>.../...
>function m=g(x1,x2)
>  m=[2*x1-(x1.*(1.25*x2-sqrt(abs(x1))))/abs(x1).^(3/2),2.5*(1.25*x2-sqrt(abs(x1)))];

.. or ./abs(x1)  // instead?

>.../...
>I receive the following alert:
>  "Function not defined for given argument type (s), check arguments or
>define function% function_abs for overloading."
>
>should I define the function mabs = sqrt (x1 ^ 2 + x2 ^ 2);
>
>And using only the function g in contour2d (x, 2 * x ', g, [0 0]) I also
>receive the following alert:
>---> in builtin contour2d (C: \ PROGRA ~ 1 \ SCILAB ~ 1.0 \ modules \
>graphics \ macros \ contour2d.sci line 12)
>at line 33 of executed file C: \ Users \ hermesr \ Documents \ Scilab Xcos \
>FORUMs \ Heart and numderivative2.sce
>
>g: Wrong size for output argument # 1: A Scalar expected.

I also get with 6.0.0+:
--> contour2d(x, 2*x', g, [0 0]);
in builtin                contour2d ( SCI\modules\graphics\macros\contour2d.sci line 12 )

g: Wrong size for output argument #1: A Scalar expected.
敦慶l: An error occured in '硥捥敆慶䙬' subroutine.


Samuel



More information about the users mailing list