Gauss to Scilab translation Gauss to Scilab translation Printings and graphs

Grocer >> Gauss to Scilab translation > gauss2sci

gauss2sci

Gauss to Scilab translation

CALLING SEQUENCE

gauss2sci(filein,lib,verbose)

PARAMETERS

Input

• filein = a string, the name of a file collecting Gauss programs and scripts

• lib = a string, the name of the library where the files resulting from the translation are put

• verbose = a boolean, indicating whether the Gauss lines of codes are displayed as they are translated (optional: %f if not given)

Output

• Nothing: the result of the translation is splitted into numerous files, one that gathers the lines of code corresponding to a script and one file per Gauss procedure.

DESCRIPTION

Performs a partial and imperfect, even if substantial, translation of a Gauss file collecting Gauss programs and scripts. The result of the translation is splitted into numerous files, one that gathers the lines of code corresponding to a script and one file per Gauss program, whose name is the program name, suffixed by .sci.

EXAMPLE

gauss2sci('c:/qreg/qreg.src','c:/qreg.sci')
 
// Suppose that you have put in the library 'c:/qreg' the qreg.scr file taken from Thierry Roncalli qreg library (http://www.thierry-roncalli.com/). Then 
// the translation results in a file qreg.sce which, in this case, gathers the comments put before each function to describe what it does; 5 files _qreg_solvelp1.sci, _qreg_solvelp.sci, localqreg.sci,
// qreg.sci and setqreg.sci that are the translation of the 5 procedures with the same name (less the suffix '.sci') that you can find in the file qreg.src.

AUTHOR

Eric Dubois 2011
Gauss to Scilab translation Gauss to Scilab translation Printings and graphs