Prod1D
Advanced Analysis Library Only
AnalysisLibErrType Prod1D (double inputArray[], ssize_t numberOfElements, double *product);
Purpose
Finds the product of the elements of the input array. Prod1D obtains the product of the elements using the following formula:
The following example uses the Prod1D function.
double inputData[10];
double Product;
AnalysisLibErrType status;
// Generate an array of random numbers
status = Uniform (10, 17, inputData);
status = Prod1D (inputData, 10, &Product);
Parameters
| Input | ||
| Name | Type | Description |
| inputArray | double [] | Input array whose elements are multiplied. |
| numberOfElements | ssize_t | Number of elements to multiply. |
| Output | ||
| Name | Type | Description |
| product | double | Product of elements of the elements of the input array. |
Return Value
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |
Additional Information
Library: Advanced Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 3.1 and later