 CopperSpice API  1.7.2
Math Functions

The CsCore/qmath.h header provides various math functions. More...

## Functions

qreal qAcos (qreal v)

qreal qAsin (qreal v)

qreal qAtan (qreal v)

qreal qAtan2 (qreal y, qreal x)

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)

## Detailed Description

In order to use the following functions include <qmath.h>.

## Function Documentation

 qreal qAcos ( qreal v )
inline

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

qAtan(), qAsin(), and qCos().
 qreal qAsin ( qreal v )
inline

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

qSin(), qAtan(), and qAcos().
 qreal qAtan ( qreal v )
inline

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

<qTan(), qAcos(), and qAsin().
 qreal qAtan2 ( qreal y, qreal x )
inline

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

qAtan().
 int qCeil ( qreal v )
inline

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.

qFloor().
 qreal qCos ( qreal v )
inline

Returns the cosine of an angle v in radians.

qSin() and qTan().
 qreal qExp ( qreal v )
inline

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

qLn().
 int qFloor ( qreal v )
inline

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.

qCeil().
 qreal qLn ( qreal v )
inline

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

qExp().
 qreal qPow ( qreal x, qreal y )
inline

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

qSqrt.
 qreal qSin ( qreal v )
inline

Returns the sine of the angle v in radians.

qCos() and qTan().
 qreal qSqrt ( qreal v )
inline

Returns the square root of v. This function returns a NaN if v is a negative number.