scamp_extensions.utilities.math
Subpackage containing mathematical utility functions (many of which are imported from scamp.utilities
.
Classes
|
A warping function that uses an appropriately scaled arctan to warp values from the input range to the output range. |
Functions
|
Uses an appropriately scaled arctan function to warp values from the input range to the output range. |
|
Return lowest common multiple. |
|
Rescales the given value or values so that they fall within the given output range. |
|
Wraps the input x into the given range, either jumping back to the other side of the range at the boundaries, or if the mirror parameter is set, reflecting at the boundaries. |
|
Checks if x is a multiple of y. |
|
Returns a list of the prime factors of n. |
|
Returns the integer power of y that is closest to x (above or below). |
|
Returns the multiple of factor that is closest below x. |
|
Greatest Common Divisor. |
|
Returns the multiple of factor that is closest to x (above or below). |
|
Returns the multiple of factor that is closest above x. |
|
Checks if x is an integer (including negative) power of y |
|
Returns the integer power of y that is closest above x. |
|
Returns the integer power of y that is closest below x. |
|
Checks if a is a prime number. |