Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / regression_tests / lustre_files / success / Simulink / src_polyval_test / polyval_test.lus @ 6c3ea955

History | View | Annotate | Download (2.01 KB)

1
-- This file has been generated by cocoSim
2

    
3

    
4
-- System nodes
5
node polyval_test (In1_1_1 : real; In2_1_1 : real; In2_1_2 : real; In2_1_3 : real; In3_1_1 : real; In3_1_2 : real; In3_1_3 : real; In3_1_4 : real; In3_1_5 : real; In3_1_6 : real)
6
returns (Out7_1_1 : real;
7
	Out1_2_1 : real; Out1_2_2 : real; Out1_2_3 : real;
8
	Out2_3_1 : real; Out2_3_2 : real; Out2_3_3 : real; Out2_3_4 : real; Out2_3_5 : real; Out2_3_6 : real); 
9
var
10
	Polynomial_1_1 : real;
11
	Polynomial1_1_1 : real; Polynomial1_1_2 : real; Polynomial1_1_3 : real;
12
	Polynomial2_1_1 : real; Polynomial2_1_2 : real; Polynomial2_1_3 : real; Polynomial2_1_4 : real; Polynomial2_1_5 : real; Polynomial2_1_6 : real;
13
	i_virtual_local : real;
14
let 
15
	Polynomial_1_1 =  (3.0000000000 * In1_1_1 * In1_1_1) + (2.0000000000 * In1_1_1) + (-10.0000000000);
16
	Polynomial1_1_1 =  (3.0000000000 * In2_1_1 * In2_1_1) + (0.0000025000 * In2_1_1) + (-10.0000000000);
17
	Polynomial1_1_2 =  (3.0000000000 * In2_1_2 * In2_1_2) + (0.0000025000 * In2_1_2) + (-10.0000000000);
18
	Polynomial1_1_3 =  (3.0000000000 * In2_1_3 * In2_1_3) + (0.0000025000 * In2_1_3) + (-10.0000000000);
19
	Polynomial2_1_1 =  (-15.8000000000 * In3_1_1 * In3_1_1) + (0.0000000000 * In3_1_1) + (-10.0000000000);
20
	Polynomial2_1_2 =  (-15.8000000000 * In3_1_2 * In3_1_2) + (0.0000000000 * In3_1_2) + (-10.0000000000);
21
	Polynomial2_1_3 =  (-15.8000000000 * In3_1_3 * In3_1_3) + (0.0000000000 * In3_1_3) + (-10.0000000000);
22
	Polynomial2_1_4 =  (-15.8000000000 * In3_1_4 * In3_1_4) + (0.0000000000 * In3_1_4) + (-10.0000000000);
23
	Polynomial2_1_5 =  (-15.8000000000 * In3_1_5 * In3_1_5) + (0.0000000000 * In3_1_5) + (-10.0000000000);
24
	Polynomial2_1_6 =  (-15.8000000000 * In3_1_6 * In3_1_6) + (0.0000000000 * In3_1_6) + (-10.0000000000);
25
	Out7_1_1 = Polynomial_1_1;
26
	Out1_2_1 = Polynomial1_1_1;
27
	Out1_2_2 = Polynomial1_1_2;
28
	Out1_2_3 = Polynomial1_1_3;
29
	Out2_3_1 = Polynomial2_1_1;
30
	Out2_3_2 = Polynomial2_1_2;
31
	Out2_3_3 = Polynomial2_1_3;
32
	Out2_3_4 = Polynomial2_1_4;
33
	Out2_3_5 = Polynomial2_1_5;
34
	Out2_3_6 = Polynomial2_1_6;
35
	i_virtual_local= 0.0 -> 1.0;
36
tel
37