Skip to content

Mathematical Functions

High-performance mathematical operations and transcendental functions.

A

  • function compiletime::abs(T) Compile-time absolute value.
  • function acos(const T1 &) Returns the arc cosine of x. The returned angle is in the range 0 through \(\pi\) .
  • function asin(const T1 &) Returns the arc sine of x. The returned angle is in the range \(-\pi/2\) through \(\pi/2\) .
  • function atan2(const T1 &, const T2 &) Returns the arc tangent of y/x using the signs of both arguments to determine the correct quadrant. The result is in the range \([-\pi, \pi]\) .
  • function atan2deg(const T1 &, const T2 &) Returns the arc tangent of y/x (expressed in degrees) using the signs of both arguments to determine the correct quadrant. The result is in the range [-180, 180].
  • function atan(const T1 &) Returns the arc tangent of x. The returned angle is in the range \(-\pi/2\) through \(\pi/2\) .
  • function atandeg(const T1 &) Returns the arc tangent of x, expressed in degrees. The returned angle is in the range -90 through 90.

C

E

F

  • function factorial_approx(const T1 &) Returns the approximate factorial of an argument.
  • variable factorial_table Lookup table of exact factorial values for 0 <= n <= 20.
  • function factorial(int) Returns the exact factorial of an argument.
  • function fastcos(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric cosine of x.
  • function fastcosdeg(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric cosine of the angle expressed in degrees.
  • function fastsin(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric sine of x.
  • function fastsindeg(const T1 &) Returns a fast (lower-precision) approximation of the trigonometric sine of the angle expressed in degrees.

G

L

M

  • function modzerobessel(const T1 &) Computes the modified zeroth-order Bessel function of the first kind. This function calculates I₀(x), the modified Bessel function of the first kind with order zero, for the given input value.
  • function compiletime::mulsign(T, T) Compile-time multiplication by sign of a second value.

N

P

R

S

T

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.