https://github.com/denv3rr/simpleharmonics
Simple program showing changes in a harmonic number sequence as the user changes variables.
https://github.com/denv3rr/simpleharmonics
Last synced: 3 months ago
JSON representation
Simple program showing changes in a harmonic number sequence as the user changes variables.
- Host: GitHub
- URL: https://github.com/denv3rr/simpleharmonics
- Owner: denv3rr
- License: mit
- Created: 2024-10-31T20:36:34.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T07:29:20.000Z (7 months ago)
- Last Synced: 2025-01-16T18:02:46.248Z (5 months ago)
- Language: C++
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleHarmonics
Exponentiation Sequence Creation
This program generates and visualizes modular exponentiation sequences.
- **Dynamic Sequence Generation**: Automatically generates sequences based on user-defined base and modulo values.
- **Visualization/Animation**: Displays a scrolling wave pattern of the sequence.
- **Note:** Using GNU MP Bignum Library for C++ (for precision integer values) and compiling with the following command:
- **Note:** Using **** - this is a Windows-only header file for console i/o operations. This means this program is **not yet** portable across different operating systems. Updating in the future for wider use.
## To Compile and Run
1. Clone repo
2. Run the following:- ```
g++ -I ./ *.cpp -lgmp -lgmpxx
```
## Menu Options
### Main Menu
```
--- Control Menu ---
1. Set new base (current: 2)
2. Set new modulo (current: 9)
3. Start sequence
4. Start/Stop animation
5. Toggle loading bar (current: ON)
6. Settings
7. Exit program
Select an option:```
### Settings Menu
```
--- Settings Menu ---
1. Set animation speed (current: 50ms)
2. Back to main menu
Select an option:```
## Example Output
### Sequence Display
```
Initializing sequence with default base (2) and modulo (9)...Generated Sequence Pattern:
Term 1: 2 [=====> ] 16%
Term 2: 4 [==========> ] 33%
Term 3: 8 [===============> ] 50%
Term 4: 7 [====================> ] 66%
Term 5: 5 [=========================> ] 83%
Term 6: 1 [==============================] 100%```
[logo]: https://github.com/denv3rr/denv3rr/blob/main/Seperet_NightVision_Slam.gif "Seperet.com"