4D v14.3Sum squares |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Sum squares
Sum squares
Sum squares returns the sum of the squares of series. If series is an indexed field, the index is used to find the sum of the squares. You can pass an array (one or two dimensions) in series. In this case, the array must be of the Integer, Longint or Real type. The following example is an object method for the variable vSquares. The object method assigns the sum of squares for a data series to vSquares. The vSquares variable is printed in the last break of the report: vSquares:=Sum squares([Table1]DataSeries) The following method is called to print the records in the selection and to activate break processing: ALL RECORDS([Table1]) Note: The parameter to the BREAK LEVEL command should be equal to the number of breaks in your report. For more information about break processing, refer to the chapter Printing. This example gets the sum of the squares of the values placed in an array: ARRAY REAL($ArrGrades;0) |
PROPERTIES
Product: 4D
HISTORY
Created: < 4D v6 SEE ALSO
Average ARTICLE USAGE
4D Language Reference ( 4D v14 R2) Inherited from : Sum squares ( 4D v12.4) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||