From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Torsten Bronger Newsgroups: gmane.emacs.bugs Subject: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Fri, 10 Feb 2017 07:17:42 +0100 Organization: Phoenix Foundation Message-ID: <87shnmo9h5.fsf@wilson.bronger.org> References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> <87lgtfmpb0.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1486710792 23581 195.159.176.226 (10 Feb 2017 07:13:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 07:13:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 25652@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 08:13:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5OF-0005mz-Hj for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 08:13:07 +0100 Original-Received: from localhost ([::1]:42251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5OL-0005O8-1t for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Feb 2017 02:13:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5OF-0005Mw-3C for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:13:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5OA-0005bY-CW for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:13:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35521) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc5OA-0005bU-8Q for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cc5OA-0007xa-0R for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:13:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <877f51f7ze.fsf@wilson> Resent-From: Torsten Bronger Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2017 07:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25652 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148671075530562 (code B ref -1); Fri, 10 Feb 2017 07:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Feb 2017 07:12:35 +0000 Original-Received: from localhost ([127.0.0.1]:33720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5Ni-0007wr-Od for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:34 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cc5Nh-0007wd-Ex for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5Nb-0005Ti-BX for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:28 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51414) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cc5Nb-0005Te-7y for submit@debbugs.gnu.org; Fri, 10 Feb 2017 02:12:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cc5Na-0005MX-2w for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:12:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cc5NV-0005SW-MU for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:12:26 -0500 Original-Received: from [195.159.176.226] (port=33411 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cc5NV-0005SC-FN for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 02:12:21 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cc4Ze-00019C-6p for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2017 07:20:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org Original-Lines: 53 Original-X-Complaints-To: usenet@blaine.gmane.org X-PGP-Fingerprint: C5C8 D6E2 79D2 EFE9 8C0F 6D77 D5E3 CEFC 9F51 6B77 X-PGP-Affinity: will accept encrypted message for GPG X-Home-Page: http://www.wikipedia.org/wiki/User:Bronger X-Face: +wpw"|jN2Fde|7_lKBa0\7!_6suIE_m! x)'S9ytBu8tkt'k779jbzQ4o|p+@H_DCrIdnKG]E*w X-Binford: 6100 (more power) X-Accept-Language: de, en Jabber-ID: torsten.bronger@jabber.rwth-aachen.de Mail-Copies-To: never Cancel-Lock: sha1:5owgH+vC0d46xCX/d4OtPWScxB8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129179 Archived-At: Hallöchen! Glenn Morris writes: > npostavs@users.sourceforge.net wrote: > >> PS: you have "Mail-Followup-To: bug-gnu-emacs@gnu.org" in your >> headers which is wrong, because followups should go to >> 25652@debbugs.gnu.org, so I ignored that and the "Mail-Copies-To: >> never" header. > > FWIW it's not wrong, in that bug-gnu-emacs@gnu.org and > 25652@debbugs.gnu.org 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