GNU bug report logs - #15511
calc fit not working in emacs 24.3

Previous Next

Package: emacs;

Reported by: Devin Homan <devinwh7 <at> gmail.com>

Date: Thu, 3 Oct 2013 09:08:02 UTC

Severity: normal

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15511 in the body.
You can then email your comments to 15511 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15511; Package emacs. (Thu, 03 Oct 2013 09:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Devin Homan <devinwh7 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 03 Oct 2013 09:08:02 GMT) Full text and rfc822 format available.

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

From: Devin Homan <devinwh7 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: jay.p.belanger <at> gmail.com
Subject: calc fit not working in emacs 24.3
Date: Thu, 03 Oct 2013 01:03:44 -0800
This bug should be reproducible by following the info example "12.8.1 Linear Fits". The function fit
function appears to not be working in Emacs 24.3.1 but it works in 23.4.1. math-general-fit calls
math-rewrite, which produces a result that is rejected by math-general-fit.

(calcFunc-fit '(+ (var a var-a) (* (var b var-b) (var x var-x))) '(var x var-x) '(vec (var a var-a)
(var b var-b)) '(vec (vec 1 2 3 4 5) (vec 5 7 9 11 13)))

should result in (+ (float 3 0) (* (float 2 0) (var x var-x))).

math-rewrite returns

in Emacs 24

(calcFunc-fitsystem 0 (vec (- (+ (* (calcFunc-fitparam 2) (calcFunc-fitvar 1)) (calcFunc-fitparam
1)) (calcFunc-fitvar 2))) (vec (calcFunc-eq (calcFunc-fitdummy 1) 1)) 0)

in Emacs 23

(calcFunc-fitsystem (calcFunc-fitvar 2) (vec 1 (calcFunc-fitvar 1)) (vec (calcFunc-fitdummy 1)
(calcFunc-fitdummy 2)))

The erroneous result is being returned on line 1664 of calcalg3.el in 24.3.1
"expr (math-rewrite (list 'calcFunc-fitmodel expr)",
which is line 1665 in 23.4.1.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15511; Package emacs. (Thu, 03 Oct 2013 14:19:01 GMT) Full text and rfc822 format available.

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

From: Jay Belanger <jay.p.belanger <at> gmail.com>
To: Devin Homan <devinwh7 <at> gmail.com>
Cc: jay.p.belanger <at> gmail.com, bug-gnu-emacs <at> gnu.org
Subject: Re: calc fit not working in emacs 24.3
Date: Thu, 03 Oct 2013 09:17:44 -0500
> This bug should be reproducible by following the info example "12.8.1
> Linear Fits".

Thanks for catching this.  It has been fixed in the bzr version of
Emacs.




bug marked as fixed in version 24.4, send any further explanations to 15511 <at> debbugs.gnu.org and Devin Homan <devinwh7 <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 07 Oct 2013 00:35:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Nov 2013 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 248 days ago.

Previous Next


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