NAME

App::Math::Tutor::Util - Utilities for easier Math Tutorial Exercises generation

EXPORTS

sumcat_terms

my $formatted = sumcat_terms( "-", VulFrac->new( num => $p, denum => 2, sign => -1 ),
                                   Power->new( mode => 1, basis => $d, exponent =>
                                       VulFrac->new( num => 1, denum => 2 ) ) );
say $formatted;
# \frac{\frac{7}{4}}{2}\pm\sqrt{-\left(\frac{\frac{7}{4}}{2}\right)-\frac{3}{4}}

Concatenates terms using specified kind of addition operation

prodcat_terms

my $formatted = prodcat_terms( "/", VulFrac->new( num => $p, denum => 2 ), ...

LICENSE AND COPYRIGHT

Copyright 2010-2014 Jens Rehsack.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.