Next: Contents
M. SOFRONIOU
DIPARTIMENTO DI MATEMATICA, UNIVERSIT´A DEGLI STUDI DI BOLOGNA
PIAZZA PORTA SAN DONATO, 40126 BOLOGNA, ITALIA.
EMAIL: NA.SOFRONIOU@NA-NET.ORNL.GOV
A package Format.m extending Mathematica's built-in formatting rules is presented. Examples of shortcomings of the standard rules are given, where code generated may not be syntactically correct and of appropriate precision. These issues are addressed and the formatting rules are extended to include lists as data objects and assignments to expressions. The package may be used to considerably enhance and automate code generation. The result is a symbiosis of symbolic-numeric environments built upon the existing Splice communication process. Finally, some examples from applied numerical mathematics are given, where the package has been used to establish a generalised formulation to a problem via the use of a template file.