From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tosspot Newsgroups: gmane.emacs.help Subject: Re: program to compute gears, with table Date: Mon, 11 Sep 2017 07:02:38 +0200 Message-ID: References: <86bmmlu54a.fsf@zoho.com> <86pob1rsbx.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1505106341 27810 195.159.176.226 (11 Sep 2017 05:05:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2017 05:05:41 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 11 07:05:37 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 1drGuQ-0006Ll-PX for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 07:05:22 +0200 Original-Received: from localhost ([::1]:55462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drGuY-0002uw-1m for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Sep 2017 01:05:30 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin1!goblin.stu.neva.ru!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 11 Sep 2017 00:02:38 -0500 Original-Newsgroups: gnu.emacs.help,rec.bicycles.tech In-Reply-To: Original-Lines: 37 X-Usenet-Provider: http://www.giganews.com Original-X-Trace: sv3-iKLU0UkQiqSlgOoGa5c2GOwLCPG86YkfGw/aB6gTZFTlvq6mBQLBhi+NKmZPf4eD/QWfjCd4CQT7rX/!poKeyzqji7n4WfQ6zGqmUzZriNCnsH3Wwk63elQGJBJAGGdaJ0UzQa5jMGLyFQ4NcWcEl48FMcU= Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2490 Original-Xref: usenet.stanford.edu gnu.emacs.help:220138 rec.bicycles.tech:1003726 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:114240 Archived-At: On 08/09/17 21:59, David Scheidt wrote: > In rec.bicycles.tech Joerg wrote: > :On 2017-09-08 10:52, Emanuel Berg wrote: > :> 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 :) > :> > > :Why make things complicated? I do such stuff with spreadsheets. That's > :what they were invented for. Part of every office software including > :free ones. > > I rewrote his code in common lisp in less time than it takes excel to > start. Dinosaur. SML is the way to go.