finesse.cymath.math module

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.

finesse.cymath.math.degrees(double x) double
finesse.cymath.math.factorial(int n) double
finesse.cymath.math.float_eq(double x, double y) bool
finesse.cymath.math.hermite(int n, double x) double
finesse.cymath.math.msign(int n) double
finesse.cymath.math.nmax(int n, int m) int
finesse.cymath.math.nmin(int n, int m) int
finesse.cymath.math.radians(double x) double
finesse.cymath.math.sgn(double x) int
finesse.cymath.math.sqrt_factorial(int n) double