Learn R Programming

RSEIS (version 4.2-4)

hypot: Hypot

Description

length of line connecting two points in a plane

Usage

hypot(x1, y1, x2, y2)

Value

numeric distance

Arguments

x1

x-location point 1

y1

y-location point 1

x2

x-location point 2

y2

y-location point 2

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

Euclidean distance

Examples

Run this code

hypot(34, 12, 56, 89)

Run the code above in your browser using DataLab