From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharad Shrestha Newsgroups: gmane.emacs.help Subject: Re: In GNU Emacs Calc embedded mode, how to simplify unit N/m^2 to Pa Date: Thu, 16 May 2013 19:10:22 -0700 (PDT) Message-ID: References: <878v3gidbw.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1368757369 3529 80.91.229.3 (17 May 2013 02:22:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 May 2013 02:22:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 17 04:22:50 2013 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 1UdAJm-0002DX-5e for geh-help-gnu-emacs@m.gmane.org; Fri, 17 May 2013 04:22:50 +0200 Original-Received: from localhost ([::1]:37094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdAJl-0003QX-IH for geh-help-gnu-emacs@m.gmane.org; Thu, 16 May 2013 22:22:49 -0400 X-Received: by 10.224.130.195 with SMTP id u3mr27125728qas.1.1368756623164; Thu, 16 May 2013 19:10:23 -0700 (PDT) X-Received: by 10.50.147.98 with SMTP id tj2mr2514059igb.10.1368756623110; Thu, 16 May 2013 19:10:23 -0700 (PDT) Original-Path: usenet.stanford.edu!gj8no834523qab.0!news-out.google.com!y6ni49017qax.0!nntp.google.com!gj8no834521qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <878v3gidbw.fsf@gmail.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.46.114.130; posting-account=gDAbvAoAAAByLxgKK8G_XqpcxfG6rts4 Original-NNTP-Posting-Host: 66.46.114.130 User-Agent: G2/1.0 Injection-Date: Fri, 17 May 2013 02:10:23 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:198598 X-Mailman-Approved-At: Thu, 16 May 2013 22:22:40 -0400 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:90864 Archived-At: On Wednesday, May 15, 2013 6:26:27 AM UTC-7, Jay Belanger wrote: > > In GNU Emacs (v24.3.1) Calc embedded mode, I'd like to perform unit >=20 > > simplification such that (5 N / 2 m^2) gives the result 2.5 Pa (where >=20 > > 1 Pa =3D 1 N/m^2). But I am unable to get the unit N/m^2 converted to >=20 > > Pa. >=20 >=20 >=20 > Calc units simplification (u s) typically doesn't combine units that >=20 > way, you'll need to use units conversion (u c) and tell Calc you want >=20 > Pa. For a static assignment such as shown below, I can easily change units (in = both directions) between N/m^2 and Pa by using the units conversion command= (u c): \begin{equation} %%% dd1 :=3D 8 * N / m^2 %%% dd1 \gets \frac{8 N}{m^2} \end{equation} This type of units conversion works even when I include the Evaluates-To op= erator (=3D>): \begin{equation} %%% ee1 :=3D 6 * N / m^2 =3D> 6 * N / m^2 %%% \evalto ee1 \gets \frac{6 N}{m^2} \to \frac{6 N}{m^2} \end{equation} However, what I am trying to do is create a "live" calculation sheet such = as shown below: \begin{equation} %%% aa1 :=3D 10 * N %%% aa1 \gets 10 N \end{equation} \begin{equation} %%% bb1 :=3D 2 * m^2 %%% bb1 \gets 2 m^2 \end{equation} \begin{equation} %%% cc1 :=3D aa1 / bb1 =3D> 5 * N / m^2 %%% \evalto cc1 \gets \frac{aa1}{bb1} \to \frac{5 N}{m^2} \end{equation} I can change the values assigned to aa1 and bb1, and the value of cc1 is up= dated automatically. However, the units conversion command (u c) has not h= ave any effect when I try to convert the units of cc1 (fron N/m^2 to Pa). = Is there a way to perform this unit conversion?