Hello,
Since the creation of the YC, I have this little thing in stock and I know the Math column is limited.
The idea is to create a literal mathematical formula and convert it to a number
Angle calculations are in radians or degrees.
Personal correction: mod for modulo
Addition: sum (x, y, …)
/***************************************************************************
* Calculation of a literary mathematical formula.
*
* Arithmetic operator (+ - / *)
* -----------------------------
* a % b = integer remainder of a division
* a ** b = power
* a % b = modulo !!! but use the correction : mod(a, b)
*
* Binary operator
* ---------------
* a & b = AND
* a AND b = AND
* a | b = OR
* a OR b = OR
* ~ a = NOT
* NOT(a) = ~ a (not)
* a << b = Binary shift to the left
* a >> b = Binary shift to the right
* a >>> b = Binary shift to the right when padding with zeros
*
* Math operator
* -------------
* abs(x), acos(x), acosh(x), asin(x), asinh(x), atan(x), atanh(x), atan2(y, x),
* cbrt(x), ceil(x), clz32(x), cos(x),
* exp(x), expml(x),
* floor(x), fround(x),
* hypot(x, y, ...),
* imul(x,y)
* log(x), loglp(x), log10(x), log2(x),
* max(x, y, ...), min(x, y, ...),
* pow(x, y), pi
* random(), round(x),
* sign(x), sin(x), sinh(x), sqrt(x),
* tan(x), tanh(x), trunc(x)
*
* Specific characters
* -------------------
* √(a) = Square root
* a ^ b = power
*
* Add
* ---
* mod(x, y) = x modulo y (correction)
* sum(x, y, ...) = Sum
*
* Multiple variables
* ------------------
* !!!!!!!!!!! attention: the variables are not reset
* a = 1 + 1; b = 50 * 2; a + b
*
* Restriction
* -----------
* You must not use [] or {} as a parenthesis
*
*****************************************************************************/
link for YC:
https://Math.manun2.repl.co
Source: