MathEx Help File

Welcome

MathEx Help File

Plugin Name:

MathEx

Current Version:

1.4.0.0

Description:

This plugin adds a number of math functions to your arsenal.

Licence:

Free to use and distribute.

Author:

Centauri Soldier and Compiled to AMS8 by abood1987

Web:

http://www.abc4web.com

E-mail:

electricfire05@yahoo.com

Copyright:

2013 Compiled by abood

Install Notes:

Place "MathEx" Folder in your "AutoPlay Media Studio/Plugins/Actions" folder.


Table of Contents

MathEx.Base10ToBaseX
MathEx.BaseConvert
MathEx.BaseXToBase10
MathEx.CoefficientOfVariation
MathEx.CreateCounter
MathEx.DecimalColorToHex
MathEx.DecimalColorToRGB
MathEx.Divide
MathEx.FiveSummaryData
MathEx.FractionToDecimal
MathEx.FractionToLowestTerms
MathEx.GCF
MathEx.GetCounterPos
MathEx.GetPrimeFactors
MathEx.GetPrimes
MathEx.HexColorToRGB
MathEx.Intersection
MathEx.IsEven
MathEx.IsInteger
MathEx.IsNegative
MathEx.IsPrime
MathEx.LCD
MathEx.LCM
MathEx.Ln
MathEx.Log
MathEx.Mean
MathEx.Median
MathEx.Mode
MathEx.NumberCount
MathEx.NumberToTable
MathEx.NumberToWords
MathEx.RGBColorToHex
MathEx.Range
MathEx.SortNumericDataSet
MathEx.StandardDeviation
MathEx.StepCounter
MathEx.Summation
MathEx.Variance

MathEx.Base10ToBaseX


(string) MathEx.Base10ToBaseX ( 

(number) Number = 435,

(number) Output Base = 16 )

Description

Converts a number from base ten to any other base(bases 2 - 36 supported).

Parameters

Number

(number) The number that will be converted.

Output Base

(number) The base in which to output the number.


Return

This action returns a (string) value.



MathEx.BaseConvert


(string) MathEx.BaseConvert ( 

(string) Number (as string) = "A54D6E",

(number) Input Base = 17,

(number) Output Base = 6 )

Description

Convert a number from any base to any other base (bases 2 - 36 supported).

Parameters

Number (as string)

(string) The number (in string format) that will be converted.

Input Base

(number) The base of the input number.

Output Base

(number) The base in which to return the output.


Return

This action returns a (string) value.



MathEx.BaseXToBase10


(number) MathEx.BaseXToBase10 ( 

(string) Number (as string) = "010101011110110101",

(number) Input Base = 2 )

Description

Converts a number from any base in a number in base ten(bases 2 - 36 supported).

Parameters

Number (as string)

(string) The number which to convert (in string format);

Input Base

(number) The base of the input number.


Return

This action returns a (number) value.



MathEx.CoefficientOfVariation


(number) MathEx.CoefficientOfVariation ( 

(table) Dataset = tDataset )

Description

Returns the coefficient of variation for a set of data

Parameters

Dataset

(table) The table of numbers for which to find the coefficient of variation.


Return

This action returns a (number) value.



MathEx.CreateCounter


MathEx.CreateCounter ( 

(string) Counter Name = "Items",

(number) Max Count = 34,

(boolean) Is 0 Based = false )

Description

Creates a repeating counter.

Parameters

Counter Name

(string) The name by which the counter is represented.

Max Count

(number) The highest number to which the counter will go.

Is 0 Based

(boolean) Whether or not the counter will be a 0-based counter (as opposed to a 1-based counter).


Return

This action dose not return any value.



MathEx.DecimalColorToHex


(string) MathEx.DecimalColorToHex ( 

(number) Color = 1232143 )

Description

Converts a decimal color value to a hex color value.

Parameters

Color

(number) The decimal color value.


Return

This action returns a (string) value.



MathEx.DecimalColorToRGB


(table) MathEx.DecimalColorToRGB ( 

(number) Color = 1232143 )

Description

Converts a decimal color value to an RGB value.

Parameters

Color

(number) The decimal color value.


Return

This action returns a (table) value.



MathEx.Divide


(table) MathEx.Divide ( 

(number) Dividend = 15,

(number) Divisor = 3 )

