Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (825 Bytes)

1
node top(xn : real) returns (yn, ynm1, ynm2, ynm3, ynm4, ynm5, xnm1, xnm2, xnm3, xnm4, xnm5, xnm6 : real);
2
let
3
  assert(xn >= -1.0 and xn <= 1.0);
4
  yn = 0. -> 0.0071206017131343335*xn + 0.02429729818092203*pre xnm1 + 0.04613413371939573*pre xnm2 + 0.05613064430953349*pre xnm3 + 0.04613413371939573*pre xnm4 + 0.02429729818092203*pre xnm5 + 0.0071206017131343335*pre xnm6 - -2.7445577051566046*pre yn - 4.495158480897364*pre ynm1 - -4.649204375147074*pre ynm2 - 3.2299784258838873*pre ynm3 - -1.4088842648092799*pre ynm4 - 0.31451868286474205*pre ynm5;
5
  ynm1 = 0. -> pre yn;
6
  ynm2 = 0. -> pre ynm1;
7
  ynm3 = 0. -> pre ynm2;
8
  ynm4 = 0. -> pre ynm3;
9
  ynm5 = 0. -> pre ynm4;
10
  xnm1 = 0. -> xn;
11
  xnm2 = 0. -> pre xnm1;
12
  xnm3 = 0. -> pre xnm2;
13
  xnm4 = 0. -> pre xnm3;
14
  xnm5 = 0. -> pre xnm4;
15
  xnm6 = 0. -> pre xnm5;
16
tel