unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Frank Stutzman <stutzman@cat2.kjsl.com>
To: help-gnu-emacs@gnu.org
Subject: Re: distance from Easter Island to Chile
Date: Sun, 20 Apr 2014 03:55:52 +0000 (UTC)	[thread overview]
Message-ID: <livgg8$upa$1@news.kjsl.com> (raw)
In-Reply-To: 87mwfguasr.fsf@nl106-137-194.student.uu.se

Emanuel Berg <embe8573@student.uu.se> 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	other threads:[~2014-04-20  3:55 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-20  0:03 distance from Easter Island to Chile Emanuel Berg
2014-04-20  3:55 ` Frank Stutzman [this message]
2014-04-20 15:14   ` Emanuel Berg
2014-04-20 22:39     ` giacomo.boffi
     [not found]     ` <mailman.19957.1398033917.10748.help-gnu-emacs@gnu.org>
2014-04-21  1:40       ` Emanuel Berg
2014-04-21  1:50         ` Emanuel Berg
2014-04-21  9:45         ` giacomo.boffi
     [not found]         ` <mailman.19981.1398073560.10748.help-gnu-emacs@gnu.org>
2014-04-21 10:35           ` Emanuel Berg
2014-04-21 10:50             ` Emanuel Berg
2014-04-23  2:49               ` Emanuel Berg
2014-04-21  2:16       ` Emanuel Berg
2014-04-20  4:44 ` Barry Margolin
2014-04-20 15:06   ` Emanuel Berg
2014-04-20  6:28 ` Eli Zaretskii
     [not found] ` <mailman.19905.1397975330.10748.help-gnu-emacs@gnu.org>
2014-04-20  7:01   ` Barry Margolin
2014-04-20  7:48     ` Eli Zaretskii
2014-04-20 10:26       ` Thorsten Jolitz
2014-04-20 11:03         ` Eli Zaretskii
2014-04-20 15:22     ` Emanuel Berg
2014-04-21  6:04       ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='livgg8$upa$1@news.kjsl.com' \
    --to=stutzman@cat2.kjsl.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).