Math::Symbolic::Custom::CollectSimplify
=======================================

Simplify Math::Symbolic expressions using Math::Symbolic::Custom::Collect

Redefines Math::Symbolic's "simplify()" method using the Math::Symbolic module extension class Math::Symbolic::Custom::Simplification. This new simplify() method uses "to_collected()" in Math::Symbolic::Custom::Collect. 

Be aware that "to_collected()" doesn't always produce a simpler expression from the inputted expression, because it does not factorize expressions. Setting the package variable $Math::Symbolic::Custom::CollectSimplify::TEST_COMPLEXITY to 1 will make the simplify() routine check to see if the resultant expression is any simpler (using a measure of expression complexity based on the number of constants, variables and operators) and if not it will return the expression passed to it. Use this if you want to make sure you are getting the simplest possible expression. This behaviour is off by default.

INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the
perldoc command.

    perldoc Math::Symbolic::Custom::CollectSimplify

You can also look for information at:

    RT, CPAN's request tracker (report bugs here)
        https://rt.cpan.org/NoAuth/Bugs.html?Dist=Math-Symbolic-Custom-CollectSimplify

    CPAN Ratings
        https://cpanratings.perl.org/d/Math-Symbolic-Custom-CollectSimplify

    Search CPAN
        https://metacpan.org/release/Math-Symbolic-Custom-CollectSimplify


LICENSE AND COPYRIGHT

This software is copyright (c) 2024 by Matt Johnson.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.