Learn R Programming

gmp (version 0.4-12)

cumsum: Cummulative, product

Description

Theses functions overload sum, cumsum and prod function for big rationals and big integers

Usage

cumsum.bigz(...)
cumsum.bigq(...)
sum.bigz(...)
sum.bigq(...)
prod(...)

Arguments

...
an element of class bigz or bigq.

Value

  • return an element of class bigz or bigq.

See Also

apply

Examples

Run this code
x = as.bigz(1:12)
  cumsum(x)
  prod(x)
  sum(x)

  x = as.bigq(1:12)
  cumsum(x)
  prod(x)
  sum(x)

Run the code above in your browser using DataLab