Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: fink [...] ch.pkts.ca
Cc:
AdminCc:

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



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.
Hi, thanks for the bug report / feature request. On Mon Jun 13 17:25:33 2011, fink@ch.pkts.ca wrote: Show quoted text
> 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.
Hmm, interesting point. I suppose I could overload ^ to do exponentiation, too. Life's currently very busy, but I'll try to get to either documentation or adding the overload soon. Best regards, Steffen
I added a short paragraph about this to the Math::Symbolic main documentation. It will be in an upcoming release. Best regards, Steffen