polymerist.maths.fractions.ratios
For representing rational numbers, and more general ratios
Attributes
Classes
For representing fractional ratios between two objects |
|
For representing ratios of integers |
Functions
|
Returns the sign and magnitude of a numeric-like value |
Module Contents
- polymerist.maths.fractions.ratios.N
- polymerist.maths.fractions.ratios.sgnmag(num: N) tuple[bool, N][source]
Returns the sign and magnitude of a numeric-like value
- class polymerist.maths.fractions.ratios.Ratio[source]
For representing fractional ratios between two objects
- num: Any
- denom: Any