loom
1import "tf" tf;
2
3float x1 [2] = [0, -1];
4float x2 [2] = [0, -2];
5float f [4, 3] = [
6[0.0, 0.0, 1.0],
7[0.0, 1.0, 2.0],
8[1.0, 0.0, 2.0],
9[1.0, 1.0, 3.0]
10];
11
12print tf.tableFunctionAt(x1, f);
13print tf.tableFunctionAt(x2, f);
14