@@ -39,7 +39,45 @@ import math
3939from fractions import Fraction
4040import quaternion # pip install numpy numpy-quaternion
4141```
42+ ``` python
43+ import matplotlib.pyplot as plt
44+ import kececinumbers as kn
45+
46+ # Matplotlib grafiklerinin notebook içinde gösterilmesini sağla
47+ % matplotlib inline
48+
49+ print (" Trying interactive mode (will prompt for input in the console/output area)..." )
50+ interactive_sequence = kn.get_interactive()
51+ if interactive_sequence:
52+ kn.plot_numbers(interactive_sequence, title = " Keçeci Numbers" )
53+
54+ print (" Done with examples." )
55+ print (" Keçeci Numbers Module Loaded." )
56+ print (" This module provides functions to generate and plot Keçeci Numbers." )
57+ print (" Example: Use 'import kececinumbers as kn' in your script/notebook." )
58+ print (" \n Available functions:" )
59+ print (" - kn.get_interactive()" )
60+ print (" - kn.get_with_params(kececi_type, iterations, ...)" )
61+ print (" - kn.get_random_type(iterations, ...)" )
62+ print (" - kn.plot_numbers(sequence, title)" )
63+ print (" - kn.unified_generator(...) (low-level)" )
64+ print (" \n Access definitions with: kn.DEFINITIONS" )
65+ print (" \n Access type constants like: kn.TYPE_COMPLEX" )
66+ ```
4267
68+ Trying interactive mode (will prompt for input in the console/output area)...
69+ Keçeci Number Types:
70+ 1: Positive Real Numbers (Integer: e.g., 1)
71+ 2: Negative Real Numbers (Integer: e.g., -3)
72+ 3: Complex Numbers (e.g., 3+4j)
73+ 4: Floating-Point Numbers (e.g., 2.5)
74+ 5: Rational Numbers (e.g., 3/2, 5)
75+ 6: Quaternions (scalar start input becomes q(s,s,s,s): e.g., 1 or 2.5)
76+ Please select Keçeci Number Type (1-6): 1
77+ Enter the starting number (e.g., 0 or 2.5, complex:3+4j, rational: 3/4, quaternions: 1) : 0
78+ Enter the base scalar value for increment (e.g., 9): 9
79+ Enter the number of iterations (positive integer: e.g., 30): 30
80+ ---
4381![ Keçeci Numbers Example] ( https://github.com/WhiteSymmetry/kececinumbers/blob/main/examples/kn-1.png?raw=true )
4482
4583![ Keçeci Numbers Example] ( https://github.com/WhiteSymmetry/kececinumbers/blob/main/examples/kn-2.png?raw=true )
0 commit comments