AnsweredAssumed Answered

Defining functions in Genesys Math Language

Question asked by GMAPES on Feb 28, 2013
I am using Math language and trying to define some functions.  The "function" statement produces errors.  A trivial example that shows the errors follows.

26  function out = anf()
27  out=17
28  end

This produces the error, "Syntax error at line 26:  Invalid statement:  "function out=anf()"

Can you help me figure out what I'm doing wrong?
Thank you, Gordon