# cumsum {gmp}

(Cumulative) Sums, Products of Large Integers and Rationals

### Description

Theses are methods to ‘overload’ the `sum()`

, `cumsum()`

and `prod()`

functions for big rationals and big integers.

### Usage

## S3 method for class 'bigz': cumsum((x)) ## S3 method for class 'bigq': cumsum((x)) ## S3 method for class 'bigz': sum((..., na.rm = FALSE)) ## S3 method for class 'bigq': sum((..., na.rm = FALSE)) ## S3 method for class 'bigz': prod((..., na.rm = FALSE)) ## S3 method for class 'bigq': prod((..., na.rm = FALSE))

### Arguments

- x, ...
- R objects of class
`bigz`

or`bigq`

or ‘simple’ numbers. - na.rm
- logical indicating if missing values (
`NA`

) should be removed before the computation.

### Values

return an element of class bigz or bigq.

### See Also

Documentation reproduced from package gmp, version 0.5-12. License: GPL