GNU bug report logs - #25652
26.0.50; [calc] In Units Simplication + Degree mode cos(1 deg) != cos(1)

Previous Next

Package: emacs;

Reported by: Torsten Bronger <bronger <at> physik.rwth-aachen.de>

Date: Wed, 8 Feb 2017 07:39:02 UTC

Severity: normal

Tags: confirmed

Found in version 26.0.50

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #42 received at control <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: bug-gnu-emacs <at> gnu.org
Cc: Tino Calancha <tino.calancha <at> gmail.com>
Subject: Re: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54
Date: Sat, 11 Feb 2017 09:14:49 -0500
tags 25652 confirmed
retitle 25652 26.0.50; [calc] In Units Simplication + Degree mode cos(1 deg) != cos(1)
quit

Torsten Bronger <bronger <at> physik.rwth-aachen.de> writes:
>> 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.  [...]
>
> After havin updated to current git master, I can now reproduce this
> on both of my machine.  Can you confirm?

Yes, this happens in units simplication mode.  Note that 'cos(1 deg) RET
does give 0.999.  It seems to be because of the fix for #23889 [1:
713e922243].  Tino, any ideas?

1: 2016-07-12 00:38:14 +0900 713e922243fb60d850f7b0ff83f3e2a3682f1832
  Ignore angle mode while simplifying units




This bug report was last modified 8 years and 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.