help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: distance from Easter Island to Chile


From: Frank Stutzman
Subject: Re: distance from Easter Island to Chile
Date: Sun, 20 Apr 2014 03:55:52 +0000 (UTC)
User-agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/9.2-RELEASE-p3 (amd64))

Emanuel Berg <address@hidden> wrote:
> ;; As you know, the Easter Bunny isn't the kind of guy
> ;; to go on vacation, neglecting his duty. Instead, he
> ;; dropped me this interesting piece of Elisp to
> ;; calculate the distance between Earth locations,
> ;; based on the "Haversine formula".

<snip>

As a realative newie to doing fancy things in emacs,
I am amazed and amused that this 1) can be done at all,
and 2) can be done so elegantly.

Or at least it looks it looks like it should be that 
should be the case.  For whatever reason, though, when I 
evaluate:

(distance 33.45    ; Santiago
          70.6667
          27.1167  ; Easter Island
          109.3667
          ) 

I get an answer of 4301.199.  Have no idea why.
GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
on Unbuntu 12.04.


-- 
Frank Stutzman



reply via email to

[Prev in Thread] Current Thread [Next in Thread]