lazy_math
Module¶
Math modules “decorated” and complemented to work elementwise when needed
Summary of module contents:
Name | Description |
---|---|
absolute | Return the absolute value of the argument. |
pi | float(x) -> floating point number |
e | float(x) -> floating point number |
cexp | Return the exponential value e**z. |
ln | <function log at 0x7fb6b9f57620> |
log | <function log at 0x7fb6b9f57620> |
log1p | <function log1p at 0x7fb6b9f57730> |
log10 | <function log10 at 0x7fb6b9f512f0> |
log2 | <function log2 at 0x7fb6b9f577b8> |
factorial | Factorial function that works with really big numbers. |
dB10 | Convert a gain value to dB, from a squared amplitude value to a power gain. |
dB20 | Convert a gain value to dB, from an amplitude value to a power gain. |
inf | float(x) -> floating point number |
nan | float(x) -> floating point number |
phase | Return argument, also known as the phase angle, of a complex. |
sign | Signal of x : 1 if positive, -1 if negative, 0 otherwise. |
acos | acos(x) |
acosh | acosh(x) |
asin | asin(x) |
asinh | asinh(x) |
atan | atan(x) |
atanh | atanh(x) |
ceil | ceil(x) |
cos | cos(x) |
cosh | cosh(x) |
degrees | degrees(x) |
erf | erf(x) |
erfc | erfc(x) |
exp | exp(x) |
expm1 | expm1(x) |
fabs | fabs(x) |
floor | floor(x) |
frexp | frexp(x) |
gamma | gamma(x) |
isinf | isinf(x) -> bool |
isnan | isnan(x) -> bool |
lgamma | lgamma(x) |
modf | modf(x) |
radians | radians(x) |
sin | sin(x) |
sinh | sinh(x) |
sqrt | sqrt(x) |
tan | tan(x) |
tanh | tanh(x) |
trunc | trunc(x:Real) -> Integral |
-
absolute
()¶ Return the absolute value of the argument.
-
cexp
()¶ Return the exponential value e**z.
-
ln
(x, base=None)¶
-
phase
()¶ Return argument, also known as the phase angle, of a complex.
-
acos
(x)¶ Return the arc cosine (measured in radians) of x.
-
acosh
(x)¶ Return the inverse hyperbolic cosine of x.
-
asin
(x)¶ Return the arc sine (measured in radians) of x.
-
asinh
(x)¶ Return the inverse hyperbolic sine of x.
-
atan
(x)¶ Return the arc tangent (measured in radians) of x.
-
atanh
(x)¶ Return the inverse hyperbolic tangent of x.
-
ceil
(x)¶ Return the ceiling of x as an Integral. This is the smallest integer >= x.
-
cos
(x)¶ Return the cosine of x (measured in radians).
-
cosh
(x)¶ Return the hyperbolic cosine of x.
-
degrees
(x)¶ Convert angle x from radians to degrees.
-
erf
(x)¶ Error function at x.
-
erfc
(x)¶ Complementary error function at x.
-
exp
(x)¶ Return e raised to the power of x.
-
expm1
(x)¶ Return exp(x)-1. This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.
-
fabs
(x)¶ Return the absolute value of the float x.
-
floor
(x)¶ Return the floor of x as an Integral. This is the largest integer <= x.
-
frexp
(x)¶ Return the mantissa and exponent of x, as pair (m, e). m is a float and e is an int, such that x = m * 2.**e. If x is 0, m and e are both 0. Else 0.5 <= abs(m) < 1.0.
-
gamma
(x)¶ Gamma function at x.
-
isinf
(x) → bool¶ Return True if x is a positive or negative infinity, and False otherwise.
-
isnan
(x) → bool¶ Return True if x is a NaN (not a number), and False otherwise.
-
lgamma
(x)¶ Natural logarithm of absolute value of Gamma function at x.
-
modf
(x)¶ Return the fractional and integer parts of x. Both results carry the sign of x and are floats.
-
radians
(x)¶ Convert angle x from degrees to radians.
-
sin
(x)¶ Return the sine of x (measured in radians).
-
sinh
(x)¶ Return the hyperbolic sine of x.
-
sqrt
(x)¶ Return the square root of x.
-
tan
(x)¶ Return the tangent of x (measured in radians).
-
tanh
(x)¶ Return the hyperbolic tangent of x.
-
trunc
(x:Real) → Integral¶ Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic method.