# Tag Archives: cpp-math

Given an array arr[] and an integer K, the task is to find the absolute difference between the ceil of the total sum of the… Read More
What is arc tangent? The arctangent is the inverse of the tangent function. It returns the angle whose tangent is the given number. catan() is… Read More
The function log2() of cmath header file in C++ is used to find the logarithmic value with base 2 of the passed argument. Syntax: log2(x)… Read More
The tgamma() function is defined in header math.h header in C and cmath library in C++. This function is used to compute the gamma function… Read More
The fpclassify() function are defined in header math.h header in C and cmath library in C++. This function is used to get the value of… Read More
The greatest Integer Function [X] indicates an integral part of the real number which is the nearest and smaller integer to . It is also known as… Read More
C++ being superset of C, supports large number of useful mathematical functions. These functions are available in standard C++ and C to support various mathematical… Read More
The cauchy_distribution::a() function is an inbuilt function in C++ STL which is used to returns the distribution parameter associated with Cauchy distribution. The class cauchy_distribution… Read More
The conj() function is defined in the complex header file. This function is used to find the conjugate of the complex number z. If we… Read More
Given a number N, the task is to find No. of perfect Squares and perfect Cubes from 1 to a given integer, N ( Both… Read More
This function is defined in header randomRandom. Negative binomial distribution is Random number distribution that produces integers according to a negative binomial discrete distribution (also… Read More
The exp2() is a builtin function in C++ STL that computes the base-2 exponential function of a given number. It can also be written as… Read More
The ilogb(x) function in C++ STL returns the integral part of the logarithm of |x|, by using the FLT_RADIX as base for the logarithm. In… Read More
The logb() is a builtin function in C++ STL which returns the logarithm of |x|, using FLT_RADIX as base for the logarithm. In general, the… Read More
The lldiv() is a builtin function in C++ STL which gives us the quotient and remainder of the division of two numbers. Syntax: lldiv(n, d)… Read More