pastebin
| #1 paste tool since 2002
create new paste
tools
api
archive
real-time
faq
pastebin
Follow @pastebin
create new paste
trending pastes
sign up
login
my settings
my profile
My Pastes
Public Pastes
Untitled
2 sec ago
Untitled
5 sec ago
Untitled
5 sec ago
Untitled
9 sec ago
Untitled
16 sec ago
Untitled
PHP | 28 sec ago
Untitled
23 sec ago
Fileape Javascript 13.0...
25 sec ago
Layout Width
Share Pastebin
Untitled
By: a guest | Feb 4th, 2010 | Syntax:
None
| Size: 0.07 KB | Hits: 63 | Expires: Never
Download
|
Raw
|
Embed
|
Report abuse
function
[
]
= euclideandistance
(
p1,p2
)
sqrt
(
sum
(
(
p1 - p2
)
^2
)
)
end
create new paste
|
create new version of this paste
RAW Paste Data
function [] = euclideandistance(p1,p2) sqrt(sum((p1 - p2)^2)) end