-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*********************Installation********************* | ||
- Download the zipfiile | ||
- copy all files into your current project directory | ||
- invoke `from newsets import Set` | ||
- Done! | ||
|
||
*********************Simple Operations********************* | ||
+ Declare a set `A = Set(1,2,3..., universe=[universal set])` | ||
+ If B is another set to find the union just do `A + B` | ||
+ The intersection of A and B is `A & B` | ||
+ `A.powerSet()` calculates the powerset of A | ||
+ `A - B` outputs the set difference | ||
+ `A.complement()` returns the complement of A with the input universe | ||
+ `A.setDisplayMode()` displays each element of A one by one by hitting enter | ||
+ Lists and sets can be freely converted between eachother by calling `A.__list__()` to convert A to a list or calling Set(*list*) to convert the list to a set object |