Difference between revisions of "Documentation/How Tos/Calc: SUMSQ function"
From Apache OpenOffice Wiki
		< Documentation | How Tos
		
		
 (Initial content)  | 
				m  | 
				||
| (9 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
| − | __NOTOC__  | + | {{DISPLAYTITLE:SUMSQ function}}  | 
| + | {{Documentation/CalcFunc MathematicalTOC  | ||
| + | |ShowPrevNext=block  | ||
| + | |PrevPage=Documentation/How_Tos/Calc:_SUMIF_function  | ||
| + | |NextPage=Documentation/How_Tos/Calc:_Number Conversion_functions  | ||
| + | }}__NOTOC__    | ||
== SUMSQ ==  | == SUMSQ ==  | ||
Returns the sum of the squares of the arguments.  | Returns the sum of the squares of the arguments.  | ||
| − | |||
=== Syntax: ===  | === Syntax: ===  | ||
<tt>'''SUMSQ(number1; number2; .... number30)'''</tt>  | <tt>'''SUMSQ(number1; number2; .... number30)'''</tt>  | ||
: <tt>'''number1'''</tt> to <tt>'''number30'''</tt> are up to 30 numbers or ranges of numbers which are squared and then summed.  | : <tt>'''number1'''</tt> to <tt>'''number30'''</tt> are up to 30 numbers or ranges of numbers which are squared and then summed.  | ||
| − | |||
=== Example: ===  | === Example: ===  | ||
| Line 17: | Line 20: | ||
: where <tt>'''A1'''</tt> contains <tt>'''1'''</tt> and <tt>'''A2'''</tt> contains <tt>'''2'''</tt> returns <tt>'''5'''</tt>, which is <tt>'''1*1 + 2*2'''</tt>.  | : where <tt>'''A1'''</tt> contains <tt>'''1'''</tt> and <tt>'''A2'''</tt> contains <tt>'''2'''</tt> returns <tt>'''5'''</tt>, which is <tt>'''1*1 + 2*2'''</tt>.  | ||
| + | {{SeeAlso|EN|  | ||
| + | * [[Documentation/How_Tos/Calc: SUM function|SUM]]  | ||
| + | * [[Documentation/How_Tos/Calc: PRODUCT function|PRODUCT]]  | ||
| + | * [[Documentation/How_Tos/Calc: SUMPRODUCT function|SUMPRODUCT]]  | ||
| − | + | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]  | |
| − | |||
| − | |||
| − | |||
| − | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]  | |
| + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}  | ||
| + | [[Category: Documentation/Reference/Calc/Mathematical functions]]  | ||
Latest revision as of 15:49, 31 January 2024
Trigonometric
Hyperbolic
Rounding and remainders
Logarithm/Powers
Bessel functions
Miscellaneous
    SUMSQ
Returns the sum of the squares of the arguments.
Syntax:
SUMSQ(number1; number2; .... number30)
- number1 to number30 are up to 30 numbers or ranges of numbers which are squared and then summed.
 
Example:
SUMSQ(2; 3; 4)
- returns 29, which is 2*2 + 3*3 + 4*4.
 
SUMSQ(A1:A2)
- where A1 contains 1 and A2 contains 2 returns 5, which is 1*1 + 2*2.
 
See Also