Shortcut: PRODUCT
Module | function |
---|---|
Description | Usage |
Calculate the product of the input quantities | |
output value | type |
the product of all the elements in the input vector | scalar |
Further details and examples
Calculate the product of the input quantities
This shortcut can be used to calculate the product of a collection of scalar inputs as illustrated by the following simple example.
d1DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=1,2 d2 : DISTANCECalculate the distance/s between pairs of atoms. More details ATOMSthe pair of atom that we are calculating the distance between=3,4 pPRODUCTCalculate the product of the input quantities This action is a shortcut. More details ARGThe set of scalars that you would like to multiply together=d1,d2 ::
This action is currently only used in the DETERMINANT shortcut. In that action the determinant of the input square matrix is found by finding the eigenvalues of the input matrix using DIAGONALIZE. The determinant is then found by evaluating the product of these eigenvalues.
Syntax
The following table describes the keywords and options that can be used with this action
Keyword | Type | Default | Description |
---|---|---|---|
ARG | compulsory | none | The set of scalars that you would like to multiply together |