Command: arraylib::Product

NEST HelpDesk Command Index NEST Quick Reference

Name:
 arraylib::Product - Return product of the elements in array.

Synopsis:
 [array] Product -> number

Description:
Returns the product of all elements in the array. The array is expected
  to contain only numbers, and is flattened before the computation.

Parameters:
[array]: array of numbers

Examples:
[1 2 3 4]   Product -> 24
[1 2 3 4.0] Product -> 24.0

Author:
 R Kupper

FirstVersion:
 17-sep-2007

Remarks:
The array must contain no other elements than numbers.
The return type (integer or double) depends on the type of elements.

Availability:
 library "arraylib"

SeeAlso:arraylib::Sum arraylib::Mean arraylib::SDev arraylib::Var
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/lib/sli/arraylib.sli

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative