From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: program to compute gears, with table Date: Fri, 08 Sep 2017 19:52:18 +0200 Organization: Aioe.org NNTP Server Message-ID: <86pob1rsbx.fsf@zoho.com> References: <86bmmlu54a.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504893709 2740 195.159.176.226 (8 Sep 2017 18:01:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 18:01:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 08 20:01:45 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dqNb1-0000Da-8S for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2017 20:01:39 +0200 Original-Received: from localhost ([::1]:46792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqNb8-0002uE-En for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Sep 2017 14:01:46 -0400 X-Received: by 10.28.158.136 with SMTP id h130mr279642wme.13.1504893139706; Fri, 08 Sep 2017 10:52:19 -0700 (PDT) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Original-Path: usenet.stanford.edu!c14no1544881wmh.0!news-out.google.com!f137ni13835wme.0!nntp.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!nntpfeed.proxad.net!news.muarf.org!news.redatomik.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help,rec.bicycles.tech Original-Followup-To: gnu.emacs.help,rec.bicycles.tech Original-Lines: 26 Original-NNTP-Posting-Host: XiPr5pdukK7aCRjr/wfS1Q.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:qKDlpRBFRBcmTesdkeIJ9Sw+fy4= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:220096 rec.bicycles.tech:1003523 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114202 Archived-At: Skip Montanaro wrote: > * Why the 1.0 divisor when computing gear? As explained, otherwise it'll be integer division. But I think that qualifies as a hack (not an ugly hack tho) so there is no shame in spotting it an "error" :) > * You can skip the radius and use wheel > (diameter) directly in computing > the circumference. Right! > * It never occurred to me to do this in Lisp. > I always just use an online calculator, like: > > http://www.gear-calculator.com/?GR=DERS&KB=34,50&RZ=12,13,15,17,19,21,23,25&UF=2150&TF=90&SL=2.6&UN=KMH Let's agree there is no need to do it in Lisp. Only a desire :) -- underground experts united http://user.it.uu.se/~embe8573