Matrix Elements VB-800 Manual do Utilizador Página 109

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 172
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 108
A4.3 Running OxGauss programs from GiveWin 101
Which produces the output:
Ox version 3.00 (Windows) (C) J.A. Doornik, 1994-2001
calling gaussfunc
result from gaussfunc
30.000000 10.000000
10.000000 30.000000
If there are problems at this stage, we suggest to start by reading the first chapter of
the ‘Introduction to Ox’ (Doornik and Ooms, 2001).
A4.3 Running OxGauss programs from GiveWin
Using Ox Professional, the OxGauss program can be loaded into GiveWin. The syntax
highlighting makes understanding the program easier:
Click on Run (the running person) to execute the program. This runs the program using
the OxGauss application, with the output in a window entitled OxGauss Session.
GiveWin will treat the file as an OxGauss file if it has the .src, .g or .oxgauss
extension. If not, the file can still be run by launching OxGauss from the GiveWin
workspace window.
A4.4 Calling OxGauss from Ox
The main objective of creating OxGauss was to allow Gauss code to be called from Ox.
This helps in the transition to Ox, and increases the amount of code that is available to
users of Ox.
The main point to note is that the OxGauss code lives inside the gauss namespace.
In this way, the Ox and OxGauss code can never conflict.
Returning to the earlier example, the first requirement is to make an Ox header file
for gaussfunc.src. This must declare the external variables and procedures explicitly
in the gauss namespace:
Vista de página 108
1 2 ... 104 105 106 107 108 109 110 111 112 113 114 ... 171 172

Comentários a estes Manuais

Sem comentários