emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#10763: closed (23.4; calc-embedded fails to simpli


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#10763: closed (23.4; calc-embedded fails to simplify units in \frac)
Date: Wed, 08 Feb 2012 20:43:01 +0000

Your message dated Wed, 08 Feb 2012 14:41:00 -0600
with message-id <address@hidden>
and subject line Re: bug#10763: 23.4; calc-embedded fails to simplify units in 
\frac
has caused the debbugs.gnu.org bug report #10763,
regarding 23.4; calc-embedded fails to simplify units in \frac
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
10763: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10763
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.4; calc-embedded fails to simplify units in \frac Date: Wed, 8 Feb 2012 17:51:54 +0100
Using calc-embedded in LaTeX:

\documentclass[pdftex,a4paper]{report}
$ a \gets 3 m $
$ b \gets 4 m $
$ \evalto \alpha \gets \arcsin\left( \frac{a}{b} \right) \to
\arcsin\left( \frac{0.75 m}{m} \right) $
\end{document}

calc doesn't finish evaluating the expression, presumably because it
has failed to
simplify the units in the fraction.

Please keep me in CC, as I am not subscribed.

In GNU Emacs 23.4.2 (x86_64-pc-linux-gnu, GTK+ Version 2.22.1)
Windowing system distributor `The X.Org Foundation', version 11.0.70101000



--- End Message ---
--- Begin Message --- Subject: Re: bug#10763: 23.4; calc-embedded fails to simplify units in \frac Date: Wed, 08 Feb 2012 14:41:00 -0600 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)
> Using calc-embedded in LaTeX:
>
> \documentclass[pdftex,a4paper]{report}
> $ a \gets 3 m $
> $ b \gets 4 m $
> $ \evalto \alpha \gets \arcsin\left( \frac{a}{b} \right) \to
> \arcsin\left( \frac{0.75 m}{m} \right) $
> \end{document}
>
> calc doesn't finish evaluating the expression, presumably because it
> has failed to simplify the units in the fraction.

By default, Calc doesn't cancel the common factors of the top and bottom
of a fraction unless they are the leading factors.  If you want Calc
to cancel any common factors, you can use algebraic simplification mode.
You can turn that on with "m A".  

So for the above file, you can open it and type "C-x * a" (to activate
all of the formulas), go to the evalto line and type "C-x * e" (to work
on the embedded formula), and then "m A" to put Calc in algebraic
simplification mode.  You will then get 
  $\evalto \alpha \gets \arcsin\left( \frac{a}{b} \right) \to 48.5903778907$
(if you are in degree mode and not in symbolic mode).
You can type "m A" to get out of algebraic simplification mode or "m m"
to save algebraic simplification mode (and any other modes you are
using) for future sessions.

Jay


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]