ChatMath

Math Calculation in Your Chat!

ChatMath


The ChatMath Plugin is an essential tool for players who need to perform calculations directly within the game chat.

How to Use

How To Use
Just use it in chat, for example: 1 + 1 is { 1 + 1 } it will be changed automatically to 1 + 1 is 2.

Full Tutorial

Here's a complete tutorial using this plugin.

Using Expression

ExpressionDescriptionExample
+Adds two numbers together1 + 1
-Subtracts the second number from the first number1 - 1
*Multiplies two numbers1 * 1
/Divides the first number by the second number1 / 1
^Raises the first number to the power of the second number1 ^ 1

Using Function

FunctionDescriptionExample
sinCalculates the sine of an angle (in radians)sin(5) + 1
cosCalculates the cosine of an angle (in radians)cos(5) + 1
tanCalculates the tangent of an angle (in radians)tan(5) + 1
cotCalculates the cotangent of an angle (in radians)cot(5) + 1
sindCalculates the sine of an angle (in degrees)sind(30) + 1
cosdCalculates the cosine of an angle (in degrees)cosd(30) + 1
tandCalculates the tangent of an angle (in degrees)tand(30) + 1
cotdCalculates the cotangent of an angle (in degrees)cotd(30) + 1
arcsinCalculates the arcsine (inverse sine) of a valuearcsin(0.5) + 1
arccosCalculates the arccosine (inverse cosine) of a valuearccos(0.5) + 1
arctanCalculates the arctangent (inverse tangent) of a valuearctan(1) + 1
arccotCalculates the arccotangent (inverse cotangent) of a valuearccot(1) + 1
expCalculates the exponential function of a value (e^x)exp(2) + 1
logCalculates the natural logarithm (base e) of a valuelog(10) + 1
lnAnother notation for natural logarithmln(10) + 1
lgCalculates the base-10 logarithm of a valuelg(10) + 1
sqrtCalculates the square root of a valuesqrt(25) + 1
sinhCalculates the hyperbolic sine of a valuesinh(5) + 1
coshCalculates the hyperbolic cosine of a valuecosh(5) + 1
tanhCalculates the hyperbolic tangent of a valuetanh(5) + 1
cothCalculates the hyperbolic cotangent of a valuecoth(5) + 1
arsinhCalculates the inverse hyperbolic sine of a valuearsinh(1) + 1
arcoshCalculates the inverse hyperbolic cosine of a valuearcosh(1) + 1
artanhCalculates the inverse hyperbolic tangent of a valueartanh(0.5) + 1
arcothCalculates the inverse hyperbolic cotangent of a valuearcoth(2) + 1
absCalculates the absolute value of a numberabs(-5) + 1
sgnReturns the sign of a number (-1, 0, or 1)sgn(-5) + 1
!Calculates the factorial of a number5! + 1
!!Calculates the double factorial of a number5!! + 1
roundRounds a number to the nearest integerround(5.5) + 1
floorRounds a number down to the nearest integerfloor(5.9) + 1
ceilRounds a number up to the nearest integerceil(5.1) + 1

Using Constant

ConstantDescriptionExample
piRepresents the mathematical constant π (approximately 3.14159)pi * 2
eRepresents the mathematical constant e (approximately 2.71828)e ^ 2
nanRepresents "Not-a-Number", used to denote an undefined or unrepresentable value0 / 0 results in nan
infRepresents infinity, used to denote an infinitely large number1 / 0 results in inf

Note

You can put all expressions, functions and constants together above the example: { 1 + 1 * floor(5.9) + pi }

Todo

  • Toggle Replace Chat
  • Help Command

Additional Notes

Details

Version: 1.0.0

Downloads: 224

Updated: 7/3/2024

Supported API versions: 5.0.0 to 5.27.1

Categories: General, Educational, Chat-Related, Informational

License: MIT

Producers

Collaborator