rgwfuncs 0.0.48__tar.gz → 0.0.49__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.48/src/rgwfuncs.egg-info → rgwfuncs-0.0.49}/PKG-INFO +1 -1
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/pyproject.toml +1 -1
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/setup.cfg +1 -1
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs/algebra_lib.py +1 -16
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49/src/rgwfuncs.egg-info}/PKG-INFO +1 -1
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/LICENSE +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/README.md +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs/__init__.py +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs/df_lib.py +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs/docs_lib.py +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs/interactive_shell_lib.py +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs/str_lib.py +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs.egg-info/SOURCES.txt +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs.egg-info/dependency_links.txt +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs.egg-info/entry_points.txt +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs.egg-info/requires.txt +0 -0
- {rgwfuncs-0.0.48 → rgwfuncs-0.0.49}/src/rgwfuncs.egg-info/top_level.txt +0 -0
@@ -677,34 +677,19 @@ def solve_homogeneous_polynomial_expression(
|
|
677
677
|
"""
|
678
678
|
|
679
679
|
try:
|
680
|
-
print("679", expression)
|
681
|
-
print("681", variable)
|
682
|
-
print("682", subs)
|
683
|
-
|
684
680
|
variable_symbols = set(re.findall(r'\b[a-zA-Z]\w*\b', expression))
|
685
681
|
sym_vars = {var: symbols(var) for var in variable_symbols}
|
686
|
-
|
687
682
|
expr = parse_expr(expression, local_dict=sym_vars)
|
688
|
-
print("Parsed expression:", expr)
|
689
|
-
|
690
683
|
if subs:
|
691
684
|
expr = expr.subs({symbols(k): v for k, v in subs.items()})
|
692
|
-
print("Expression after substitution:", expr)
|
693
|
-
|
694
685
|
var_symbol = symbols(variable)
|
695
|
-
|
696
686
|
eq = Eq(expr, 0)
|
697
|
-
print("Equation to solve:", eq)
|
698
|
-
|
699
687
|
solutions = solve(eq, var_symbol)
|
700
|
-
|
701
688
|
if solutions:
|
702
689
|
latex_solutions = [latex(simplify(sol)) for sol in solutions]
|
703
690
|
result = r"\left[" + ", ".join(latex_solutions) + r"\right]"
|
704
691
|
else:
|
705
|
-
result = r"\left[\right]"
|
706
|
-
|
707
|
-
print("704", result)
|
692
|
+
result = r"\left[\text{No solutions found}\right]"
|
708
693
|
return result
|
709
694
|
|
710
695
|
except Exception as e:
|
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
|
File without changes
|
File without changes
|
File without changes
|