From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Stutzman Newsgroups: gmane.emacs.help Subject: Re: distance from Easter Island to Chile Date: Sun, 20 Apr 2014 03:55:52 +0000 (UTC) Organization: Nothing witty to write here Message-ID: References: <87mwfguasr.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1397966427 3569 80.91.229.3 (20 Apr 2014 04:00:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Apr 2014 04:00:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 20 06:00:20 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WbivU-0001Zj-04 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2014 06:00:20 +0200 Original-Received: from localhost ([::1]:44349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WbivT-0001bg-KE for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Apr 2014 00:00:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: cat2.kjsl.com Original-X-Trace: news.kjsl.com 1397966152 31530 66.109.111.28 (20 Apr 2014 03:55:52 GMT) Original-X-Complaints-To: usenet@news.kjsl.com Original-NNTP-Posting-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)) Original-Xref: usenet.stanford.edu gnu.emacs.help:204981 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97246 Archived-At: Emanuel Berg 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". 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