Math Functions in C++
Math Functions in C++
Function Description
atan2(y, x) Returns the angle theta from the conversion of rectangular coordina
coordinates (r, theta)
copysign(x, y) Returns the first floating point x with the sign of the second floating
Math Functions
lgamma(x) Returns the logarithm of the absolute value of the gamma function a
llrint(x) Rounds x to a nearby integer and returns the result as a long long in
llround(x) Rounds x to the nearest integer and returns the result as a long long
lrint(x) Rounds x to a nearby integer and returns the result as a long intege
lround(x) Rounds x to the nearest integer and returns the result as a long inte
modf(x, y) Returns the decimal part of x and writes the integer part to the mem
remquo(x, y, z) Calculates x/y rounded to the nearest integer, writes the result to th
z and returns the remainder.