(*) multiply operator

(number * number) 🡒 number, const autodiff

The regular multiplication of two numbers.

x = 3
y = 2
show scalar "" with x * y

(ranvar * ranvar) 🡒 ranvar

The multiplication of two random independent variables over $\mathbb{Z}$.

x1 = poisson(5)
x2 = poisson(3)
show scalar "" a1b2 with x1 * x2

This operation is also known as the Dirichlet convolution. Under the hood, a convolution happens. The mean of the resulting ranvar is equal to the product of the means of the two ranvar operands.

(zedfunc * zedfunc) 🡒 zedfunc

The multiplication of two zedfuncs, real functions over $\mathbb{Z}$..

Example:

f = linear(3)
g = linear(2)
show scalar "" a1b2 with f * g

(text * number) 🡒 number

Repeats text a specified number of times. "ABC" * 3 is "ABCABCABC". An integer is expected.

Example:

show scalar "" a1c1 with "ABC" * 3

Seelaso

User Contributed Notes
0 notes + add a note