# Tag Archives: cpp-math

## log2() function in C++ with Examples

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 »

## tgamma() method in C/C++ with Examples

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 »

## fpclassify() method in C/C++ with Examples

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 »

## Greatest Integer Function

Greatest Integer Function [X] indicates an integral part of the real number which is nearest and smaller integer to . It is also known as… Read More »

## C++ Mathematical Functions

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 »

## cauchy_distribution a() in C++ with Examples

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 »

## conj() function in C++ with Examples

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 »

## Program to count number of distinct Squares and Cubes upto N

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 »

## negative_binomial_distribution in C++ with Examples

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 »

## exp2() function in C++ STL

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 »

## ilogb() function in C++ STL

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 »

## logb() function in C++ STL

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 »

## lldiv() function in C++ STL

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 »

## scalbln() function in C++ STL

The scalbln() is a built-in function in C++ STL which takes two arguments and scales x by FLT_RADIX raised to the power n. The function… Read More »

## beta(), betaf() and betal() functions in C++ STL

The beta(), betaf() and betal() are built-in functions in C++ STL that are used to compute the beta functionof two positive real values. The function… Read More »