An example of oversampling (new inputs are not at faster clock).

Algorithm:

Solving for X the equation

         2 
       aX  + bX + c = 0 where a, b,c are inputs of the program

using iterative Newton method.

         Delta = b*b - 4ac

         X0 = Delta/2 
         n>= 0 Xn+1 = Xn*Xn + Delta / 2 Xn
         stop when   | X(n-1) -X(n) | < epsilon

It is not a reactive program.

Signal Programs

Compiling

Use one of the following compiling command

with C code production

    (1) signal -tra -c equationSolving.SIG 

with Cluster and C code production

    (2) signal -tra -c -clu equationSolving.SIG 

with Cluster and C code production with threads (results in the directory Threads)

    (3) signal -tra -c -threads equationSolving.SIG -d=Threads

Execution

For (1) and (2) commands

For (3) goto the Threads subdirectory

Execution

If the Makefile file does not exist, use the cmake command. For example, in the directory Threads, execute the command

            cmake .

(cmake takes the CMakeLists.txt file as input description).

 All Files

Generated on Mon Jul 25 16:55:00 2011 for Polychrony, by  doxygen 1.6.1. This page has been designed by the Espresso team ( contact )