tadd: Tropical Sum Function

Description Usage Arguments Details Value Examples

Description

Calculates tropical sum of numeric values. This function workks only if arguments are numeric values. The tropical sum of two numbers is the minimum number. If arguments are not numeric values then it generates an error. If a vector is passed as argument to the funcion it will return the tropical sum of all the elements in the vector.

Usage

1

Arguments

...

Any number of numeric values or a single vector.

Details

The tropical sum of two numbers is the minimum number. This function returns the minimum of arguments. If arguments are not numeric values then it generates an error.

Value

Returns tropical sum of arguments.

Examples

1
2
3
x<-5
y<-6
tadd(x,y)

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