Calculator by XpertEdu

Back to Main Page

Result: 14

Operators

Arithmetic: +, -, *, /, % (remainder), ^ (exponentiation)

Comparison: ==, !=, >, <, >=, <=

Allowed Functions and Usage

FunctionDescriptionFunctionDescription
hcf(...) or gcd(...)Greatest common divisor (multiple arguments)lcm(...)Least common multiple (multiple arguments)
factors(n)Finds prime factors of nsqrt(x)Square root of x
abs(x)Absolute value of xfloor(x)Rounds x down to the nearest integer
ceil(x)Rounds x up to the nearest integerround(x, d)Rounds x to d decimal places
pi()Returns the value of πexp(x)Exponential function ex
sin(x)Sine of x (x in radians)cos(x)Cosine of x (x in radians)
tan(x)Tangent of x (x in radians)asin(x)Inverse sine (arcsin) of x
acos(x)Inverse cosine (arccos) of xatan(x)Inverse tangent (arctan) of x
atan2(y, x)Inverse tangent of y/x considering quadrantssinh(x)Hyperbolic sine of x
cosh(x)Hyperbolic cosine of xtanh(x)Hyperbolic tangent of x
asinh(x)Inverse hyperbolic sineacosh(x)Inverse hyperbolic cosine
atanh(x)Inverse hyperbolic tangentlog(x)Natural logarithm (base e) of x
log10(x)Base-10 logarithm of xrational(a, b)Simplify fraction a/b
is_prime(x)Check whether x is a prime numbernpv(rate, [cashFlows])Net Present Value using a discount rate and array of cash flows
irr([cashFlows])Internal Rate of Return for a series of cash flows (array format)mirr([values], financeRate, reinvestRate)Modified IRR using array of values, finance rate, and reinvestment rate
to_rational(x, y=1000) - Converts x to a rational number with a maximum denominator y. Example: to_rational(0.143, 100) = 1/7.
Σ(start, end, term) or sum(start, end, term) - Summation from start to end using i as the variable in the term. Example: Σ(1, 5, i^2). (Max range: 100,000)
sum_prime(a, b) - Sum of primes from the a-th prime to the b-th prime. (Max a, b: 10,000)