1 program lsp0;
2 uses mtx09;
3 var a:mtx;
4 begin
5 // WARNING: Floating point constants such as 0.0 and 1.0 are used NOT
6 // 0 or 1 to be sure that the right avatar of lsp() is used !
7 // With function overloading, a function is identified by its name
8 // AND the types of the arguments ! so make sure to avoid type
9 // conversions as a general safe coding habit.
10 lsp(a,0.0,1.0,5); // 5 segments i.e. 6 data points
11 mwr(trp(a)); // transposed output
12 end.
13 {
14 0 0.200000 0.400000 0.600000 0.800000 1
15
16 }