|
21 | 21 |
|
22 | 22 | from kececinumbers import ( |
23 | 23 | # Classes / Number types |
24 | | - _parse_engineering_notation, |
25 | | - get_interactive, |
26 | | - TernaryNumber, |
27 | | - SuperrealNumber, |
28 | | - BaseNumber, |
29 | | - PathionNumber, |
30 | | - ChingonNumber, |
31 | | - RoutonNumber, |
32 | | - VoudonNumber, |
33 | | - OctonionNumber, |
34 | | - generate_octonion, |
35 | | - Constants, |
36 | | - NeutrosophicNumber, |
37 | | - NeutrosophicComplexNumber, |
38 | | - HyperrealNumber, |
39 | | - BicomplexNumber, |
40 | | - NeutrosophicBicomplexNumber, |
41 | | - SedenionNumber, |
42 | | - CliffordNumber, |
43 | | - DualNumber, |
44 | | - SplitcomplexNumber, |
45 | | - quaternion, |
46 | | - #coeffs, |
47 | | - find_period, |
48 | | - ComplexNumber, |
49 | | - HypercomplexNumber, |
50 | | - Real, |
51 | | - Complex, |
52 | | - Quaternion, |
53 | | - Octonion, |
54 | | - Sedenion, |
55 | | - Pathion, |
56 | | - Chingon, |
57 | | - Routon, |
58 | | - Voudon, |
59 | | - _parse_real, |
60 | | - _parse_super_real, |
61 | | - is_super_real_expression, |
62 | | - normalize_super_real, |
63 | | - _get_default_hypercomplex, |
64 | | - _get_default_value, |
65 | | - _parse_to_hypercomplex, |
66 | | - chingon_zeros, |
67 | | - chingon_ones, |
68 | | - chingon_unit_vector, |
69 | | - chingon_eye, |
70 | | - chingon_random, |
71 | | - chingon_linspace, |
72 | | - chingon_dot, |
73 | | - chingon_cross, |
74 | | - chingon_norm, |
75 | | - chingon_normalize, |
76 | | - neutrosophic_zero, |
77 | | - neutrosophic_one, |
78 | | - neutrosophic_i, |
79 | | - neutrosophic_f, |
80 | | - parse_to_neutrosophic, |
81 | | - parse_to_hyperreal, |
82 | | - _safe_float_convert, |
83 | | - _parse_complex_like_string, |
84 | | - _safe_float, |
85 | | - get_random_types_batch, |
86 | | - _find_kececi_prime_number, |
87 | | - _safe_power, |
88 | | - _safe_mod, |
89 | | - _safe_divide, |
90 | | - _float_mod_zero, |
91 | | - ValueProcessor, |
92 | | - _generate_sequence, |
93 | | - extract_values_for_plotting, |
94 | | - _generate_simple_sequence, |
95 | | - _generate_detailed_sequence, |
96 | | - _generate_default_value, |
97 | | - clean_sequence_for_plotting, |
98 | | - extract_numeric_value, |
99 | | - extract_numeric_values, |
100 | | - extract_complex_values, |
101 | | - extract_fraction_values, |
102 | | - find_first_numeric, |
103 | | - extract_clean_numbers, |
104 | | - _parse_fraction, |
105 | | - |
106 | | - # Core generator / API |
107 | | - unified_generator, |
108 | | - get_with_params, |
109 | | - get_random_type, |
110 | | - generate_kececi_vectorial, |
111 | | - kececi_bicomplex_algorithm, |
112 | | - kececi_bicomplex_advanced, |
113 | | - |
114 | | - # Analysis / utilities |
115 | | - find_kececi_prime_number, |
116 | | - _get_integer_representation, |
117 | | - _is_divisible, |
118 | | - is_prime, |
119 | | - is_prime_like, |
120 | | - is_near_integer, |
121 | | - is_neutrosophic_like, |
122 | | - is_quaternion_like, |
123 | | - test_kececi_conjecture, |
124 | | - analyze_kececi_sequence, |
125 | | - analyze_all_types, |
126 | | - analyze_pair_correlation, |
127 | | - _compute_gue_similarity, |
128 | | - _find_kececi_zeta_zeros, |
129 | | - _load_zeta_zeros, |
130 | | - _pair_correlation, |
131 | | - |
132 | | - # Plotting / visualization |
133 | | - print_detailed_report, |
134 | | - plot_numbers, |
135 | | - plot_octonion_3d, |
136 | | - generate_interactive_plot, |
137 | | - apply_pca_clustering, |
138 | | - _plot_comparison, |
139 | | - _plot_component_distribution, |
140 | | - |
141 | | - # Parsers (if you want them public) |
142 | | - _parse_complex, |
143 | | - _parse_bicomplex, |
144 | | - _parse_octonion, |
145 | | - _parse_sedenion, |
146 | | - _parse_pathion, |
147 | | - _parse_chingon, |
148 | | - _parse_routon, |
149 | | - _parse_universal, |
150 | | - _parse_voudon, |
151 | | - _parse_clifford, |
152 | | - _parse_dual, |
153 | | - _parse_splitcomplex, |
154 | | - _parse_ternary, |
155 | | - _parse_superreal, |
156 | | - _parse_hyperreal, |
157 | | - _parse_neutrosophic, |
158 | | - _parse_neutrosophic_complex, |
159 | | - _parse_neutrosophic_bicomplex, |
160 | | - _parse_quaternion, |
161 | | - _parse_quaternion_from_csv, |
162 | | - _pca_var_sum, |
| 24 | + _parse_engineering_notation, |
| 25 | + get_interactive, |
| 26 | + TernaryNumber, |
| 27 | + SuperrealNumber, |
| 28 | + BaseNumber, |
| 29 | + PathionNumber, |
| 30 | + ChingonNumber, |
| 31 | + RoutonNumber, |
| 32 | + VoudonNumber, |
| 33 | + OctonionNumber, |
| 34 | + generate_octonion, |
| 35 | + Constants, |
| 36 | + NeutrosophicNumber, |
| 37 | + NeutrosophicComplexNumber, |
| 38 | + HyperrealNumber, |
| 39 | + BicomplexNumber, |
| 40 | + NeutrosophicBicomplexNumber, |
| 41 | + SedenionNumber, |
| 42 | + CliffordNumber, |
| 43 | + DualNumber, |
| 44 | + SplitcomplexNumber, |
| 45 | + quaternion, |
| 46 | + #coeffs, |
| 47 | + find_period, |
| 48 | + ComplexNumber, |
| 49 | + HypercomplexNumber, |
| 50 | + Real, |
| 51 | + Complex, |
| 52 | + Quaternion, |
| 53 | + Octonion, |
| 54 | + Sedenion, |
| 55 | + Pathion, |
| 56 | + Chingon, |
| 57 | + Routon, |
| 58 | + Voudon, |
| 59 | + _parse_real, |
| 60 | + _parse_super_real, |
| 61 | + is_super_real_expression, |
| 62 | + normalize_super_real, |
| 63 | + _get_default_hypercomplex, |
| 64 | + _get_default_value, |
| 65 | + _parse_to_hypercomplex, |
| 66 | + chingon_zeros, |
| 67 | + chingon_ones, |
| 68 | + chingon_unit_vector, |
| 69 | + chingon_eye, |
| 70 | + chingon_random, |
| 71 | + chingon_linspace, |
| 72 | + chingon_dot, |
| 73 | + chingon_cross, |
| 74 | + chingon_norm, |
| 75 | + chingon_normalize, |
| 76 | + neutrosophic_zero, |
| 77 | + neutrosophic_one, |
| 78 | + neutrosophic_i, |
| 79 | + neutrosophic_f, |
| 80 | + parse_to_neutrosophic, |
| 81 | + parse_to_hyperreal, |
| 82 | + _safe_float_convert, |
| 83 | + _parse_complex_like_string, |
| 84 | + _safe_float, |
| 85 | + get_random_types_batch, |
| 86 | + _find_kececi_prime_number, |
| 87 | + _safe_power, |
| 88 | + _safe_mod, |
| 89 | + _safe_divide, |
| 90 | + _float_mod_zero, |
| 91 | + ValueProcessor, |
| 92 | + _generate_sequence, |
| 93 | + extract_values_for_plotting, |
| 94 | + _generate_simple_sequence, |
| 95 | + _generate_detailed_sequence, |
| 96 | + _generate_default_value, |
| 97 | + clean_sequence_for_plotting, |
| 98 | + extract_numeric_value, |
| 99 | + extract_numeric_values, |
| 100 | + extract_complex_values, |
| 101 | + extract_fraction_values, |
| 102 | + find_first_numeric, |
| 103 | + extract_clean_numbers, |
| 104 | + |
| 105 | + # Core generator / API |
| 106 | + unified_generator, |
| 107 | + get_with_params, |
| 108 | + get_random_type, |
| 109 | + generate_kececi_vectorial, |
| 110 | + kececi_bicomplex_algorithm, |
| 111 | + kececi_bicomplex_advanced, |
| 112 | + |
| 113 | + # Analysis / utilities |
| 114 | + find_kececi_prime_number, |
| 115 | + _get_integer_representation, |
| 116 | + _is_divisible, |
| 117 | + is_prime, |
| 118 | + is_prime_like, |
| 119 | + is_near_integer, |
| 120 | + is_neutrosophic_like, |
| 121 | + is_quaternion_like, |
| 122 | + test_kececi_conjecture, |
| 123 | + analyze_kececi_sequence, |
| 124 | + analyze_all_types, |
| 125 | + analyze_pair_correlation, |
| 126 | + _compute_gue_similarity, |
| 127 | + _find_kececi_zeta_zeros, |
| 128 | + _load_zeta_zeros, |
| 129 | + _pair_correlation, |
| 130 | + |
| 131 | + # Plotting / visualization |
| 132 | + print_detailed_report, |
| 133 | + plot_numbers, |
| 134 | + plot_octonion_3d, |
| 135 | + generate_interactive_plot, |
| 136 | + apply_pca_clustering, |
| 137 | + _plot_comparison, |
| 138 | + _plot_component_distribution, |
| 139 | + |
| 140 | + # Parsers (if you want them public) |
| 141 | + _parse_complex, |
| 142 | + _parse_bicomplex, |
| 143 | + _parse_octonion, |
| 144 | + _parse_sedenion, |
| 145 | + _parse_pathion, |
| 146 | + _parse_chingon, |
| 147 | + _parse_routon, |
| 148 | + _parse_universal, |
| 149 | + _parse_voudon, |
| 150 | + _parse_clifford, |
| 151 | + _parse_dual, |
| 152 | + _parse_splitcomplex, |
| 153 | + _parse_ternary, |
| 154 | + _parse_superreal, |
| 155 | + _parse_hyperreal, |
| 156 | + _parse_neutrosophic, |
| 157 | + _parse_neutrosophic_complex, |
| 158 | + _parse_neutrosophic_bicomplex, |
| 159 | + _parse_quaternion, |
| 160 | + _parse_quaternion_from_csv, |
| 161 | + _pca_var_sum, |
| 162 | + |
| 163 | + # Helpers / small utilities recently added |
| 164 | + convert_to_float, |
| 165 | + safe_add, |
| 166 | + format_fraction, |
| 167 | + _has_bicomplex_format, |
| 168 | + _extract_numeric_part, |
| 169 | + _has_comma_format, |
| 170 | + _gue_pair_correlation, |
| 171 | + _is_complex_like, |
| 172 | + logger, |
| 173 | + |
| 174 | + # TYPE constants |
| 175 | + TYPE_POSITIVE_REAL, |
| 176 | + TYPE_NEGATIVE_REAL, |
| 177 | + TYPE_COMPLEX, |
| 178 | + TYPE_FLOAT, |
| 179 | + TYPE_RATIONAL, |
| 180 | + TYPE_QUATERNION, |
| 181 | + TYPE_NEUTROSOPHIC, |
| 182 | + TYPE_NEUTROSOPHIC_COMPLEX, |
| 183 | + TYPE_HYPERREAL, |
| 184 | + TYPE_BICOMPLEX, |
| 185 | + TYPE_NEUTROSOPHIC_BICOMPLEX, |
| 186 | + TYPE_OCTONION, |
| 187 | + TYPE_SEDENION, |
| 188 | + TYPE_CLIFFORD, |
| 189 | + TYPE_DUAL, |
| 190 | + TYPE_SPLIT_COMPLEX, |
| 191 | + TYPE_PATHION, |
| 192 | + TYPE_CHINGON, |
| 193 | + TYPE_ROUTON, |
| 194 | + TYPE_VOUDON, |
| 195 | + TYPE_SUPERREAL, |
| 196 | + TYPE_TERNARY, |
| 197 | + TYPE_HYPERCOMPLEX, |
| 198 | +) |
163 | 199 |
|
164 | | - # Helpers / small utilities recently added |
165 | | - convert_to_float, |
166 | | - safe_add, |
167 | | - format_fraction, |
168 | | - _has_bicomplex_format, |
169 | | - _extract_numeric_part, |
170 | | - _has_comma_format, |
171 | | - _gue_pair_correlation, |
172 | | - _is_complex_like, |
173 | | - logger, |
| 200 | +import kececinumbers as kn |
174 | 201 |
|
175 | | - # TYPE constants |
176 | | - TYPE_POSITIVE_REAL, |
177 | | - TYPE_NEGATIVE_REAL, |
178 | | - TYPE_COMPLEX, |
179 | | - TYPE_FLOAT, |
180 | | - TYPE_RATIONAL, |
181 | | - TYPE_QUATERNION, |
182 | | - TYPE_NEUTROSOPHIC, |
183 | | - TYPE_NEUTROSOPHIC_COMPLEX, |
184 | | - TYPE_HYPERREAL, |
185 | | - TYPE_BICOMPLEX, |
186 | | - TYPE_NEUTROSOPHIC_BICOMPLEX, |
187 | | - TYPE_OCTONION, |
188 | | - TYPE_SEDENION, |
189 | | - TYPE_CLIFFORD, |
190 | | - TYPE_DUAL, |
191 | | - TYPE_SPLIT_COMPLEX, |
192 | | - TYPE_PATHION, |
193 | | - TYPE_CHINGON, |
194 | | - TYPE_ROUTON, |
195 | | - TYPE_VOUDON, |
196 | | - TYPE_SUPERREAL, |
197 | | - TYPE_TERNARY, |
198 | | - TYPE_HYPERCOMPLEX, |
199 | | -) |
200 | 202 | def test_get_integer_representation_basic_int(): |
201 | 203 | assert kn._get_integer_representation(5) == 5 |
202 | 204 | assert kn._get_integer_representation(-7) == 7 |
|
0 commit comments