# Tag Archives: cpp-math

## ldexp() in C++

The ldexp() function takes two arguments a and b and returns the product of a and 2 raised to the power of b i.e., a… Read More »

## remquo() in C++

This function is used to return the remainder(modulus) of 2 floating point numbers mentioned in its arguments and also stores the quotient to the pointer… Read More »

## isgreater() in C/C++

In C++, isgreater() is a predefined function used for mathematical calculations. math.h is the header file required for various mathematical functions. isgreater() function used to… Read More »

## modf() in C/C++

In C++, modf() is a predefined function used for mathematical calculations. math.h is the header file required for various mathematical functions. All the functions available… Read More »

## isgreaterequal() in C/C++

In C++, isgreaterequal() is a predefined function used for mathematical calculations. math.h is the header file required for various mathematical functions. isgreaterequal() function used to… Read More »

## fmax() and fmin() in C++

fmax() and fmin() functions are defined in cmath header file. fmax() function: The syntax of this function is: double fmax (double x, double y); float… Read More »

## Number of ordered points pair satisfying line equation

Given an array of n integers, slope of a line i. e., m and the intercept of the line i.e c, Count the number of… Read More »

## fabs() in C++

The fabs() function returns the absolute value of the argument. Mathematically |a|. If a is value given in the argument. Syntax: double fabs(double a); float… Read More »

## asin() and atan() functions in C/C++ with Example

In C++, asin() and atan() is a predefined function used for mathematical calculations. math.h is the header file required for various mathematical functions. All the… Read More »

## std::cbrt() in C++

The std::cbrt() is an inbuilt function in C++ STL which is used to calculate the cube root of number. It accepts a number as argument… Read More »

## sqrt, sqrtl and sqrtf in C++

The cmath header defines two more inbuilt functions for calculating square root of a number (apart from sqrt which takes double as an argument) which… Read More »

## <numeric> library in C++ STL

Common mathematical functions std::fabs: This function returns the absolute value. std::sqrt: This function returns the square root std::sin: This function returns the sine measured in… Read More »

## trunc() , truncf() , truncl() in C language

All three functions are used to remove digits after decimal point and return the modified decimal number. trunc() : Truncates a double value after the… Read More »

## C Library math.h functions

The math.h header defines various mathematical functions and one macro. All the functions available in this library take double as an argument and return double… Read More »

## erf | Error functions using cmath in C++

In mathematics, the error function (also called the Gauss error function) is a special function (non-elementary) of sigmoid shape that occurs in probability, statistics, and… Read More »