Files
app-store-optimization/skills/loki-mode/benchmarks/results/2026-01-05-10-37-54/swebench-loki-patches/sympy__sympy-13177.patch

14 lines
456 B
Diff

# sympy__sympy-13177
# Loki Mode Multi-Agent Patch
# Attempts: 1
--- a/sympy/core/mod.py
+++ b/sympy/core/mod.py
@@ -39,7 +39,7 @@ def eval(cls, p, q):
return S.Zero
if (p == q or p == -q or
- p.is_Pow and p.exp.is_Integer and p.base == q or
+ p.is_Pow and p.exp.is_Integer and p.exp.is_positive and p.base == q and q.is_integer or
p.is_integer and q == 1):
return S.Zero