From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.bugs Subject: bug#10554: 24.0.92; No units specified (dimensionless quantities in Emacs Calc) Date: Thu, 19 Jan 2012 22:53:04 -0600 Message-ID: <87d3afdlfz.fsf@gmail.com> References: <8762g8i7s6.fsf@niu.edu> <87bopz5pt8.fsf@gmail.com> <20248.39483.716850.185512@gargle.gargle.HOWL> Reply-To: jay.p.belanger@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327035236 26559 80.91.229.12 (20 Jan 2012 04:53:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 04:53:56 +0000 (UTC) Cc: 10554@debbugs.gnu.org To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 20 05:53:52 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ro6U3-0004JN-Mo for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Jan 2012 05:53:51 +0100 Original-Received: from localhost ([::1]:50226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro6U2-0008P2-PC for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jan 2012 23:53:50 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro6U0-0008Oh-9a for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:53:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ro6Tz-00041x-6u for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:53:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ro6Tz-00040b-5A for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:53:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ro6VB-0000sy-Ih for bug-gnu-emacs@gnu.org; Thu, 19 Jan 2012 23:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jay Belanger Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Jan 2012 04:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10554 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10554-submit@debbugs.gnu.org id=B10554.13270352673352 (code B ref 10554); Fri, 20 Jan 2012 04:55:01 +0000 Original-Received: (at 10554) by debbugs.gnu.org; 20 Jan 2012 04:54:27 +0000 Original-Received: from localhost ([127.0.0.1]:35954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ro6Uc-0000s0-Dj for submit@debbugs.gnu.org; Thu, 19 Jan 2012 23:54:27 -0500 Original-Received: from mail-tul01m020-f172.google.com ([209.85.214.172]:46324) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ro6Ua-0000rq-6s for 10554@debbugs.gnu.org; Thu, 19 Jan 2012 23:54:25 -0500 Original-Received: by obbwc12 with SMTP id wc12so235625obb.3 for <10554@debbugs.gnu.org>; Thu, 19 Jan 2012 20:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:reply-to:cc:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=1wZqYwCBLOAxk3jAHqNXah8QH27IMjyRNub6WmQscPA=; b=ap2P7PGAoGLKQEgzWCiaTHdvFfhgyRpgPikDm9XQUFY9d5G5p84/TPQHQltggw9orc sH47b/csSrwQ8a4n7tGLCBc/z/g0xuimRiagGAKnKSA5EbW3AS0Knq9dJClaPhE8EDus fNk7JA2b2XXl2tQMYbiRaGxrlzvYGkhnWDO8c= Original-Received: by 10.182.187.37 with SMTP id fp5mr25304488obc.21.1327035188340; Thu, 19 Jan 2012 20:53:08 -0800 (PST) Original-Received: from belanger-x100e (184-155-95-203.cpe.cableone.net. [184.155.95.203]) by mx.google.com with ESMTPS id s6sm1157033obq.0.2012.01.19.20.53.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 Jan 2012 20:53:07 -0800 (PST) In-Reply-To: <20248.39483.716850.185512@gargle.gargle.HOWL> (Roland Winkler's message of "Thu, 19 Jan 2012 16:33:31 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55865 Archived-At: >> I'll also change it so that Calc can offer unit systems and composite >> units as default units, but that should probably wait until after 24.1 >> comes out. > > Agreed. This is nothing urgent. Good; then this part will be taken care of as soon as 24.1 comes out. >>>From a different perspective, I'd say that "dimensionless" is as > valid a unit as "kg" or "hbar / c". In that sense I'd say that there > should be a possibility to pass this unit "dimensionless" as an arg > to calc-convert-units, similar to any other unit that this function > should use for its final result. Currently, if Calc is asked to convert part of a units expression, it will leave any unrequested units unchanged; for example, if 45 mi/hr is on the stack and the units conversion is called with new units m, then only the mi will be changed; 45 mi/hr will be converted to 72420.48 m / hr. To be consistent, I would think that converting to new units 1, all of the units in the stack expression would be left alone. > I'd say that "1" appears to be a natural choice in order to express > the fact that Calc should obtain a dimensionless number. I suppose you mean /try/ to obtain a dimensionless number. Calc could have a command that will convert an expression to a dimensionless number, if possible, or leave it unchanged, if it cannot be converted to a dimensionless number. I'm not sure that "u c" should do such branching, but then I'm not sure this behavior is what you meant. Jay