Learn R Programming

tropAlgebra (version 0.1.1)

tvectorMultiply: Tropical Product of Vectors

Description

This function multiplies two or more vectors and returns the resultant vector. This function works only if vectors are of same length.

Usage

tvectorMultiply(...)

Arguments

...

Any number of numeric vectors.

Value

Returns the product of argumented vectors.

Details

If the arguments are not numeric vectors and are not of same length, this function generates an error. If a single vector is passed to the function it will return the tropical product of all the elements in the vector.

Examples

Run this code
# NOT RUN {
x<-c(5,6,7)
y<-c(1,2,3)
tvectorMultiply(x,y)
# }

Run the code above in your browser using DataLab