cumsum {gmp}R Documentation

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.

Author(s)

Antoine Lucas

See Also

apply

Examples

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

[Package gmp version 0.4-11 Index]