Macaulay2 » Documentation
Packages » RInterface :: product(RObject)
next | previous | forward | backward | up | index | toc

product(RObject) -- product of R object

Synopsis

Description

This function returns the product of all the values present in x. It wraps around R's prod function.

i1 : x = RObject {2, 4, 6}

o1 = [1] 2 4 6

o1 : RObject of type integer
i2 : product x

o2 = [1] 48

o2 : RObject of type double

Ways to use this method: