Skip to Content

Math

Math icon
Arcade Optimized

Arcade.dev LLM tools for doing math

Author:Arcade
Version:1.0.5
Auth:No authentication required
23tools
PyPI VersionPython VersionsWheel StatusDownloadsLicense

Arcade.dev provides a Math toolkit that enables seamless mathematical operations for developers, facilitating complex calculations with ease. This toolkit supports a variety of foundational math functions to enhance applications and streamline computations.

Capabilities

  • Perform basic arithmetic operations (addition, subtraction, multiplication, division)
  • Generate random integers and floats within specified ranges
  • Calculate statistical measures (mean, median, average)
  • Execute advanced functions such as GCD, LCM, and factorial
  • Transform angle measures between degrees and radians

Secrets

  • No secrets are used in the toolkit.

Available tools(23)

23 of 23
Tool nameDescriptionSecrets
Calculate the absolute value of a number
Add two numbers together
Calculate the average (mean) of a list of numbers. Returns "0.0" if the list is empty.
Return the ceiling of a number
Convert an angle from degrees to radians.
Divide two numbers
Compute the factorial of a non-negative integer Returns "1" for "0"
Return the floor of a number
Calculate the greatest common divisor (GCD) of two integers.
Generate a random float between min_value and max_value.
Generate a random integer between min_value and max_value (inclusive).
Calculate the least common multiple (LCM) of two integers. Returns "0" if either integer is 0.
Calculate the logarithm of a number with a given base
Calculate the median of a list of numbers. Returns "0.0" if the list is empty.
Calculate the remainder (modulus) of one number divided by another
Multiply two numbers together
Calculate one number raised to the power of another
Convert an angle from radians to degrees.
Round a number to a specified number of positive digits
Get the square root of a number
Subtract two numbers
Sum all numbers in a list
Sum all numbers from start through end

Selected tools

No tools selected.

Click "Show all tools" to add tools.

Requirements

Select tools to see requirements

#

Math.AbsVal

Calculate the absolute value of a number

Parameters

ParameterTypeReq.Description
astringRequiredThe number as a string

Requirements

No secrets required

Output

Type:stringThe absolute value of the number as a string
#

Math.Add

Add two numbers together

Parameters

ParameterTypeReq.Description
astringRequiredThe first number as a string
bstringRequiredThe second number as a string

Requirements

No secrets required

Output

Type:stringThe sum of the two numbers as a string
#

Math.Avg

Calculate the average (mean) of a list of numbers. Returns "0.0" if the list is empty.

Parameters

ParameterTypeReq.Description
numbersarray<string>RequiredThe list of numbers as strings

Requirements

No secrets required

Output

Type:stringThe average (mean) of the numbers in the list as a string
#

Math.Ceil

Return the ceiling of a number

Parameters

ParameterTypeReq.Description
astringRequiredThe number to round up as a string

Requirements

No secrets required

Output

Type:stringThe smallest integer greater than or equal to the number as a string
#

Math.DegToRad

Convert an angle from degrees to radians.

Parameters

ParameterTypeReq.Description
degreesstringRequiredAngle in degrees as a string

Requirements

No secrets required

Output

Type:stringAngle in radians as a string
#

Math.Divide

Divide two numbers

Parameters

ParameterTypeReq.Description
astringRequiredThe first number as a string
bstringRequiredThe second number as a string

Requirements

No secrets required

Output

Type:stringThe quotient of the two numbers as a string
#

Math.Factorial

Compute the factorial of a non-negative integer Returns "1" for "0"

Parameters

ParameterTypeReq.Description
astringRequiredThe non-negative integer to compute the factorial for as a string

Requirements

No secrets required

Output

Type:stringThe factorial of the number as a string
#

Math.Floor

Return the floor of a number

Parameters

ParameterTypeReq.Description
astringRequiredThe number to round down as a string

Requirements

No secrets required

Output

Type:stringThe largest integer less than or equal to the number as a string
#

Math.Gcd

Calculate the greatest common divisor (GCD) of two integers.

Parameters

ParameterTypeReq.Description
astringRequiredFirst integer as a string
bstringRequiredSecond integer as a string

Requirements

No secrets required

Output

Type:stringThe greatest common divisor of a and b as a string
#

Math.GenerateRandomFloat

Generate a random float between min_value and max_value.

Parameters

ParameterTypeReq.Description
min_valuestringRequiredThe minimum value of the random float as a string
max_valuestringRequiredThe maximum value of the random float as a string
seedstringOptionalThe seed for the random number generator as a string. If None, the current system time is used.

Requirements

No secrets required

Output

Type:stringA random float between min_value and max_value as a string
#

Math.GenerateRandomInt

Generate a random integer between min_value and max_value (inclusive).

Parameters

ParameterTypeReq.Description
min_valuestringRequiredThe minimum value of the random integer as a string
max_valuestringRequiredThe maximum value of the random integer as a string
seedstringOptionalThe seed for the random number generator as a string. If None, the current system time is used.

Requirements

No secrets required

Output

Type:stringA random integer between min_value and max_value as a string
#

Math.Lcm

Calculate the least common multiple (LCM) of two integers. Returns "0" if either integer is 0.

Parameters

ParameterTypeReq.Description
astringRequiredFirst integer as a string
bstringRequiredSecond integer as a string

Requirements

No secrets required

Output

Type:stringThe least common multiple of a and b as a string
#

Math.Log

Calculate the logarithm of a number with a given base

Parameters

ParameterTypeReq.Description
astringRequiredThe number to take the logarithm of as a string
basestringRequiredThe logarithmic base as a string

Requirements

No secrets required

Output

Type:stringThe logarithm of the number with the specified base as a string
#

Math.Median

Calculate the median of a list of numbers. Returns "0.0" if the list is empty.

Parameters

ParameterTypeReq.Description
numbersarray<string>RequiredA list of numbers as strings

Requirements

No secrets required

Output

Type:stringThe median value of the numbers in the list as a string
#

Math.Mod

Calculate the remainder (modulus) of one number divided by another

Parameters

ParameterTypeReq.Description
astringRequiredThe dividend as a string
bstringRequiredThe divisor as a string

Requirements

No secrets required

Output

Type:stringThe remainder after dividing a by b as a string
#

Math.Multiply

Multiply two numbers together

Parameters

ParameterTypeReq.Description
astringRequiredThe first number as a string
bstringRequiredThe second number as a string

Requirements

No secrets required

Output

Type:stringThe product of the two numbers as a string
#

Math.Power

Calculate one number raised to the power of another

Parameters

ParameterTypeReq.Description
astringRequiredThe base number as a string
bstringRequiredThe exponent as a string

Requirements

No secrets required

Output

Type:stringThe result of raising a to the power of b as a string
#

Math.RadToDeg

Convert an angle from radians to degrees.

Parameters

ParameterTypeReq.Description
radiansstringRequiredAngle in radians as a string

Requirements

No secrets required

Output

Type:stringAngle in degrees as a string
#

Math.RoundNum

Round a number to a specified number of positive digits

Parameters

ParameterTypeReq.Description
valuestringRequiredThe number to round as a string
ndigitsstringRequiredThe number of digits after the decimal point as a string

Requirements

No secrets required

Output

Type:stringThe number rounded to the specified number of digits as a string
#

Math.Sqrt

Get the square root of a number

Parameters

ParameterTypeReq.Description
astringRequiredThe number to square root as a string

Requirements

No secrets required

Output

Type:stringThe square root of the number as a string
#

Math.Subtract

Subtract two numbers

Parameters

ParameterTypeReq.Description
astringRequiredThe first number as a string
bstringRequiredThe second number as a string

Requirements

No secrets required

Output

Type:stringThe difference of the two numbers as a string
#

Math.SumList

Sum all numbers in a list

Parameters

ParameterTypeReq.Description
numbersarray<string>RequiredThe list of numbers as strings

Requirements

No secrets required

Output

Type:stringThe sum of the numbers in the list as a string
#

Math.SumRange

Sum all numbers from start through end

Parameters

ParameterTypeReq.Description
startstringRequiredThe start of the range to sum as a string
endstringRequiredThe end of the range to sum as a string

Requirements

No secrets required

Output

Type:stringThe sum of the numbers in the list as a string
Last updated on