Terminal Calculator Functions

Function Syntax Description
Basic Arithmetic 2 + 3, 5 * 4, etc. Supports +, -, *, /, and % (modulus)
Summation Sum(5) Sum of integers from 1 to n
Sum of Squares SumSq(4) Sum of squares from 1 to n
Sum of Cubes SumCube(3) Sum of cubes from 1 to n
Sum of Exponentials SumExp(2) Sum of e^n from 0 to n
Sum of Factorials SumFact(3) Sum of factorials from 1 to n
Factorial fact(5) Factorial of n (n!)
Permutations P(5,2) Number of permutations (nPr)
Combinations C(5,2) Number of combinations (nCr)
Trigonometric sin(1.57), cos(pi), etc. sin, cos, tan, sec, csc, cot (rad or deg mode)
Inverse Trigonometric asin(0.5), etc. asin, acos, atan, asec, acsc, acot
Hyperbolic sinh(1), etc. sinh, cosh, tanh, sech, csch, coth
Logarithms ln(2), log(2,8) Natural log (ln) and general log (base, value)
Roots sqrt(16), cbrt(8), nrt(3,27) Square root, cube root, nth root
Percentage pct(100,20) Percentage of a value
Constants pi, e Mathematical constants π and e
Angle Mode deg, rad Switch between degrees and radians