package Master::Math;

use 5.12.4;
use strict;
use warnings;

require Exporter;

our @ISA = qw(Exporter);

our %EXPORT_TAGS = ( 
	'all' => [ qw(
		max
		min
		)]
);

our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );

our @EXPORT = qw(
                 max
		 min
);

=head1 NAME

Master::Math - A module of basic mathimatical functions. Great for homework help!

=head1 VERSION

Version 0.01

=cut

our $VERSION = '0.01';


=head1 SYNOPSIS

    use Master::Math;

    print max(1,2);
    say min(1,2);

=head1 SUBROUTINES/METHODS

=head2 max() - finds maximum of a list of numbers.

=cut

sub max {
	my $max = shift(@_);
	foreach my $foo (@_) {
		$max = $foo if $max < $foo;
	}
	return $max;
}

=head2 min() - finds minimum of a list of numbers.

=cut

sub min {
	my $min = shift(@_);
	foreach my $foo (@_) {
		$min = $foo if $min > $foo;
	}
	return $min;
}

=head1 AUTHOR

Jae Esmail, C<< <jae.esmail at gmail.com> >>

=head1 BUGS

Please report any bugs or feature requests to C<bug-master-math at rt.cpan.org>, or through
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Master-Math>.  I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.




=head1 SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Master::Math


You can also look for information at:

=over 4

=item * RT: CPAN's request tracker (report bugs here)

L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Master-Math>

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/Master-Math>

=item * CPAN Ratings

L<http://cpanratings.perl.org/d/Master-Math>

=item * Search CPAN

L<http://search.cpan.org/dist/Master-Math/>

=back

=head1 LICENSE AND COPYRIGHT

Copyright 2011 Jae Esmail.

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.


=cut

1; # End of Master::Math
