mathlib for rockstar language
Accepting PRs for more idiomatic or functions not done yet.
Functions needed:
Thanks to @DavideFauri for developing most of this library.
This is math lib for https://github.com/dylanbeattie/rockstar
Currently Implemented:
Discrete Mathematics
Factorial taking Integer -> Integer
Mod taking Integer, Integer -> Integer
GCD taking Integer, Integer -> Integer
Geometry
DegToRad taking Number -> Number
RadToDeg taking Number -> Number
Trigonometry
Sine taking Number -> Number
Cos taking Number -> Number
Tan taking Number -> Number
Arcsin taking Number -> Number
Arccos taking Number -> Number
Arctan taking Number -> Number
Hyperbolic Trigonometry
Sinh taking Number -> Number
Cosh taking Number -> Number
Tanh taking Number -> Number
Arcsinh taking Number -> Number
Arccosh taking Number -> Number
Arctanh taking Number -> Number
Binary
DecToBin taking Integer -> String
Misc
Absolute_Value taking Number -> Number
Floor taking Number -> Integer
Ceil taking Number -> Integer
Power taking Number, Number -> Number
PowerIntegerExponent
PowerRealExponent
Exp taking Number -> Number
LN taking Number -> Number
LOG taking Number, Number -> Number
Square_Root taking Number -> Number
IsClose taking Number, Number -> Number