cd-cm-pro / cmdmath

this a cmdmath

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmdmath

this a cmdmath

arg1: decimal places
arg2: function name
arg3: x
arg4: y

example

cmdmath 5 atan2 10 20
cmdmath 0 sqrt 4

functions

math_functions = {
    "abs": abs,
    "acos": math.acos,
    "acosh": math.acosh,
    "asin": math.asin,
    "asinh": math.asinh,
    "atan": math.atan,
    "atan2": math.atan2,
    "atanh": math.atanh,
    "cbrt": cbrt,
    "ceil": math.ceil,
    "cos": math.cos,
    "cosh": math.cosh,
    "exp": math.exp,
    "expm1": math.expm1,
    "floor": math.floor,
    "hypot": math.hypot,
    "log": math.log,
    "log1p": math.log1p,
    "log2": math.log2,
    "log10": math.log10,
    "max": max,
    "min": min,
    "pow": math.pow,
    "round": round,
    "sin": math.sin,
    "sinh": math.sinh,
    "sqrt": math.sqrt,
    "tan": math.tan,
    "tanh": math.tanh,
    "trunc": math.trunc
}

About

this a cmdmath