linear

linear, function

def pure linear(a: number): zedfunc

Returns the zedfunc $f(x) = a * x$.

Examples

f = linear(2)

table T = with
  [| as X |]
  [| 0 |]
  [| 1 |]
  [| 3 |]

T.Y = valueAt(f, T.X)

show table "Linear" with
  T.X
  T.Y

This produces the following table:

X Y
0 0
1 2
3 6
User Contributed Notes
0 notes + add a note