Relation walk
relation year, revenue
insert 1980, 520
insert 1981, 700
insert 1982, 360
insert 1983, 490
insert 1984, 432
insert 1985, 400
set retain = revenue
walk gliding
set gliding = (revenue + retain)/2
set retain = revenue
end walk
print
| year | revenue | gliding |
|---|---|---|
| 1980 | 520 | 520 |
| 1981 | 700 | 610 |
| 1982 | 360 | 530 |
| 1983 | 490 | 425 |
| 1984 | 432 | 461 |
| 1985 | 400 | 416 |