Difference between revisions of "Documentation/How Tos/Calc: SERIESSUM function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m
Line 3: Line 3:
 
== SERIESSUM ==
 
== SERIESSUM ==
 
Sums the first terms of a power series.
 
Sums the first terms of a power series.
 +
 
This function is only available if the '''Analysis AddIn''' is installed.  
 
This function is only available if the '''Analysis AddIn''' is installed.  
 
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 17: Line 17:
 
:: <tt>'''m'''</tt> is the increment by which the power of <tt>'''x'''</tt> increases with each term, and
 
:: <tt>'''m'''</tt> is the increment by which the power of <tt>'''x'''</tt> increases with each term, and
 
:: <tt>'''ar'''</tt> refers to a range containing the <tt>'''a'''</tt> coefficients of the terms to be included.
 
:: <tt>'''ar'''</tt> refers to a range containing the <tt>'''a'''</tt> coefficients of the terms to be included.
 
  
 
=== Example: ===
 
=== Example: ===

Revision as of 13:06, 30 December 2007


SERIESSUM

Sums the first terms of a power series.

This function is only available if the Analysis AddIn is installed.

Syntax:

SERIESSUM(x; n; m; ar)

A power series may be represented as:
power series
The SERIESSUM function calculates the sum of the first terms of such a series, where:
x is the variable,
n is the power of x for the first term,
m is the increment by which the power of x increases with each term, and
ar refers to a range containing the a coefficients of the terms to be included.

Example:

The following power series may be used to express the mathematical constant e raised to a power:

power series

When x = 1, summing the terms in the series will approximate e. To sum the first 5 terms using SERIESSUM we should set:

x = 1
n = 0
m = 1
ar to B1:B5, where B1, B2, B3, B4, B5 contain respectively:
= 1/FACT(0), = 1/FACT(1), = 1/FACT(2), = 1/FACT(3), = 1/FACT(4)

Now, using these values in the SERIESSUM function:

SERIESSUM(1; 0; 1; B1:B5)

returns 2.70833333333333, an approximation of e ( = 2.71828182845904...). Using more terms would give a closer approximation.

See also:

Mathematical functions

Personal tools