Description

Performs long division on two numbers.

Parameters

Dividend

(number) The number to divide.

Divisor

(number) The number by which to divide the dividend.


Return

This action returns a (table) value.



MathEx.FiveSummaryData


(table) MathEx.FiveSummaryData ( 

(table) Dataset = tDataset )

Description

Gets the Five Summary Data for a given numeric dataset.

Parameters

Dataset

(table) The table of numbers for which to find the Five Summary Data.


Return

This action returns a (table) value.



MathEx.FractionToDecimal


(number) MathEx.FractionToDecimal ( 

(number) Numerator = 15,

(number) Denominator = 30 )

Description

This action converts a fraction into a decimal.

Parameters

Numerator

(number) The numerator of the fraction.

Denominator

(number) The denominator of the fraction.


Return

This action returns a (number) value.



MathEx.FractionToLowestTerms


(table) MathEx.FractionToLowestTerms ( 

(number) Numerator = 20,

(number) Denominator = 80 )

Description

This action reduces a fraction to its lowest terms.

Parameters

Numerator

(number) The numerator of the fraction.

Denominator

(number) The denominator of the fraction.


Return

This action returns a (table) value.



MathEx.GCF


(number) MathEx.GCF ( 

(number) Number 1 = 7,

(number) Number 2 = 13 )

Description

This finds the Greatest Common Factor of two numbers.

Parameters

Number 1

(number) The first number.

Number 2

(number) The second number.


Return

This action returns a (number) value.



MathEx.GetCounterPos


(number) MathEx.GetCounterPos ( 

(string) Counter Name = "Items" )

Description

Gets the current position of the given counter.

Parameters

Counter Name

(string) The name by which the counter is represented.


Return

This action returns a (number) value.



MathEx.GetPrimeFactors


(table) MathEx.GetPrimeFactors ( 

(number) Number = 28 )

Description

Returns the prime factors of a given integer.

Parameters

Number

(number) The number for which to find the prime factors.


Return

This action returns a (table) value.



MathEx.GetPrimes


(table) MathEx.GetPrimes ( 

(number) Range Start = 1,

(number) Range End = 100,

(variant) Callback Function = nil )

Description

Gets all prime numbers in a given range.

Parameters

Range Start

(number) The starting number of the search range.

Range End

(number) The last number in the search range.

Callback Function

(variant) The callback function to use when a prime number is found.


Return

This action returns a (table) value.



MathEx.HexColorToRGB


(table) MathEx.HexColorToRGB ( 

(string) Color = "F34AC5" )

Description

Converts a hex color value to an RGB color value.

Parameters

Color

(string) The six character string value of the hex color.


Return

This action returns a (table) value.



MathEx.Intersection


(table) MathEx.Intersection ( 

(table) Set 1 = {1, 2, 3},

(table) Set 2 = {1, 2, 4, 7} )

Description

Finds the intersection of two sets of numbers.

Parameters

Set 1

(table) The first set of numbers (in table format).

Set 2

(table) The second set of numbers (in table format).


Return

This action returns a (table) value.



MathEx.IsEven


(boolean) MathEx.IsEven ( 

(number) Number = 34 )

Description

Determines whether or not a given number is an even number.

Parameters

Number

(number) The input number to check.


Return

This action returns a (boolean) value.



MathEx.IsInteger


(boolean) MathEx.IsInteger ( 

(number) Number = 23.5 )

Description

Determines whether or not a number is an integer (a whole number).

Parameters

Number

(number) The input number to check.


Return

This action returns a (boolean) value.



MathEx.IsNegative


(boolean) MathEx.IsNegative ( 

(number) Number = 12 )

Description

Determines whether or not a number is negative.

Parameters

Number

(number) The input number to check.


Return

This action returns a (boolean) value.



MathEx.IsPrime


(boolean) MathEx.IsPrime ( 

(number) Number = 17 )

Description

Determines whether or not a given number is a prime number.

Parameters

Number

(number) The input number to check.


Return

This action returns a (boolean) value.



MathEx.LCD


(number) MathEx.LCD ( 

(table) Numbers = {32, 14, 8, 9, 24} )

Description

Gets the least common denominator for a given set of integers.

Parameters

Numbers

(table) A set of numbers (in table format) for which to find the least common denominator.


Return

This action returns a (number) value.



