aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJay Belanger2013-03-09 17:36:02 -0600
committerJay Belanger2013-03-09 17:36:02 -0600
commitf6817529b479b942dc3a30cf091de9d0ca4c58a2 (patch)
tree9c63a999963bfa025ee550397a599de234aaf381 /doc
parent78cd48e721d04b94b35f6e02e7c1022092bf702e (diff)
downloademacs-f6817529b479b942dc3a30cf091de9d0ca4c58a2.tar.gz
emacs-f6817529b479b942dc3a30cf091de9d0ca4c58a2.zip
* doc/misc/calc.texi (Basic Operations on Units): Streamline some
descriptions.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/calc.texi21
2 files changed, 12 insertions, 14 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 44a0b7b3211..6a1bfd90c20 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,8 @@
12013-03-09 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc.texi (Basic Operations on Units): Streamline some
4 descriptions.
5
12013-03-08 Glenn Morris <rgm@gnu.org> 62013-03-08 Glenn Morris <rgm@gnu.org>
2 7
3 * faq.texi (Top): Don't say this was updated @today. 8 * faq.texi (Top): Don't say this was updated @today.
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index 0bf7833ec34..44462d1d5a8 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -27859,7 +27859,8 @@ while typing @kbd{u c au/yr @key{RET}} produces
27859 27859
27860If the units you request are inconsistent with the original units, the 27860If the units you request are inconsistent with the original units, the
27861number will be converted into your units times whatever ``remainder'' 27861number will be converted into your units times whatever ``remainder''
27862units are left over. For example, converting @samp{55 mph} into acres 27862units are left over. (This can be disabled; @pxref{Customizing Calc}.)
27863For example, converting @samp{55 mph} into acres
27863produces @samp{6.08e-3 acre / m s}. (Recall that multiplication binds 27864produces @samp{6.08e-3 acre / m s}. (Recall that multiplication binds
27864more strongly than division in Calc formulas, so the units here are 27865more strongly than division in Calc formulas, so the units here are
27865acres per meter-second.) Remainder units are expressed in terms of 27866acres per meter-second.) Remainder units are expressed in terms of
@@ -27875,12 +27876,6 @@ change the @samp{s} to @samp{ms} to get @samp{9.8e-4 cm/ms^2}.
27875The ``remainder unit'' @samp{cm} is left alone rather than being 27876The ``remainder unit'' @samp{cm} is left alone rather than being
27876changed to the base unit @samp{m}. 27877changed to the base unit @samp{m}.
27877 27878
27878If you want to disallow using inconsistent units, you can set the
27879customizable variable @code{calc-ensure-consistent-units} to @code{t}
27880(@pxref{Customizing Calc}). In this case, if you request units which
27881are inconsistent with the original units, you will be warned about it
27882and no conversion will occur.
27883
27884You can use explicit unit conversion instead of the @kbd{u s} command 27879You can use explicit unit conversion instead of the @kbd{u s} command
27885to gain more control over the units of the result of an expression. 27880to gain more control over the units of the result of an expression.
27886For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or 27881For example, given @samp{5 m + 23 mm}, you can type @kbd{u c m} or
@@ -27916,13 +27911,11 @@ prompt first for the old units which this value should be considered
27916to have, then for the new units. (If the value on the stack can be 27911to have, then for the new units. (If the value on the stack can be
27917simplified so that it doesn't contain any units, like @samp{ft/in} can 27912simplified so that it doesn't contain any units, like @samp{ft/in} can
27918be simplified to 12, then @kbd{u c} will still prompt for both old 27913be simplified to 12, then @kbd{u c} will still prompt for both old
27919units and new units. You can ignore the prompt for old units with 27914units and new units. This can be disabled; @pxref{Customizing Calc}.)
27920@key{RET}, or turn off the prompt by setting the customizable variable 27915Assuming the old and new units you give are consistent with each
27921@code{calc-allow-units-as-numbers} to @code{nil}; 27916other, the result also will not contain any units. For example,
27922@pxref{Customizing Calc}.) Assuming the old and new units you give are 27917@kbd{@w{u c} cm @key{RET} in @key{RET}} converts the number 2 on the
27923consistent with each other, the result also will not contain any 27918stack to 5.08.
27924units. For example, @kbd{@w{u c} cm @key{RET} in @key{RET}} converts
27925the number 2 on the stack to 5.08.
27926 27919
27927@kindex u b 27920@kindex u b
27928@pindex calc-base-units 27921@pindex calc-base-units