Qt Reference Documentation

# <QtCore/qmath.h> - Math Functions

The <QtCore/qmath.h> header provides various math functions. More...

## Functions

 qreal qAcos ( qreal v ) qreal qAsin ( qreal v ) qreal qAtan2 ( qreal y, qreal x ) qreal qAtan ( qreal v ) int qCeil ( qreal v ) qreal qCos ( qreal v ) qreal qExp ( qreal v ) int qFloor ( qreal v ) qreal qLn ( qreal v ) qreal qPow ( qreal x, qreal y ) qreal qSin ( qreal v ) qreal qSqrt ( qreal v ) qreal qTan ( qreal v )

## Function Documentation

### qrealqAcos ( qrealv )

Returns the arccosine of v as an angle in radians. Arccosine is the inverse operation of cosine.

### qrealqAsin ( qrealv )

Returns the arcsine of v as an angle in radians. Arcsine is the inverse operation of sine.

### qrealqAtan2 ( qrealy, qrealx )

Returns the arctangent of a point specified by the coordinates y and x. This function will return the angle (argument) of that point.

### qrealqAtan ( qrealv )

Returns the arctangent of v as an angle in radians. Arctangent is the inverse operation of tangent.

### intqCeil ( qrealv )

Return the ceiling of the value v.

The ceiling is the smallest integer that is not less than v. For example, if v is 41.2, then the ceiling is 42.

### qrealqCos ( qrealv )

Returns the cosine of an angle v in radians.

### qrealqExp ( qrealv )

Returns the exponential function of e to the power of v.

### intqFloor ( qrealv )

Return the floor of the value v.

The floor is the largest integer that is not greater than v. For example, if v is 41.2, then the floor is 41.

### qrealqLn ( qrealv )

Returns the natural logarithm of v. Natural logarithm uses base e.

### qrealqPow ( qrealx, qrealy )

Returns the value of x raised to the power of y. That is, x is the base and y is the exponent.

### qrealqSin ( qrealv )

Returns the sine of the angle v in radians.