Defines a Maxima function in the Scilab environment
defmf(scinam,maxnam,code)
is the name of the function in Scilab environment
is the function definition in Maxima (see Examples)
is the Maxima code of the function
The Maxima function can have several or an undefined number of arguments.
defmf('scifun','maxfun(x)','x^2+x+1') Syms('x'),diff(scifun(x),x) defmf('mean3','mean3(x,y,z)','(x+y+z)/3'),mean3(1,2,3) defmf('Mean','Mean([L])','block(s:0,for i in L do s:s+i,s/length(L))') Mean(1,2,3,4,5,6),Mean(3,2,6,8,9,2,11,32)