Help

Introduction

We all have a pre-installed calculator app on our mobiles and our computers. They provide us with the basic and some advanced operations. For most people, that's more than enough. But for me, as a Mathematics student, that wasn't. Hence, I started developing an app that provides all the stuff I wanted. That's XCalc.

XCalc provides you with additional functions that a pre-installed doesn't provide. You can learn about the functions that XCalc support below in this document.

Functions

These functions are the essence of XCalc. They offer some extra functionalities, which the pre-installed calculator apps don’t have.

factorial

Finds the n-th factorial

usage
factorial(5)120

factors

Finds all the factors of the given number

usage
factors(30)[8] 1, 2, 3, 5, 6, 10, 15, 30

fibonacci

Finds n-th term in the Fibonacci sequence

usage
fibonacci(4)3

gcd

Finds the gcd (greatest common divider) of the given list of numbers

usage
gcd(100, 30)10

isPrime

Checks if the given number is a prime number

usage
isPrime(100)false

lcm

Finds the lcm (least common factor) of the given list of numbers

usage
lcm(2, 3, 5)30

nCk

Finds the binomial coefficient denoted by (n k). That means, it finds the coefficient of x^k term in the expansion of (1 + x)^n

usage
nCk(2, 1)2

nPk

Finds the total number of arrangements of k items from n objects

usage
nPk(4, 2)12

power

Takes input as (x,n) and returns x^n

usage
power(2,5)32

primeFactorize

Finds the prime factorization of the given number

usage
primeFactorize(24)2³ x 3¹

ratio

Finds the simple ratio among the given list of numbers

usage
ratio(3, 6, 18)1 : 2 : 6