Learn R Programming

TML (version 2.3.0)

trop.dist: Compute the tropical distance

Description

This function computes the tropical distance between two points in the tropical projective torus

Usage

trop.dist(D1, D2)

Value

tropical distance between D1 and D2

Arguments

D1

point in the tropical projective torus

D2

point in the tropical projective torus

Author

Ruriko Yoshida ryoshida@nps.edu

Examples

Run this code
D1 <-c(0,4,2)
D2 <- c(0,7,-1)
trop.dist(D1, D2)

Run the code above in your browser using DataLab