Skip Menu |

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

Report information
The Basics
Id: 17602
Status: new
Priority: 0/
Queue: Math-NumberCruncher

People
Owner: sifukurt [...] yahoo.com
Requestors: ntyni [...] iki.fi
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 5.00
Fixed in: (no value)



Subject: Warnings in BestFit()
Hi, when using the BestFit() function on Perl 5.8.4 on Debian GNU/Linux with warnings enabled, I get: % perl -MMath::NumberCruncher -w -e 'my ($s, $y) = Math::NumberCruncher::BestFit([1,2],[1,2])' Use of uninitialized value in multiplication (*) at /usr/share/perl5/Math/NumberCruncher.pm line 160. Use of uninitialized value in multiplication (*) at /usr/share/perl5/Math/NumberCruncher.pm line 160. Use of uninitialized value in exponentiation (**) at /usr/share/perl5/Math/NumberCruncher.pm line 162. This happens because there is an off-by-one error in the list indexing inside BestFit(). I'm attaching a patch that fixes this. Cheers, -- Niko Tyni ntyni@iki.fi
Subject: index-patch
Download index-patch
application/octet-stream 426b

Message body not shown because it is not plain text.