in reply to Re^2: Lagrange Polynomials in Perl
in thread Lagrange Polynomials in Perl
Does $scalar = @array produce a scalar containing the size of the array?
Yes. But $point is a strange name for the size of an array!
If that is meant to be short for $lastPoint, it is still deceptive as with zero-based arrays, the index of the last point in the array is one less than the size of the array.
(Which incidentally, can be obtained using my $lastPoint = $#array;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Lagrange Polynomials in Perl
by Mascasc (Novice) on Apr 29, 2015 at 14:36 UTC | |
by BrowserUk (Patriarch) on Apr 29, 2015 at 15:08 UTC | |
by Mascasc (Novice) on Apr 29, 2015 at 15:42 UTC |