Extension:MathStatFunctions

MathStatFunctions is a MediaWiki extension that is a collection of Math and Statistical functions.

Functions
This module defines the following functions:, , , , , ,, , , , , , , , , , , , , , , , ,

#const:
returns the constant based on a key, which are:
 * pi
 * pi/2
 * pi/4
 * 1/pi
 * 2/pi
 * sqrt(pi)
 * 2/sqrt(pi)
 * e
 * log_2(e)
 * log_10(e)
 * ln(2)
 * ln(10)
 * sqrt(2)
 * sqrt(10)
 * 1/sqrt(2) or sqrt(1/2)
 * ln(pi)
 * euler
 * brion

#mean:
Calculates the mean value of given expressions

#median:
Calculates the median value of given expressions

#tan:
Calculates the tangents of given expression

#cot:
Calculates the cotangents of given expression

#acot:
Calculates the arccotangents of given expression

#atan:
Calculates the arctangents of given expression

#tanh:
Calculates the hyperbolic tangents of given expression

#atanh:
Calculates the hyperbolic arctangents of given expression

#cos:
Calculates the cosinus of given expression

#sec:
Calculates the secant of given expression

#asec:
Calculates the arcsecant of given expression

#acos:
Calculates the arccosinus of given expression

#cosh:
Calculates the hyperbolic cosinus of given expression

#acosh:
Calculates the hyperbolic arccosinus of given expression

#sin:
Calculates the sinus of given expression

#csc:
Calculates the cosecant of given expression

#acsc:
Calculates the arccosecant of given expression

#asin:
Calculates the arcsinus of given expression

#sinh:
Calculates the hyperbolic sinus of given expression

#asinh:
Calculates the hyperbolic arcsinus of given expression

#ln:
Calculates the natural logarithm of given expression

#log:
Calculates the logarithm in base 10 for given expression

Calculates the logarithm in base base for given expression

#exp:
Calculates the value of $$e^{expr}$$

Installation
Requires MediaWiki 1.8 or later, also requires an active installation of ParserFunctions

Download both of these files and put them in a new directory called MathStatFunctions in your extensions directory.


 * MathStatFunctions.php
 * MathStatFunctions.i18n.php

Then put the following at the end of your LocalSettings.php:

require_once( "$IP/extensions/MathStatFunctions/MathStatFunctions.php" );

You can also browse the code tree here:


 * MathStatFunctions in MediaWiki SVN