Skip to contents

Multiple all the content of a vector

Usage

multiply(...)

Arguments

...

the numeric values to multiply

Value

multiple of all content

Examples

# multiply 1 number
# returns error
# multiply(0)

# vector of numbers
numvec <- number(10, max.digits = 3)
numvec
#>  [1] 691 713 819 725 761 786 567 423 368 213

# multiply 2 numbers
multiply(numvec[1:2])
#> [1] 492683
multiply(numvec[4], numvec[5])
#> [1] 551725
multiply(a = 4, b = 5)
#>  b 
#> 20 

# multiply 5 numbers
multiply(numvec[1:5])
#> [1] 2.226251e+14
multiply(11, 15, 12, 14, 13)
#> [1] 360360
multiply(a = 4, b = 22, c = 44, d = 9, u = 10)
#>      u 
#> 348480