From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#25652: 26.0.50; calc says that cos(1 degree) is 0.54 Date: Sat, 11 Feb 2017 09:14:49 -0500 Message-ID: <87zihslspy.fsf@users.sourceforge.net> References: <877f51f7ze.fsf@wilson> <87shnn7mv7.fsf@wilson.bronger.org> <87lgtfmpb0.fsf@users.sourceforge.net> <87shnmo9h5.fsf@wilson.bronger.org> <87fujlowwb.fsf@wilson.bronger.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486822454 7018 195.159.176.226 (11 Feb 2017 14:14:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2017 14:14:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: Tino Calancha To: 25652@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 15:14:10 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 1ccYRC-0001NQ-Ot for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Feb 2017 15:14:07 +0100 Original-Received: from localhost ([::1]:48487 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccYRI-00029Z-8V for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 Feb 2017 09:14:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccYRB-00028A-El for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:14:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccYR8-000462-8F for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:14:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccYR8-00045t-4Q for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ccYR7-0001Lx-Uh for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2017 14:14: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.14868224335181 (code B ref -1); Sat, 11 Feb 2017 14:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Feb 2017 14:13:53 +0000 Original-Received: from localhost ([127.0.0.1]:35402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccYQz-0001LU-8X for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccYQy-0001LF-9J for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccYQs-0003zs-2I for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:47 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ccYQr-0003zn-VY for submit@debbugs.gnu.org; Sat, 11 Feb 2017 09:13:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccYQq-00027h-P6 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:13:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccYQn-0003z3-Jh for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:13:44 -0500 Original-Received: from mail-it0-x231.google.com ([2607:f8b0:4001:c0b::231]:35723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccYQn-0003yp-Eg for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2017 09:13:41 -0500 Original-Received: by mail-it0-x231.google.com with SMTP id 203so157441678ith.0 for ; Sat, 11 Feb 2017 06:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=UiYH2oYxxrb2gbsE2d/Sp+u6VQEcrGwT1SgpFjPM9ME=; b=FswT0wwbs2wnyI2oP0c6Eob0HAwxwm+WFXMyvyVo+5j+dI4bTF9gs8Y1X5H8NIVBts iaQZiY/BaDmTBqr5CB7Rx7vlsl6vR6kqPC1EokT/8LiwdTW8LbaijfO2K9TCWQD14v7r BiqlRShIvZBKeizj6Xz5HoiJlrDN6nOoWUqvGJDp3JOsr98ZNAfLtxCBbZUlJRhOIpy5 pIQTlt9jPU5GnZar7ww9Z633Njdj+braI5uYpy0lJCjG0tIARHIqDETkAqq6YuUL7QCW 6uQPAUD9xtEYkGaAIYfl5uW88YkcEsbpT4G/zpwofz025Sl6kl1G95nRCv+R0ReSRgfn zPpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=UiYH2oYxxrb2gbsE2d/Sp+u6VQEcrGwT1SgpFjPM9ME=; b=LfmGoiojq10wG8fkA5gXW98lQdsZrtXS/HveIIzyPbNEikYaPKufUvh/LB67mqnNFF vmzOTBuE97zv92E+JL6Ub7zXWxxv1a2Qdpq41y4Kf3NTnxYYpvm07dkfSCsM9PUf/ybK QMDin5OiwXaRFN7YaZPufArO6nzF9OLapFjoQ+mT15ifh21lVf11LmfisGzH/2T0ISSZ MhgMVXhtnVBmAv7mEGZUHqHNK6ZgjvNqnxOMueBvMn4ZvUp4M/BRTGQ+tfKxFxIqYHj+ Tush6J4UZN1Q9ml60SAXcxjfr81UIBdiGLRYXTumz6LVkCoVi/zcWrUb4r3FZ+r2VMv0 kCeA== X-Gm-Message-State: AMke39lRvn7RP8iTFQl4nVU2QGKPxH7/Dq/f4wgLBKpaoGDOjfc32yCn9tXRUV9oZY8wiw== X-Received: by 10.36.131.65 with SMTP id d62mr14184630ite.111.1486822419195; Sat, 11 Feb 2017 06:13:39 -0800 (PST) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id h15sm1727467ita.20.2017.02.11.06.13.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Feb 2017 06:13:38 -0800 (PST) In-Reply-To: <87fujlowwb.fsf@wilson.bronger.org> (Torsten Bronger's message of "Sat, 11 Feb 2017 11:16:20 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:129240 Archived-At: tags 25652 confirmed retitle 25652 26.0.50; [calc] In Units Simplication + Degree mode cos(1 deg) != cos(1) quit Torsten Bronger 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