Math::Polynomial::Generic - history of a discontinued module
Math::Polynomial::Generic was an extension of Math::Polynomial that did not make it into a permanent release.
It had been declared experimental and its interface as not to be taken for granted. The intention was to give users more expressive flexibility through a kind of polynomial object that was not bound to a particular coefficient space.
This experiment turned out as a failure. Coefficient spaces need to be specified at one point, and delaying this part of proper initialization did more harm than good in terms of clarity.
Therefore, Math::Polynomial::Generic was removed from the Math-Polynomial distribution after a two-stage deprecation period.
Technically, before its actual removal it was replaced by an empty module in order to neutralize incompatible code in older versions.
Old code still using this module can easily be fixed.
Instead of the symbol X, a variable $X that is initialized as Math::Polynomial->new($zero, $one) with appropriate coefficient values $zero and $one can be used.
X
$X
Math::Polynomial->new($zero, $one)
$zero
$one
C($coeff) can be replaced by Math::Polynomial->new($coeff) or it can be defined locally as a small wrapper for the same.
C($coeff)
Math::Polynomial->new($coeff)
Math::Polynomial
Martin Becker, <becker-cpan-mp (at) cozap.com>
Copyright (c) 2009-2019 by Martin Becker. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6 or, at your option, any later version of Perl 5 you may have available.
This module is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install Math::Polynomial, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Polynomial
CPAN shell
perl -MCPAN -e shell install Math::Polynomial
For more information on module installation, please visit the detailed CPAN module installation guide.