Ox Programming Language Assignment Help

Ox Programming Language is an Object-Oriented matrix programming language. It is with mathematical and statistical functional library. It was developed by Jurgen Doornik. It is used for program PcGive and related software. It is like Matlab or{" "} Gauss .

Ox Programming language is available for Windows, Mac OS X and Linux platform.The programming environment of Ox programming is for econometric modeling OxMetrics which is based on Ox.

The Example of Ox programming is given below, the extension of the program file is .ox extension. The Header files are used to communicate declaration from one source file to another. Header files have the .hextension.

As a first example of an Ox program consider the following Ox code:

              #include oxstd.h // include Ox standard library header
          main()            // function main is the starting point
    {
        decl m1, m2;     // declare two variables, m1 and m2

            m1 = unit(3);// assign to m1 a 3 x 3 identity matrix
        m1[0][0] = 2;           // set top-left element to 2
        m2 = <0,0,0;1,1,1>;//m2 is a 2 x 3 matrix, the first
                // row consists of zeros, the second of ones

            print("two matrices", m1, m2); // print the matrices
    } 
              The program is in ox\samples\myfirst.ox; running this program
              should produce the following result: two matrices 2.0000 0.00000
              0.00000 0.00000 1.0000 0.00000 0.00000 0.00000 1.0000 0.00000
              0.00000 0.00000 1.0000 1.0000 1.0000
            

An important advantage of Ox is that we can directly work with matrices and do not have to worry about memory allocation and deallocation. Low-level languages may be faster, although we have encountered several cases in which Ox performed better than a comparable C program. Ox code has a much closer correspondence to mathematical expressions used on paper.

video{" "} https://vimeo.com/49423543