Zerabot Math

Back to Commands

Math equations

math + x y

Returns x + y

math – x y

Returns x – y

math * x y

Returns x * y

math / x y

Returns x / y

math sqrt x

Returns the square root of x

math pow x y

Returns x to the power of y

math hypot x y

Returns the hypotenuse of a triangle with legs x and y

math hypotleg x y

Returns leg z from leg y and hypotenuse x

math sin x

Returns the sine of x

math cos x

Returns the cosine of x

math tan x

Returns the tangent of x

math log x y

Returns the logarithm of x with base y

math picks x y

or pickstheorem or pick

Returns Pick’s theorem with x interior dots and y exterior dots

math tritype x y z

or rt or isrighttriangle or rightt

Returns what triangle type a shape is with sides x y and z (z = hypotenuse) (based off the pythagorean theorem)

math quadratic x y z

This command is in progress.