colon (:) SciMax Toolbox latex

SciMax Toolbox >> defmf

defmf

Defines a Maxima function in the Scilab environment

Calling Sequence

defmf(scinam,maxnam,code)

Parameters

scinam

is the name of the function in Scilab environment

maxnam

is the function definition in Maxima (see Examples)

code

is the Maxima code of the function

Description

The Maxima function can have several or an undefined number of arguments.

Examples

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)

Author

See also

colon (:) SciMax Toolbox latex