Skip to content
JavaGamesJAR edited this page Dec 17, 2020 · 5 revisions

Welcome to the MyMath wiki!

MyMath is a brand new library which will help you to code!

MyMath.plus(double, double)

Probably, this method isn't very useful, you can easily use double+double, but...
P.S. If you have ints you'll have to write MyMath.plus(Double.parseDouble(YourInt), Double.parseDouble(YourInt))

MyMath.minus(double, double)

As useful as MyMath.plus, but instead of double+double, it does double-double

MyMath.times(double, double) & MyMath.div(double, double)

As useful as .plus & .minus, but .times=* & .div=/


Now we're done with the most boring

MyMath.root(double, double)

Calculates root of n power. Easy!

MyMath.pow(double, double)

Calculates the result of base and power.

MyMath.log(double)

Calculates the log!

MyMath.makePow(double, double)

With logs calculates the power!

MyMath.fact(double)

Calculates the !x.

MyMath.rowsum(double)

Calculates the sum of a row

MyMath.sin,cos,tan,cot, sec, cosec(double)

Come on! It's obvious!

MyMath.mod,floor,ceil(double)

Calculates module, floor & ceil of number

MyMath.minplu(double)

Changes minus to plus & back

MyMath.left(double, double)

Calculates what left after division

MyMath.round(double)

Rounds the number

MyMath.random(double, double)

Calculates random number between 2 numbers (double min, double max)

MyMath.toBin, .toHex, .toOct, .BinToDec, .HexToDec, .OctToDec

Converts Bin to Dec, Dec to Bin, Dec to Oct etc

MyMath.fraction(double num, int downOrUp)

Converts a number to a fraction. If downOrUp = 0 you'll get down, if = 1, you'll get up

MyMath.nonDecOperations(String num1, String num2, int System)

Does operations with non-dec numbers (you have to type the System (2 bin, 8 octo, 16 hex))

MyMath.e

The e number (2.7182818284590452353602874713526)

MyMath.pi

The pi number (3.141592653589793238462643383279)