(+) add operator

(+ number) 🡒 number, const autodiff

The unary no-op number operator, intended as the counterpart of the unary minus operator.

x = 3
show scalar "" with +x
1 2

(number + number) 🡒 number, const autodiff

The regular addition of numbers.

x = 3 + 4
show scalar "" with x
1 2

(date + number) 🡒 date, const

Adds an integral number of days to a date.

x = date(2020,8,25) + 12
show scalar "" with x
1 2

(number + date) 🡒 date, const

The sum (n + d) where n is a number and d is a date is defined by (d + n).

x = 12 + date(2020,8,25)
show scalar "" with x
1 2

(ranvar + ranvar) 🡒 ranvar

The addition of ranvars, random variables over Z\mathbb{Z} assumed to be independent.

x = poisson(3) + poisson(4)
show scalar "" with x
1 2

Under the hood, a convolution happens. The mean of the resulting ranvar is equal to the sum of the means of the two ranvar operands.

(zedfunc + zedfunc) 🡒 zedfunc

The addition of zedfuncs, real functions over Z\mathbb{Z}.

x = linear(2) + linear(-1)
show scalar "" with x
1 2

See also

User Contributed Notes
0 notes + add a note