Science & Education › Parti
thumb_up Follow me on GitHub to get notifications about my projects (like Fossdroid Core), thanks! close


Help with partitioning into fractional parts (compute lcm).
Version: 1.0.0
Added: 03-07-2024
Updated: 03-07-2024

Parts are usually specified in the form of fractions as divident / divisor.
With different parts using different divisors it is difficult to compare the sizes of the parts.
The main gist of Parti is to determine the least common multiple (lcm) of all different divisors.
(The different parts can be expressed using the lcm as common divisor making the parts easily comparable.)

Divisors are represented and processed as BigInts in order to provide exact results.
(BigInts are designed to store whole values of arbitrary size, as long as enough memory is available.)

General Usage:

  • After entering a divisor in the central editor widget
    it can be added / removed with the button to the right of the input field.
    The list of divisors in the bottom section is changed accordingly.
    Also, lcm and gcd in the top section are updated to reflect the new list of divisors.

  • Tapping a value in the list puts the value into the editing widget.
    Dragging a list value to the left removes it from the list and puts it into the editor widget.
    Dragging a list value to the right removes it without changing the editor widget.

  • In the top bar, a button for clearing the whole list is available.
    There are also buttons for undoing and redoing any changes of the current session.

  • The value of the gcd can be changed deliberately
    with any change modifying the list of divisors accordingly:
    Tapping the value of the gcd opens a requester to replace the gcd with an arbitrary whole number.
    There is a button to set it to 1 (or to the value it had before it was set to 1).
    Further buttons increase or decrease the gcd by 1.

Screenshot of Parti
code Source file_download Download