Search code examples
functionparametersmaple

Programming a function in Maple


What is the equivalent to a procedural C function in Maple? Maple tells me that a module cannot except parameters.


Solution

  • A Maple module can be applied to arguments and thus act as a function call if it has an exported member named ModuleApply.

    In that case a function call (involving module m) of the form m(...arguments...) will invoke the call m:-ModuleApply(...arguments...).

    See ModuleApply