From: Sharad Shrestha <sharad.shrestha@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: In GNU Emacs Calc embedded mode, how to simplify unit N/m^2 to Pa
Date: Tue, 14 May 2013 20:31:18 -0700 (PDT) [thread overview]
Message-ID: <e22002d1-17ee-44ad-9641-0288b8390151@googlegroups.com> (raw)
Hi,
In GNU Emacs (v24.3.1) Calc embedded mode, I'd like to perform unit simplification such that (5 N / 2 m^2) gives the result 2.5 Pa (where 1 Pa = 1 N/m^2). But I am unable to get the unit N/m^2 converted to Pa. I have the following entries before unit simplification:
\begin{equation}
%%% a := 5 * N %%%
a \gets 5 N
\end{equation}
\begin{equation}
%%% b := 2 * m^2 %%%
b \gets 2 m^2
\end{equation}
\begin{equation}
%%% c := a / b => 2.5 * N / m^2 %%%
\evalto c \gets \frac{a}{b} \to \frac{2.50 N}{m^2}
\end{equation}
The value of "c" I am expecting after unit simplification is:
\begin{equation}
%%% c := a / b => 2.5 * Pa %%%
\evalto c \gets \frac{a}{b} \to 2.50 Pa
\end{equation}
My "Units Table" contains the following entry:
Unit Type Definition Description
Pa U \frac{N}{m^2} Pascal
Thank you for your help.
Regards,
Sharad
next reply other threads:[~2013-05-15 3:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-15 3:31 Sharad Shrestha [this message]
2013-05-15 13:26 ` In GNU Emacs Calc embedded mode, how to simplify unit N/m^2 to Pa Jay Belanger
2013-05-17 2:10 ` Sharad Shrestha
2013-05-17 2:49 ` Jay Belanger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e22002d1-17ee-44ad-9641-0288b8390151@googlegroups.com \
--to=sharad.shrestha@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.