tvectorAdd: Tropical Sum of Vectors

Description Usage Arguments Details Value Examples

Description

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

Usage

1

Arguments

...

Any number of numeric 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 sum of all the elements in the vector.

Value

Returns tropical sum of argumented vectors.

Examples

1
2
3
x<-c(5,6,7)
y<-c(1,2,3)
tvectorAdd(x,y)

tropAlgebra documentation built on May 2, 2019, 7:29 a.m.