Subject: | Minor documentation enhancement request |
Date: | Mon, 13 Jun 2011 14:25:16 -0700 |
To: | bug-Math-Symbolic [...] rt.cpan.org |
From: | "P Fudd" <fink [...] ch.pkts.ca> |
Hi,
I'd like to request a small addition to the man page. I encountered a
problem using Algorithm::CurveFit, in that the results were radically
wrong. The formula was y=a*x^2+b*x+c , which is fine, but the predicted y
values were around 18446744073709488692 (0xffffffffffff0a34).
The problem is that:
my $y = $a * $x ^ 2 + $b * $x + $c;
needed to be
my $y = $a * $x ** 2 + $b * $x + $c;
Because the syntax for exponentiation is '^' in Math::Symbolic and '**' in
perl, it would be good to make some mention of it in the documentation,
along with anything that would make it easier to google this when you
start getting unreasonably large values for what should be a simple
calculation.
Thank you.