Long division in any bases.
Bases: object
Methods for division in arbitrary bases.
Division of natural numbers.
Parameters: |
|
---|---|
Returns: | the result |
Return type: | tuple of list of int * list of int * list of int * int |
Raises ConvertError: | |
on invalid values |
The last value in the result indicates the relationship of the result to the actual value. If 0, it is the same, if 1, greater, if -1, less.
Complexity: Uncalculated
Find divisor and dividend that yield component parts.
Parameters: |
|
---|---|
Returns: | divisor and dividend in lowest terms |
Return type: | tuple of list of int * list of int |
Complexity: O(len(non_repeating_part + repeating_part + integer_part))