The Syntax of sMe is pretty simple & straight forward just like the simple math that you write on paper.
Use operators +,-,*,/ for addition, substraction, multiplication and division respectively. You can use the bunch of functions provided for other operations.
There are also a few constants if you would need them.
As of now,of the functions listed, hex to any other base conversion doesn't work.
Constant - Value - Desc
M_PI - 3.14159265358979323846 - Pi
M_E - 2.7182818284590452354 - e
M_LOG2E - 1.4426950408889634074 - log_2 e
M_LOG10E - 0.43429448190325182765 - log_10 e
M_LN2 - 0.69314718055994530942 - log_e 2
M_LN10 - 2.30258509299404568402 - log_e 10
M_PI_2 - 1.57079632679489661923 - pi/2
M_PI_4 - 0.78539816339744830962 - pi/4
M_1_PI - 0.31830988618379067154 - 1/pi
M_2_PI - 0.63661977236758134308 - 2/pi
M_SQRTPI - 1.77245385090551602729 - sqrt(pi)
M_2_SQRTPI - 1.12837916709551257390 - 2/sqrt(pi)
M_SQRT2 - 1.41421356237309504880 - sqrt(2)
M_SQRT3 - 1.73205080756887729352 - sqrt(3)
M_SQRT1_2 - 0.70710678118654752440 - 1/sqrt(2)
M_LNPI - 1.14472988584940017414 - log_e(pi)
M_EULER - 0.57721566490153286061 - Euler constant
Function - Description
abs(n) - Absolute value
acos(n) - Arc cosine
acosh(n) - Inverse hyperbolic cosine
asin(n) - Arc sine
asinh(n) - Inverse hyperbolic sine
atan2(n) - Arc tangent of two variables
atan(n) - Arc tangent
atanh(n) - Inverse hyperbolic tangent
bindec(b) - Binary to decimal
ceil(n) - Round fractions up
cos(n) - Cosine
cosh(n) - Hyperbolic cosine
decbin(n) - Decimal to binary
dechex(n) - Decimal to hexadecimal
decoct(n) - Decimal to octal
deg2rad(n) - Converts the number in degrees to the radian equivalent
exp(n) - Calculates the exponent of e
expm1(n) - Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero
floor(n) - Round fractions down
fmod(n,k) - Returns the floating point remainder (modulo) of the division of the arguments
hexdec(n) - Hexadecimal to decimal
hypot(x,y) - Calculate the length of the hypotenuse of a right-angle triangle
log10(n) - Base-10 logarithm
log1p(n) - Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero
log(n) - Natural logarithm
max(a,b,c,..) - Find highest value
min(a,b,c,..) - Find lowest value
octdec(n) - Octal to decimal
pow(n,k) - Exponential expression
rad2deg(n) - Converts the radian number to the equivalent number in degrees
rand() - Generate a random integer
round(n) - Rounds a float
sin(n) - Sine
sinh(n) - Hyperbolic sine
sqrt(n) - Square root
tan(n) - Tangent
tanh(n) - Hyperbolic tangent
lcm(a,b,c,..) - Least Common Multiple
gcd(a,b,c,..) - Greatest Common divisor
fact(n) - factorial
nCr(n,r) - combinations
nPr(n,r) - probability
root(n,k) - nth root of k