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