rgwfuncs 0.0.32__tar.gz → 0.0.33__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rgwfuncs-0.0.32/src/rgwfuncs.egg-info → rgwfuncs-0.0.33}/PKG-INFO +6 -6
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/README.md +5 -5
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/pyproject.toml +1 -1
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/setup.cfg +1 -1
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs/__init__.py +1 -1
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs/algebra_lib.py +1 -1
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33/src/rgwfuncs.egg-info}/PKG-INFO +6 -6
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/tests/test_algebra_lib.py +3 -3
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/LICENSE +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs/df_lib.py +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs/docs_lib.py +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs/str_lib.py +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs.egg-info/SOURCES.txt +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs.egg-info/dependency_links.txt +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs.egg-info/entry_points.txt +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs.egg-info/requires.txt +0 -0
- {rgwfuncs-0.0.32 → rgwfuncs-0.0.33}/src/rgwfuncs.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: rgwfuncs
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.33
|
4
4
|
Summary: A functional programming paradigm for mathematical modelling and data science
|
5
5
|
Home-page: https://github.com/ryangerardwilson/rgwfunc
|
6
6
|
Author: Ryan Gerard Wilson
|
@@ -154,7 +154,7 @@ Print a list of available function names in alphabetical order. If a filter is p
|
|
154
154
|
|
155
155
|
This section provides comprehensive functions for handling algebraic expressions, performing tasks such as computation, simplification, solving equations, and prime factorization, all outputted in LaTeX format.
|
156
156
|
|
157
|
-
### 1. `
|
157
|
+
### 1. `compute_prime_factors`
|
158
158
|
|
159
159
|
Computes prime factors of a number and presents them in LaTeX format.
|
160
160
|
|
@@ -166,14 +166,14 @@ Computes prime factors of a number and presents them in LaTeX format.
|
|
166
166
|
|
167
167
|
• Example:
|
168
168
|
|
169
|
-
from rgwfuncs import
|
170
|
-
factors_1 =
|
169
|
+
from rgwfuncs import compute_prime_factors
|
170
|
+
factors_1 = compute_prime_factors(100)
|
171
171
|
print(factors_1) # Output: "2^{2} \cdot 5^{2}"
|
172
172
|
|
173
|
-
factors_2 =
|
173
|
+
factors_2 = compute_prime_factors(60)
|
174
174
|
print(factors_2) # Output: "2^{2} \cdot 3 \cdot 5"
|
175
175
|
|
176
|
-
factors_3 =
|
176
|
+
factors_3 = compute_prime_factors(17)
|
177
177
|
print(factors_3) # Output: "17"
|
178
178
|
|
179
179
|
--------------------------------------------------------------------------------
|
@@ -128,7 +128,7 @@ Print a list of available function names in alphabetical order. If a filter is p
|
|
128
128
|
|
129
129
|
This section provides comprehensive functions for handling algebraic expressions, performing tasks such as computation, simplification, solving equations, and prime factorization, all outputted in LaTeX format.
|
130
130
|
|
131
|
-
### 1. `
|
131
|
+
### 1. `compute_prime_factors`
|
132
132
|
|
133
133
|
Computes prime factors of a number and presents them in LaTeX format.
|
134
134
|
|
@@ -140,14 +140,14 @@ Computes prime factors of a number and presents them in LaTeX format.
|
|
140
140
|
|
141
141
|
• Example:
|
142
142
|
|
143
|
-
from rgwfuncs import
|
144
|
-
factors_1 =
|
143
|
+
from rgwfuncs import compute_prime_factors
|
144
|
+
factors_1 = compute_prime_factors(100)
|
145
145
|
print(factors_1) # Output: "2^{2} \cdot 5^{2}"
|
146
146
|
|
147
|
-
factors_2 =
|
147
|
+
factors_2 = compute_prime_factors(60)
|
148
148
|
print(factors_2) # Output: "2^{2} \cdot 3 \cdot 5"
|
149
149
|
|
150
|
-
factors_3 =
|
150
|
+
factors_3 = compute_prime_factors(17)
|
151
151
|
print(factors_3) # Output: "17"
|
152
152
|
|
153
153
|
--------------------------------------------------------------------------------
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# This file is automatically generated
|
2
2
|
# Dynamically importing functions from modules
|
3
3
|
|
4
|
-
from .algebra_lib import compute_constant_expression, compute_constant_expression_involving_matrices, compute_constant_expression_involving_ordered_series,
|
4
|
+
from .algebra_lib import compute_constant_expression, compute_constant_expression_involving_matrices, compute_constant_expression_involving_ordered_series, compute_prime_factors, python_polynomial_expression_to_latex, simplify_polynomial_expression, solve_homogeneous_polynomial_expression
|
5
5
|
from .df_lib import append_columns, append_percentile_classification_column, append_ranged_classification_column, append_ranged_date_classification_column, append_rows, append_xgb_labels, append_xgb_logistic_regression_predictions, append_xgb_regression_predictions, bag_union_join, bottom_n_unique_values, cascade_sort, delete_rows, drop_duplicates, drop_duplicates_retain_first, drop_duplicates_retain_last, filter_dataframe, filter_indian_mobiles, first_n_rows, from_raw_data, insert_dataframe_in_sqlite_database, last_n_rows, left_join, limit_dataframe, load_data_from_path, load_data_from_query, load_data_from_sqlite_path, mask_against_dataframe, mask_against_dataframe_converse, numeric_clean, order_columns, print_correlation, print_dataframe, print_memory_usage, print_n_frequency_cascading, print_n_frequency_linear, rename_columns, retain_columns, right_join, send_data_to_email, send_data_to_slack, send_dataframe_via_telegram, sync_dataframe_to_sqlite_database, top_n_unique_values, union_join, update_rows
|
6
6
|
from .docs_lib import docs
|
7
7
|
from .str_lib import send_telegram_message
|
@@ -10,7 +10,7 @@ from sympy.parsing.sympy_parser import (standard_transformations, implicit_multi
|
|
10
10
|
from typing import Tuple, List, Dict, Optional
|
11
11
|
|
12
12
|
|
13
|
-
def
|
13
|
+
def compute_prime_factors(n: int) -> str:
|
14
14
|
"""
|
15
15
|
Computes the prime factors of a number and returns the factorization as a LaTeX string.
|
16
16
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: rgwfuncs
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.33
|
4
4
|
Summary: A functional programming paradigm for mathematical modelling and data science
|
5
5
|
Home-page: https://github.com/ryangerardwilson/rgwfunc
|
6
6
|
Author: Ryan Gerard Wilson
|
@@ -154,7 +154,7 @@ Print a list of available function names in alphabetical order. If a filter is p
|
|
154
154
|
|
155
155
|
This section provides comprehensive functions for handling algebraic expressions, performing tasks such as computation, simplification, solving equations, and prime factorization, all outputted in LaTeX format.
|
156
156
|
|
157
|
-
### 1. `
|
157
|
+
### 1. `compute_prime_factors`
|
158
158
|
|
159
159
|
Computes prime factors of a number and presents them in LaTeX format.
|
160
160
|
|
@@ -166,14 +166,14 @@ Computes prime factors of a number and presents them in LaTeX format.
|
|
166
166
|
|
167
167
|
• Example:
|
168
168
|
|
169
|
-
from rgwfuncs import
|
170
|
-
factors_1 =
|
169
|
+
from rgwfuncs import compute_prime_factors
|
170
|
+
factors_1 = compute_prime_factors(100)
|
171
171
|
print(factors_1) # Output: "2^{2} \cdot 5^{2}"
|
172
172
|
|
173
|
-
factors_2 =
|
173
|
+
factors_2 = compute_prime_factors(60)
|
174
174
|
print(factors_2) # Output: "2^{2} \cdot 3 \cdot 5"
|
175
175
|
|
176
|
-
factors_3 =
|
176
|
+
factors_3 = compute_prime_factors(17)
|
177
177
|
print(factors_3) # Output: "17"
|
178
178
|
|
179
179
|
--------------------------------------------------------------------------------
|
@@ -7,7 +7,7 @@ import math
|
|
7
7
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
8
8
|
|
9
9
|
from src.rgwfuncs.algebra_lib import (
|
10
|
-
|
10
|
+
compute_prime_factors,
|
11
11
|
compute_constant_expression,
|
12
12
|
compute_constant_expression_involving_matrices,
|
13
13
|
compute_constant_expression_involving_ordered_series,
|
@@ -16,7 +16,7 @@ from src.rgwfuncs.algebra_lib import (
|
|
16
16
|
solve_homogeneous_polynomial_expression)
|
17
17
|
|
18
18
|
|
19
|
-
def
|
19
|
+
def test_compute_prime_factors():
|
20
20
|
test_cases = [
|
21
21
|
(100, "2^{2} \\cdot 5^{2}"),
|
22
22
|
(60, "2^{2} \\cdot 3 \\cdot 5"),
|
@@ -26,7 +26,7 @@ def test_compute_prime_factors_latex():
|
|
26
26
|
]
|
27
27
|
|
28
28
|
for n, expected_output in test_cases:
|
29
|
-
result =
|
29
|
+
result = compute_prime_factors(n)
|
30
30
|
assert result == expected_output, f"Failed for {n}, got {result}"
|
31
31
|
|
32
32
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|