LIST STAT SUM SQUARES - Second Life Wiki

LIST STAT SUM SQUARES

From Second Life Wiki

Second Life Wiki > LSL Portal > Constants > LIST STAT SUM SQUARES
Jump to: navigation, search

Template:Needs Translation/LSL/es Template:Needs Translation/LSL/el Template:Needs Translation/LSL/he Template:Needs Translation/LSL/it Template:Needs Translation/LSL/ko Template:Needs Translation/LSL/nl Template:Needs Translation/LSL/hu Template:Needs Translation/LSL/no Template:Needs Translation/LSL/da Template:Needs Translation/LSL/sv Template:Needs Translation/LSL/tr Template:Needs Translation/LSL/pl Template:Needs Translation/LSL/pt Template:Needs Translation/LSL/ru Template:Needs Translation/LSL/uk Template:Needs Translation/LSL/zh-Hans Template:Needs Translation/LSL/zh-Hant

Contents

Description

Constant: integer LIST_STAT_SUM_SQUARES = 7;

The integer constant LIST_STAT_SUM_SQUARES has the value 7

Calculates the sum of the squares of the numbers in a list.

 
float sum_of_squares = llListStatistics( LIST_STAT_SUM_SQUARES, numList );
 

That is, for each number N_i in a list of k elements, it calculates N_1*N_1 + N_2*N_2 + ... + N_k * N_k.

Related Articles

Functions

•  llListStatistics