FANDOM


Class math is a class that is used to perform basic math functions. It includes methods for square and cubic roots, to perform exponents (can also be used for negative exponents and roots), compare variables, a constant for pi, etc. Beacause all of it's methods are static, people cannot create an object of this type. The methods are inluded below

ConstantsEdit

e = Base of natural logarithems; static and final

pi = Ratio of a circle's circumference to it's diameter; static and final

MethodsEdit

cos(double a) = returns cos of angle; static, gets double a as parameter tan(double a) = returns tan of angle; static, gets double a as parameter

sin(double a) = returns sin of angle; static, gets double a as parameter

sqrt(double a) = returns the square root of a, gets double a as parameter.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.