Common
Function (Operation) | Class | Alternative input | Remarks |
---|---|---|---|
abs(x) | Abs.cs | ||
x + y | Add.cs | add(x, y) | |
ceil(x) | Ceil.cs | ||
name := value | Assign.cs | f := (x) => sin(x), assign(name, value) | |
deriv(f*, var, point) | Derivate.cs | derivative(f*, var, point) | * - is required parameter. Defaults: var = "x", point = null. |
x / y | Div.cs | div(x, y) | |
exp(x) | Exp.cs | e^x | |
x! | Fact.cs | fact(x) | |
floor(x) | Floor.cs | ||
frac(x) | Frac.cs | ||
gcd(x, y) | GCD.cs | gcf(x, y); hcf(x, y) | Also you can use more than 2 parameters. Example: gcd(4, 8, 16) |
lb(x) | Lb.cs | log2(x) | |
lcm(x, y) | LCM.cs | scm(x, y) | Also you can use more than 2 parameters. Example: lcm(4, 8, 16) |
lg(x) | Lg.cs | ||
ln(x) | Ln.cs | ||
log(base, x) | Log.cs | ||
x % y | Mod.cs | mod(x, y) | |
x * y | Mul.cs | mul(x, y) | |
x ^ y | Pow.cs | pow(x, y) | |
root(x) | Root.cs | ||
round(x, y) | Round.cs | y - is optional | |
simplify(exp) | Simplify.cs | ||
sqrt(x) | Sqrt.cs | ||
trunc(x) | Trunc.cs | truncate(x) | |
x - y | Sub.cs | sub(x, y) | |
-x | UnaryMinus.cs | ||
unassign(name) | Unassign.cs | ||
sign(x) | Sign.cs | ||
tobin(x) | ToBin.cs | ||
tooct(x) | ToOct.cs | ||
tohex(x) | ToHex.cs | ||
tonumber(x) | ToNumber.cs | converts any unit to a number | |
a // b | Rational.cs |
Angle
Function | Class | Alternative input |
---|---|---|
x 'rad' | AngleValue.cs | x 'radian', x 'radians' |
x 'deg' | AngleValue.cs | x 'degree', x 'degrees' |
x 'grad' | AngleValue.cs | x 'gradian', x 'gradians' |
todeg(x) | ToDegree.cs | todegree(x) |
torad(x) | ToRadian.cs | toradian(x) |
tograd(x) | ToGradian.cs | togradian(x) |
Trigonometric and inverse
Function | Class | Alternative input |
---|---|---|
sin(x) | Sin.cs | |
cos(x) | Cos.cs | |
tan(x) | Tan.cs | tg(x) |
cot(x) | Cot.cs | ctg(x) |
sec(x) | Sec.cs | |
csc(x) | Csc.cs | cosec(x) |
arcsin(x) | Arcsin.cs | |
arccos(x) | Arccos.cs | |
arctan(x) | Arctan.cs | arctg(x) |
arccot(x) | Arccot.cs | arcctg(x) |
arcsec(x) | Arcsec.cs | |
arccsc(x) | Arccsc.cs | arccosec(x) |
Hyperbolic and inverse
Function | Class | Alternative input |
---|---|---|
sinh(x) | Sinh.cs | sh(x) |
cosh(x) | Cosh.cs | ch(x) |
tanh(x) | Tanh.cs | th(x) |
coth(x) | Coth.cs | cth(x) |
sech(x) | Sech.cs | |
csch(x) | Csch.cs | |
arsinh(x) | Arsinh.cs | arsh(x) |
arcosh(x) | Arcosh.cs | arch(x) |
artanh(x) | Artanh.cs | arth(x) |
arcoth(x) | Arcoth.cs | arcth(x) |
arsech(x) | Arsech.cs | |
arcsch(x) | Arcsch.cs |
Complex Numbers
Function (Operation) | Class | Alternative input |
---|---|---|
a + bi | ComplexNumber.cs | ∠a + b° |
conjugate(x) | Conjugate.cs | |
im(x) | Im.cs | imaginary(x) |
phase(x) | Phase.cs | |
re(x) | Re.cs | real(x) |
reciprocal(x) | Reciprocal.cs | |
tocomplex(x) | ToComplex.cs |
Matrix
Function | Class | Alternative input |
---|---|---|
{exp, exp} | Vector.cs | |
{{exp, exp}, {exp, exp}} | Matrix.cs | |
determinant(matrix) | Determinant.cs | det(matrix) |
transpose(matrix/vector) | Transpose.cs | |
inverse(matrix) | Inverse.cs |
Statistical
Function (Operation) | Class | Alternative input |
---|---|---|
avg(params...) | Avg.cs | avg({vector}) |
min(params...) | Min.cs | min({vector}) |
max(params...) | Max.cs | max({vector}) |
product(params...) | Product.cs | product({vector}) |
stdev(params...) | Stdev.cs | stdev({vector}) |
stdevp(params...) | Stdevp.cs | stdevp({vector}) |
sum(params...) | Sum.cs | sum({vector}) |
var(params...) | Var.cs | var({vector}) |
varp(params...) | Varp.cs | varp({vector}) |
Bitwise And Logical
Function (Operation) | Class | Alternative input |
---|---|---|
not(x) | Not.cs | ~x |
x and y | And.cs | x & y |
x or y | Or.cs | x | y |
x xor y | XOr.cs | |
x eq y | Equality.cs | |
x impl y | Implication.cs | |
x nand y | NAnd.cs | |
x nor y | NOr.cs |
Programming
Function (Operation) | Class | Alternative input |
---|---|---|
+= | AddAssign.cs | |
&& | ConditionalAnd.cs | |
-- | Dec.cs | |
/= | DivAssign.cs | |
== | Equal.cs | |
for(body, init, cond, iter) | For.cs | |
>= | GreaterOrEqual.cs | |
> | GreaterThan.cs | |
if(cond, than, else) | If.cs | if(cond, than) |
++ | Inc.cs | |
<= | LessOrEqual.cs | |
< | LessThan.cs | |
*= | MulAssign.cs | |
!= | NotEqual.cs | |
|| | ConditionalOr.cs | |
-= | SubAssign.cs | |
while(body, cond) | While.cs | |
x << y | LeftShift.cs | |
x >> y | RightShift.cs | |
x <<= y | LeftShiftAssign.cs | |
x >>= y | RightShiftAssign.cs |
Units
Name | Class | Example |
---|---|---|
length | LengthUnits/* | nm , µm , mm , cm , m , km , in , ft , yd , mi , nmi , chains , rods , au , ly , pc |
area | AreaUnits/* | 1 mm^2 , 1 cm^2 , 1 m^2 , 1 km^2 , 1 ha , 1 in^2 , 1 ft^2 , 1 yd^2 , 1 ac^2 , 1 mi^2 |
volume | VolumeUnits/* | cm³ , m³ , l , in³ , gal , ft³ , yd³ |
mass | MassUnits/* | mg , g , kg , lb , t , oz |
power | PowerUnits/* | W , kW , hp |
time | TimeUnits/* | μs , ms , s , min , hr , days , weeks , years , ns |
temperature | TemperatureUnits/* | °C , °F , K |
convert | Convert.cs | convert(10km, 'm') |
Constants
Name | Value | Alternative name |
---|---|---|
pi | Math.Pi | π |
e | Math.E | exp(x) |
i | Complex.ImaginaryOne |