finesse.cymath.math

Standard mathematical functions for non-complex calculations.

Most of the standard functions of the C "math.h" header are exposed at a C level via this module. Refer to the Common Mathematical Functions C reference for the names, arguments and further details on these functions. One can cimport such functions in the same way as cimporting any other C exposed Cython function. For example:

from finesse.cymath.math cimport sin

will cimport the sin function for use on double data types in another Cython extension.

Functions

factorial(int n)

hermite(int n, double x)

sqrt_factorial(int n)