Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bl33h/mathematicalsets
A program that manipulates mathematical sets, allowing users to input elements, perform set operations, and search for specific elements.
https://github.com/bl33h/mathematicalsets
data-structures discrete-mathematics mathematical-sets python set-operations set-theory
Last synced: 3 days ago
JSON representation
A program that manipulates mathematical sets, allowing users to input elements, perform set operations, and search for specific elements.
- Host: GitHub
- URL: https://github.com/bl33h/mathematicalsets
- Owner: bl33h
- Created: 2022-08-01T15:43:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T07:00:31.000Z (over 1 year ago)
- Last Synced: 2024-11-20T20:35:42.716Z (2 months ago)
- Topics: data-structures, discrete-mathematics, mathematical-sets, python, set-operations, set-theory
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mathematicalSets
A program that performs various operations on mathematical sets. It allows the user to input elements into two sets and performs operations such as union, intersection, and difference. The sets are created based on user input and are converted from mutable to immutable. It also provides the ability to search for specific elements within the sets. The code includes a universe set, empty sets, and operations for set manipulation.
Files •
Features •
How To Use## Files
- src: the file that implements de solution.
## Features
The main features of the application include:
- Set Creation: The code allows the user to input elements for two sets, which are stored in the variables set1 and set2. The size of each set is predefined.
- Set Operations: The code performs several set operations, such as union, intersection, and difference. These operations are carried out on the sets A and B created from the user-inputted elements.
- Complement Calculation: The code also calculates the complement of sets A and B with respect to the universe set U. Complements are stored in the variables differenceOperation and differenceOperation1.
- Element Search: The code provides the ability to search for a specific element within the sets. The user can choose to search in either the first set or the second set.
- User Interaction: The code utilizes user prompts and input to gather information, such as the elements of the sets and the choice to search for an element.## How To Use
To clone and run this application, you'll need [Git](https://git-scm.com) and [Python](https://www.python.org/downloads/) installed on your computer. From your command line:...
```bash
# Clone this repository
$ git clone https://github.com/bl33h/mathematicalSets# Open the folder
$ cd src# Run the app
$ python mathematicalSets.py```