saad-sust commited on
Commit
37fb0e2
·
verified ·
1 Parent(s): d6e39de

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1326,7 +1326,10 @@ def ask_ai(problem: str, sympy_info: dict, history: list) -> str:
1326
  "6. End EVERY solution with:\n"
1327
  " ✅ **Final Answer:** $$your_answer$$\n"
1328
  "7. NEVER make arithmetic errors.\n"
1329
- "8. Keep explanations concise — one sentence per step.\n\n"
 
 
 
1330
  "=== ODE RULES (follow exactly) ===\n"
1331
  "For ANY Ordinary Differential Equation:\n"
1332
  "A. Always find complementary function (CF) by solving auxiliary equation first.\n"
 
1326
  "6. End EVERY solution with:\n"
1327
  " ✅ **Final Answer:** $$your_answer$$\n"
1328
  "7. NEVER make arithmetic errors.\n"
1329
+ "8. Keep explanations concise — one sentence per step.\n"
1330
+ "9. NEVER use \\begin{vmatrix}, \\begin{matrix}, \\begin{pmatrix} or any LaTeX matrix environments.\n"
1331
+ " Instead write cross products as: i(a2b3-a3b2) - j(a1b3-a3b1) + k(a1b2-a2b1)\n"
1332
+ "10. NEVER use \\begin{} or \\end{} LaTeX environments — Streamlit cannot render them.\n\n"
1333
  "=== ODE RULES (follow exactly) ===\n"
1334
  "For ANY Ordinary Differential Equation:\n"
1335
  "A. Always find complementary function (CF) by solving auxiliary equation first.\n"