Skip Menu |

This queue is for tickets about the Math-Symbolic CPAN distribution.

Report information
The Basics
Id: 58319
Status: resolved
Priority: 0/
Queue: Math-Symbolic

People
Owner: Nobody in particular
Requestors: jimbo.yates [...] googlemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.604



Subject: Math-symbolic-derivative quotient rule
Date: Thu, 10 Jun 2010 22:37:25 +0100
To: bug-Math-Symbolic [...] rt.cpan.org
From: James W T Yates <jimbo.yates [...] googlemail.com>
Hi I've been using your Math-symbolic module and found a bug with quotients. For example: use Math::Symbolic qw/:all/; my $test=parse_from_string('2/x'); my $derived = $test->new('partial_derivative', $test, 'x'); $derived = $derived->apply_derivatives()->simplify(); print "$derived\n"; returns 4 If instead I use my $test=parse_from_string('c/x'); Undefined operands not supported by Math::Symbolic::Operator objects. at C:/Perl /site/lib/Math/Symbolic/Derivative.pm line 323 Please advise regards James
Thank you for this bug report. The bug you describe is quite embarrassing. It's from a refactoring/optimization of the quotient rule code from a while back. I had added a couple of special cases that allowed early simplification of the resulting formula. I failed to get them right. A fixed release (0.604) will be released within the hour. Best regards, Steffen
Subject: Re: [rt.cpan.org #58319] Math-symbolic-derivative quotient rule
Date: Sun, 13 Jun 2010 16:19:56 +0100
To: bug-Math-Symbolic [...] rt.cpan.org
From: James W T Yates <jimbo.yates [...] googlemail.com>
Hi Steffen Thanks for the quick response. Regards James On 11 June 2010 08:58, Steffen Mueller via RT <bug-Math-Symbolic@rt.cpan.org Show quoted text
> wrote:
Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=58319 > > > Thank you for this bug report. > > The bug you describe is quite embarrassing. It's from a > refactoring/optimization of the quotient rule code from a while back. I > had added a couple of special cases that allowed early simplification of > the resulting formula. I failed to get them right. > > A fixed release (0.604) will be released within the hour. > > Best regards, > Steffen >