[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54
From: |
Torsten Bronger |
Subject: |
bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 |
Date: |
Fri, 10 Feb 2017 07:17:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Hallöchen!
Glenn Morris writes:
> address@hidden wrote:
>
>> PS: you have "Mail-Followup-To: address@hidden" in your
>> headers which is wrong, because followups should go to
>> address@hidden, so I ignored that and the "Mail-Copies-To:
>> never" header.
>
> FWIW it's not wrong, in that address@hidden and
> address@hidden are equivalent, so long as one does not mess
> with the subject or references headers. But the latter is
> definitely better, and personally I would discourage use of MFT in
> general, since it often leads to people getting dropped from the
> reply chain.
I use gmane.org for using this mailing list like a newsgroup. Sorry
if this causes trouble. If it is too much, I switch to ordinary
mail, however, gmane really *is* convenient.
> Anyway, what about this:
>
> Loading /home/bronger/.calc.el (source)...done
This hint was very helpful! I totally forgot about my calc
customization. (Well, it is slightly inconsistent that it is read
by emacs -Q but anyway.) The error-provoking part in it is:
(setq calc-simplify-mode 'units)
You can toggle this in calc mode with "m U". So "m d m U 1 C m U 1
C" should exhibit the problem. Note that you have "Deg" active the
whole time. The manual says about unit simplification:
The functions sin, cos, and tan with arguments that have angular
units like rad or arcmin are simplified by converting to base
units (radians), then evaluating with the angular mode
temporarily set to radians.
While this explains part of my observations, I find it very
confusing that "1 C" may yield 0.54 while in "Deg" mode.
And, "90 C" always yielding zero is definitely inconsistent.
"89.999 C" yields -0.447984214223 while in unit simplification mode,
so the cosine is not continuous anymore.
Tschö,
Torsten.
--
Torsten Bronger