The Wayback Machine - https://web.archive.org/web/20110604163540/http://www.mediawiki.org/wiki/Extension:MathStatFunctions

Extension:MathStatFunctions

From MediaWiki.org
Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
MathStatFunction

Release status: Beta

Implementation Parser function
Description Addition of math-specific and statistic specific parser functions.
Last Version 1.1 (2008-01-13)
MediaWiki > 1.8
License No license specified
Download Download snapshot
Subversion [Help]

Browse source code

Hooks used
LanguageGetMagic

check usage (experimental)

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

Contents

[edit] Functions

This module defines the following functions: {{ #const: key }}, {{ #mean: expr|expr|... }}, {{ #median: expr|expr|... }}, {{ #tan: expr }}, {{ #atan: expr }}, {{ #tanh: expr }} ,{{ #atanh: expr }}, {{ #cot: expr }}, {{ #cos: expr }}, {{ #acos: expr }}, {{ #cosh: expr }}, {{ #acosh: expr }}, {{ #sec: expr }}, {{ #sin: expr }}, {{ #asin: expr }}, {{ #sinh: expr }}, {{ #asinh: expr }}, {{ #csc: expr }}, {{ #ln: expr }}, {{ #log: expr }}, {{ #exp: expr }}, {{ #acot: expr }}, {{ #acsc: expr }}, {{ #asec: expr }}

[edit] #const:

{{ #const: key }}

returns the constant based on a key, which are:


[edit] statistical functions

[edit] #mean:

{{ #mean: expr|expr|... }}

Calculates the mean value of given expressions


[edit] #median:

{{ #median: expr|expr|... }}

Calculates the median value of given expressions

[edit] trigonometric functions

[edit] #tan:

{{ #tan: expr }}

Calculates the tangents of given expression

[edit] #cot:

{{ #cot: expr }}

Calculates the cotangents of given expression

[edit] #acot:

{{ #acot: expr }}
{{ #arccot: expr }}

Calculates the arccotangents of given expression

[edit] #atan:

{{ #atan: expr }}
{{ #arctan: expr }}

Calculates the arctangents of given expression

[edit] #tanh:

{{ #tanh: expr }}

Calculates the hyperbolic tangents of given expression

[edit] #atanh:

{{ #atanh: expr }}
{{ #arctanh: expr }}

Calculates the hyperbolic arctangents of given expression

[edit] #cos:

{{ #cos: expr }}

Calculates the cosinus of given expression

[edit] #sec:

{{ #sec: expr }}

Calculates the secant of given expression

[edit] #asec:

{{ #asec: expr }}
{{ #arcsec: expr }}

Calculates the arcsecant of given expression

[edit] #acos:

{{ #acos: expr }}
{{ #arccos: expr }}

Calculates the arccosinus of given expression

[edit] #cosh:

{{ #cosh: expr }}

Calculates the hyperbolic cosinus of given expression

[edit] #acosh:

{{ #acosh: expr }}
{{ #arccosh: expr }}

Calculates the hyperbolic arccosinus of given expression


[edit] #sin:

{{ #sin: expr }}

Calculates the sinus of given expression

[edit] #csc:

{{ #csc: expr }}

Calculates the cosecant of given expression


[edit] #acsc:

{{ #acsc: expr }}
{{ #arccsc: expr }}

Calculates the arccosecant of given expression

[edit] #asin:

{{ #asin: expr }}
{{ #arcsin: expr }}

Calculates the arcsinus of given expression

[edit] #sinh:

{{ #sinh: expr }}

Calculates the hyperbolic sinus of given expression

[edit] #asinh:

{{ #asinh: expr }}
{{ #arcsinh: expr }}

Calculates the hyperbolic arcsinus of given expression

[edit] logarithmic and exponential functions

[edit] #ln:

{{ #ln: expr }}

Calculates the natural logarithm of given expression


[edit] #log:

{{ #log: expr }}

Calculates the logarithm in base 10 for given expression


{{ #log: expr|base }}

Calculates the logarithm in base base for given expression

[edit] #exp:

{{ #exp: expr }}

Calculates the value of eexpr

[edit] Installation

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

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

The MathStatFunctions extension requires MediaWiki 1.8 or above.

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

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

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox