The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
[%#
  # IMPORTANT NOTE
  #   This documentation is generated automatically from source
  #   templates.  Any changes you make here may be lost.
  # 
  #   The 'docsrc' documentation source bundle is available for download
  #   from http://www.template-toolkit.org/docs.html and contains all
  #   the source templates, XML files, scripts, etc., from which the
  #   documentation for the Template Toolkit is built.
-%]
[% META book = 'Modules'
        page = 'Plugin_Math'
%]
[%  WRAPPER toc;
	PROCESS tocitem 
	        title ="SYNOPSIS"
                subs  = [];
	PROCESS tocitem 
	        title ="DESCRIPTION"
                subs  = [];
	PROCESS tocitem 
	        title ="METHODS"
                subs  = [];
	PROCESS tocitem 
	        title ="AUTHOR"
                subs  = [];
	PROCESS tocitem 
	        title ="VERSION"
                subs  = [];
	PROCESS tocitem 
	        title ="COPYRIGHT"
                subs  = [];
	PROCESS tocitem 
	        title ="SEE ALSO"
                subs  = [];
    END
%]
<!-- Pod to HTML conversion by the Template Toolkit version 2 -->
[% WRAPPER section
    title="SYNOPSIS"
-%]<pre>    [% tt_start_tag %] USE Math [% tt_end_tag %]</pre>
<pre>    [% tt_start_tag %] Math.sqrt(9) [% tt_end_tag %]</pre>
[%- END %]
[% WRAPPER section
    title="DESCRIPTION"
-%]<p>
The Math plugin provides numerous mathematical functions for use
within templates.
</p>
[%- END %]
[% WRAPPER section
    title="METHODS"
-%]<p>
Template::Plugin::Math makes available the following functions from
the Perl core:
</p>
<ul>
<li><b>abs</b>
<li><b>atan2</b>
<li><b>cos</b>
<li><b>exp</b>
<li><b>hex</b>
<li><b>int</b>
<li><b>log</b>
<li><b>oct</b>
<li><b>rand</b>
<li><b>sin</b>
<li><b>sqrt</b>
<li><b>srand</b>
</ul>
<p>
In addition, if the Math::Trig module can be loaded, the following
functions are also available:
</p>
<ul>
<li><b>pi</b>
<li><b>tan</b>
<li><b>csc</b>
<li><b>cosec</b>
<li><b>sec</b>
<li><b>cot</b>
<li><b>cotan</b>
<li><b>asin</b>
<li><b>acos</b>
<li><b>atan</b>
<li><b>acsc</b>
<li><b>acosec</b>
<li><b>asec</b>
<li><b>acot</b>
<li><b>acotan</b>
<li><b>sinh</b>
<li><b>cosh</b>
<li><b>tanh</b>
<li><b>csch</b>
<li><b>cosech</b>
<li><b>sech</b>
<li><b>coth</b>
<li><b>cotanh</b>
<li><b>asinh</b>
<li><b>acosh</b>
<li><b>atanh</b>
<li><b>acsch</b>
<li><b>acosech</b>
<li><b>asech</b>
<li><b>acoth</b>
<li><b>acotanh</b>
<li><b>rad2deg</b>
<li><b>rad2grad</b>
<li><b>deg2rad</b>
<li><b>deg2grad</b>
<li><b>grad2rad</b>
<li><b>grad2deg</b>
</ul>
<p>
If the Math::TrulyRandom module is available, and you've got the time
to wait, the <code>'truly_random_number'</code> method is available:
</p>
<pre>    [% tt_start_tag %] Math.truly_random_number [% tt_end_tag %]</pre>
[%- END %]
[% WRAPPER section
    title="AUTHOR"
-%]<p>
Andy Wardley &lt;abw@wardley.org&gt;
</p>
<p>
[% ttlink('http://wardley.org/', 'http://wardley.org/') -%]
</p>
[%- END %]
[% WRAPPER section
    title="VERSION"
-%]<p>
1.16, distributed as part of the
Template Toolkit version 2.19, released on 27 April 2007.
</p>
[%- END %]
[% WRAPPER section
    title="COPYRIGHT"
-%]<pre>  Copyright (C) 1996-2007 Andy Wardley.  All Rights Reserved.</pre>
<p>
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
</p>
[%- END %]
[% WRAPPER section
    title="SEE ALSO"
-%]<p>
[% ttlink('Template::Plugin', 'Template::Plugin') -%]
</p>
[%- END %]