Learn R Programming

sumR (version 0.4.15)

summed-objects: S3 Class for objects containing iterated summations

Description

Contains the summations in the log scale. The value can either be an approximation to an infinite series or a finite sum.

Usage

# S3 method for summed
print(x, ...)

# S3 method for summed as.double(x, ...)

Value

For print: The invisible object.

For as.numeric/as.double: The approximated sum.

Arguments

x

The summed object.

...

Currently unused.

Elements in the list

sum

The resulting sum in the log scale.

n

The performed number of iterations. This value represents the number of series elements evaluations performed during the summation.

method

The method used for the summation.

maxReached

TRUE or FALSE. Indicates whether the maximum iterations was reached.

See Also

infiniteSum(), infiniteSum_batches() and finiteSum() for available methods.