MathEx.LCM


(number) MathEx.LCM ( 

(number) Number 1 = 427,

(number) Number 2 = 238 )

Description

This finds the Least Common Multiple of two numbers.

Parameters

Number 1

(number) The first number.

Number 2

(number) The second number.


Return

This action returns a (number) value.



MathEx.Ln


(number) MathEx.Ln ( 

(number) Input = 100 )

Description

Returns the natural log of a number.

Parameters

Input

(number) The number for which to find the natural log.


Return

This action returns a (number) value.



MathEx.Log


(number) MathEx.Log ( 

(number) Log Base = 10,

(number) Input = 100 )

Description

Allows the input of the log base (where the stock AMS action "Math.Log" does not).

Parameters

Log Base

(number) The base of the log.

Input

(number) The number for which to find the log.


Return

This action returns a (number) value.



MathEx.Mean


(number) MathEx.Mean ( 

(table) Dataset = tDataset )

Description

Calculates the mean of a set of numbers.

Parameters

Dataset

(table) The table of numbers for which to find the mean.


Return

This action returns a (number) value.



MathEx.Median


(number) MathEx.Median ( 

(table) Dataset = tDataset )

Description

Finds the median of a set of numbers.

Parameters

Dataset

(table) The table of numbers for which to find the median.


Return

This action returns a (number) value.



MathEx.Mode


(number) MathEx.Mode ( 

(table) Dataset = tDataset )

Description

Finds the mode of a set of numbers.

Parameters

Dataset

(table) The table of numbers for which to find the mode.


Return

This action returns a (number) value.



MathEx.NumberCount


(number) MathEx.NumberCount ()

Description

Counts the number of places in a given number.

Parameters

None


Return

This action returns a (number) value.



MathEx.NumberToTable


(table) MathEx.NumberToTable ()

Description

Stores each digit of a number in a table.

Parameters

None


Return

This action returns a (table) value.



MathEx.NumberToWords


(string) MathEx.NumberToWords ( 

(number) Number = 1234,

(boolean) Use Commas = true,

(boolean) Is Monetary = true )

Description

This will convert a number to a string of words.

Parameters

Number

(number) The input number.

Use Commas

(boolean) Whether or not to use commas.

Is Monetary

(boolean) Whether or not to display the result in terms of money (only USD is currently supported).


Return

This action returns a (string) value.



MathEx.RGBColorToHex


(string) MathEx.RGBColorToHex ( 

(table) RGB = tRGB )

Description

Conerts an RGB colro value to a hex color value.

Parameters

RGB

(table) The table containing the three RGB values.


Return

This action returns a (string) value.



MathEx.Range


(number) MathEx.Range ( 

(table) Dataset = tDataset )

Description

gets the range of a given set of numbers.

Parameters

Dataset

(table) The table of numbers for which to find the range.


Return

This action returns a (number) value.



MathEx.SortNumericDataSet


(table) MathEx.SortNumericDataSet ( 

(table) Dataset = tDataset,

(boolean) Ascending = true )

Description

Sorts a table of numbers.

Parameters

Dataset

(table) The table of numbers to sort.

Ascending

(boolean) Whether to sort the items in ascending or descending order.


Return

This action returns a (table) value.



MathEx.StandardDeviation


(number) MathEx.StandardDeviation ( 

(table) Dataset = tDataset )

Description

Calculates the standard deviation for a given set of numbers.

Parameters

Dataset

(table) The table of number for which to find the standard deviation.


Return

This action returns a (number) value.



MathEx.StepCounter


(number) MathEx.StepCounter ( 

(string) Counter Name = "Items" )

Description

Steps a counter from its current position to its next position.

Parameters

Counter Name

(string) The name by which the counter is represented.


Return

This action returns a (number) value.



MathEx.Summation


(number) MathEx.Summation ( 

(table) Dataset = tDataset )

Description

Calculates the total of all items(added together) of a given set of numbers.

Parameters

Dataset

(table) The set of numbers which to add.


Return

This action returns a (number) value.



MathEx.Variance


(number) MathEx.Variance ()

Description

Calculates the variance for a given set of numbers.

Parameters

None


Return

This action returns a (number) value.



Made with AIO AMSSpeciaList by Action Plugin Compiler

<<<electricfire05@yahoo.com>>>