Learn R Programming

gmp (version 0.4-10)

cumsum: Cummulative, product

Description

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

Usage

cumsum.bigz(...)
cumsum.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)
  
  x = as.bigq(1:12)
  cumsum(x)
  prod(x)

Run the code above in your browser using DataLab