From unknown Tue Aug 19 10:00:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4031 <4031@debbugs.gnu.org> To: bug#4031 <4031@debbugs.gnu.org> Subject: Status: calc simplification problem Reply-To: bug#4031 <4031@debbugs.gnu.org> Date: Tue, 19 Aug 2025 17:00:45 +0000 retitle 4031 calc simplification problem reassign 4031 emacs submitter 4031 Colin Williams severity 4031 normal thanks From lackita@gmail.com Tue Aug 4 07:29:05 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Aug 2009 14:29:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n74ET1S5014065 for ; Tue, 4 Aug 2009 07:29:02 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYL0f-0006j9-0L for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 10:29:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYL0d-0006im-C3 for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 10:28:59 -0400 Received: from [199.232.76.173] (port=45626 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYL0d-0006ij-6o for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 10:28:59 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:12839) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYL0c-0003lc-Qu for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 10:28:59 -0400 Received: by fg-out-1718.google.com with SMTP id l26so1140055fgb.7 for ; Tue, 04 Aug 2009 07:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=bKHgcRfJ0g77KvQ0T+AxnModpW9Ki1HAmufRlCjv74g=; b=X6VJvzBYDqSLhgHmavlJB/oJaie9zPfuR1cwIdcSYtL0YNFOQU+vqgBAb1xLxShH+g DnXp+c/oJdhJ+oaqBmS25w2e/OVK+VLw9hjNbqchHNOf7Xe5KhabB0Gveb5oWjhDKbFg c5EI4lW+FpL03H4UQ4E5dCGMUr9vDnMw6cGrs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=PeaEqglcYeZk9zW7UtK65zdXvMxAfru0zkXsB005iPtQgpOadQlLBVEWWazmWcf8GR G5MG16Tunkb9+V/xpdRzX1tGcPeUWyiTb7qhljxlB218Ip09LAV+oDH8TvAaM0G5VhCW ywjaW3srSvM5xkYx7YCPHCzadHXiRx0piv6kI= MIME-Version: 1.0 Received: by 10.239.163.136 with SMTP id p8mr840307hbd.141.1249396138114; Tue, 04 Aug 2009 07:28:58 -0700 (PDT) Date: Tue, 4 Aug 2009 10:28:58 -0400 Message-ID: <1b97198a0908040728u21355fccjd9e7c485958ba471@mail.gmail.com> Subject: calc simplification problem From: Colin Williams To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) In calc, doing `a s' simplifies "(1 + cos(x)^2 - 1) / cos(x)" to "cos(x)^2 sec(x)", which contradicts an example in the tutorial on rewrite rules. Colin From jay.p.belanger@gmail.com Tue Aug 4 17:45:49 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 5 Aug 2009 00:45:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n750jjeb006716 for ; Tue, 4 Aug 2009 17:45:46 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYUdV-0005ID-8l for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 20:45:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYUdQ-0005I0-Ov for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 20:45:44 -0400 Received: from [199.232.76.173] (port=53193 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYUdQ-0005Hx-Je for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 20:45:40 -0400 Received: from s1.cableone.net ([24.116.0.227]:56884) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYUdQ-0004rw-3j for bug-gnu-emacs@gnu.org; Tue, 04 Aug 2009 20:45:40 -0400 Received: from belanger (unverified [24.116.73.151]) by s1.cableone.net (CableOne SMTP Service s1) with ESMTP id 19983383-1872270 for multiple; Tue, 04 Aug 2009 17:44:53 -0700 From: Jay Belanger To: Colin Williams Cc: 4031@debbugs.gnu.org, bug-gnu-emacs@gnu.org Subject: Re: bug#4031: calc simplification problem References: <1b97198a0908040728u21355fccjd9e7c485958ba471@mail.gmail.com> Reply-To: jay.p.belanger@gmail.com CC: jay.p.belanger@gmail.com Date: Tue, 04 Aug 2009 19:44:52 -0500 In-Reply-To: <1b97198a0908040728u21355fccjd9e7c485958ba471@mail.gmail.com> (Colin Williams's message of "Tue, 4 Aug 2009 10:28:58 -0400") Message-ID: <87d47b2inv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Vpipe: Scanner said ok (av_avast) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 2, First 380, in=103, out=0, spam=0 ip=24.116.73.151 X-Originating-IP: 24.116.73.151 X-Abuse-Info: Send abuse complaints to abuse@cableone.net X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Colin Williams writes: > In calc, doing `a s' simplifies "(1 + cos(x)^2 - 1) / cos(x)" to > "cos(x)^2 sec(x)", which contradicts an example in the tutorial on > rewrite rules. So it does. Calc needs to simplify expressions with secant (and cosecant and cotangent) better. I'll be out of town for the next week; I'll fix it as soon as I get back. Jay From cyd@stupidchicken.com Sat Oct 24 12:28:02 2009 Received: (at 4031) by emacsbugs.donarmstrong.com; 24 Oct 2009 19:28:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.4 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po39.its.yale.edu (pantheon-po39.its.yale.edu [130.132.50.100]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9OJS1p2029258 for <4031@emacsbugs.donarmstrong.com>; Sat, 24 Oct 2009 12:28:02 -0700 Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po39.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n9OJRt2u002916 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 24 Oct 2009 15:27:55 -0400 Received: by furry (Postfix, from userid 1000) id AC716C070; Sat, 24 Oct 2009 15:27:55 -0400 (EDT) From: Chong Yidong To: Jay Belanger Cc: Colin Williams , 4031@debbugs.gnu.org Subject: Re: bug#4031: calc simplification problem Date: Sat, 24 Oct 2009 15:27:55 -0400 Message-ID: <87hbtoegn8.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) Jay Belanger wrote: > > In calc, doing `a s' simplifies "(1 + cos(x)^2 - 1) / cos(x)" to > > "cos(x)^2 sec(x)", which contradicts an example in the tutorial on > > rewrite rules. > So it does. Calc needs to simplify expressions with secant (and > cosecant and cotangent) better. I'll be out of town for the next week; > I'll fix it as soon as I get back. Hi Jay, Did you get around to fixing this? If so, this bug should be closed. From jay.p.belanger@gmail.com Sat Oct 24 13:47:23 2009 Received: (at 4031) by emacsbugs.donarmstrong.com; 24 Oct 2009 20:47:24 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.2 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from S4.cableone.net (s4.cableone.net [24.116.0.230]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9OKlMiE009202 for <4031@emacsbugs.donarmstrong.com>; Sat, 24 Oct 2009 13:47:23 -0700 Received: from belanger (unverified [24.116.73.151]) by S4.cableone.net (CableOne SMTP Service S4) with ESMTP id 23448978-1872270 for multiple; Sat, 24 Oct 2009 13:47:12 -0700 From: Jay Belanger To: Chong Yidong Cc: Colin Williams , 4031@debbugs.gnu.org Subject: Re: bug#4031: calc simplification problem References: <87hbtoegn8.fsf@stupidchicken.com> Reply-To: jay.p.belanger@gmail.com CC: jay.p.belanger@gmail.com Date: Sat, 24 Oct 2009 15:47:11 -0500 In-Reply-To: <87hbtoegn8.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 24 Oct 2009 15:27:55 -0400") Message-ID: <87skd8msds.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Vpipe: Scanner said ok (av_avast) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 1, First 379, in=272, out=0, spam=0 ip=24.116.73.151 X-Originating-IP: 24.116.73.151 X-Abuse-Info: Send abuse complaints to abuse@cableone.net Chong Yidong writes: ... >> > In calc, doing `a s' simplifies "(1 + cos(x)^2 - 1) / cos(x)" to >> > "cos(x)^2 sec(x)", which contradicts an example in the tutorial on >> > rewrite rules. ... > Hi Jay, > > Did you get around to fixing this? Yes. > If so, this bug should be closed. Sorry; I'll take care of it now. Jay From jay.p.belanger@gmail.com Sat Oct 24 13:58:13 2009 Received: (at 4031-done) by emacsbugs.donarmstrong.com; 24 Oct 2009 20:58:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.7 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from s2.cableone.net (s2.cableone.net [24.116.0.228]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9OKwBSK010513 for <4031-done@emacsbugs.donarmstrong.com>; Sat, 24 Oct 2009 13:58:12 -0700 Received: from belanger (unverified [24.116.73.151]) by s2.cableone.net (CableOne SMTP Service s2) with ESMTP id 26701337-1872270 for multiple; Sat, 24 Oct 2009 13:58:11 -0700 From: Jay Belanger To: 4031-done@debbugs.gnu.org Subject: Re: calc simplification problem Reply-To: jay.p.belanger@gmail.com CC: jay.p.belanger@gmail.com Date: Sat, 24 Oct 2009 15:58:10 -0500 Message-ID: <87k4ykmrvh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Vpipe: Scanner said ok (av_avast) X-NotAscii: charset=us-ascii X-IP-stats: Incoming Last 0, First 383, in=253, out=0, spam=0 ip=24.116.73.151 X-Originating-IP: 24.116.73.151 X-Abuse-Info: Send abuse complaints to abuse@cableone.net > In calc, doing `a s' simplifies "(1 + cos(x)^2 - 1) / cos(x)" to > "cos(x)^2 sec(x)", which contradicts an example in the tutorial on > rewrite rules. The simplification rules were adjusted, and the example was changed to match the rules. From unknown Tue Aug 19 10:00:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 22 Nov 2009 15:24:12 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator