Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / sandbox / extraction / linear / lp_iir_9600_4_elliptic.lus @ 43460259

History | View | Annotate | Download (575 Bytes)

1
node top(xn : real) returns (yn, ynm1, ynm2, ynm3, xnm1, xnm2, xnm3, xnm4 : real);
2
let
3
  assert(xn >= -1.0 and xn <= 1.0);
4
  yn = 0. -> 0.027571327441965943*xn + 0.09946114577079751*pre xnm1 + 0.14434540411316932*pre xnm2 + 0.09946114577079751*pre xnm3 + 0.027571327441965943*pre xnm4 + 1.5881829830740517*pre yn - 1.7443826804178832*pre ynm1 + 1.0171424112847436*pre ynm2 - 0.3079664796302433*pre ynm3;
5
  ynm1 = 0. -> pre yn;
6
  ynm2 = 0. -> pre ynm1;
7
  ynm3 = 0. -> pre ynm2;
8
  xnm1 = 0. -> xn;
9
  xnm2 = 0. -> pre xnm1;
10
  xnm3 = 0. -> pre xnm2;
11
  xnm4 = 0. -> pre xnm3;
12
tel