@ sign will
be taken as introducing the argument list (with the mnemonic `function
evaluated at a point'). Thus,
Further, authors often wish to incorporate operations, particularly powers and derivatives between the function and its arguments. We must recognize the semantic import, while still accepting the presentational hint. We extend the syntax by allowing a primes (or a backprime taking a macro argument), which applied to a mathematical function, is taken as signifying single (or multiple) derivative; the caret is then reserved solely for powers. Inclusion of other declared operators needs also be considered (eg. transpose, conjugation, etc.).
Thus the following markup could be employed
At the same time, it still supports good presentation. It preserves the author's flexibility in choosing whether to write derivatives with embedded primes or as a prefix operation; similarly with powers. Standardized presentation of function arguments is also provided.
The special function macros also serve as a starting point for type inference, but further declarations will be needed to handle variables and operators, at least.
|
![]() |