zedfunc
zedfunc, type
The zedfunc type represents real-valued functions over integers.
Example
table T = with
[| as X |]
[| 0 |]
[| 1 |]
[| 2 |]
z = linear(1) * linear(1) - 1
show table "z(x) = x^2 - 1" with
T.X
valueAt(z, T.X)
This outputs the following table:
| X | valueAt(z, X) |
|---|---|
| 0 | -1 |
| 1 | 0 |
| 2 | 3 |
Remarks
Use valueAt to evaluate a zedfunc at numeric points.