Learn R Programming

RSEIS (version 2.1-6)

hypot: Hypoteneuse

Description

length of line connecting two points in a plane

Usage

hypot(x1, y1, x2, y2)

Arguments

x1
x-location point 1
y1
y-location point 1
x2
x-location point 2
y2
y-location point 2

Value

  • numeric distance

Details

Euclidean distance

Examples

Run this code
hypot(34, 12, 56, 89)

Run the code above in your browser using DataLab