Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (266 Bytes)

1
node top(xn : real) returns (yn, xnm1, xnm2, ynm1 : real);
2
let
3
  assert(xn >= -1.6 and xn <= 1.6);
4
  yn = 0. -> 0.21875*xn + 0.40625*pre xnm1 + 0.21875*pre xnm2 + 0.375*pre yn - 0.1875*pre ynm1;
5
  ynm1 = 0. -> pre yn;
6
  xnm1 = 0. -> xn;
7
  xnm2 = 0. -> pre xnm1;
8
tel