Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -371,12 +371,14 @@ STRICT REQUIREMENTS:
|
|
| 371 |
7. Maintain clear, precise formatting
|
| 372 |
8. At the end of the LaTeX solution output, print SymPy code that you would use to solve or verify the main equations in the question.
|
| 373 |
9. When writing SymPy code to verify solutions:
|
| 374 |
-
-
|
| 375 |
-
-
|
| 376 |
-
-
|
| 377 |
-
- For
|
|
|
|
| 378 |
- Always define symbolic variables using Symbol() before using them
|
| 379 |
- Use Abs() for absolute value (not abs())
|
|
|
|
| 380 |
- Include print statements for ALL calculations and results
|
| 381 |
- Print intermediate steps and final answers
|
| 382 |
- Print variable values after they are computed
|
|
@@ -412,12 +414,14 @@ STRICT REQUIREMENTS:
|
|
| 412 |
- Print variable values after they are computed
|
| 413 |
- Format numerical results using evalf() for decimal
|
| 414 |
9. When writing SymPy code to verify solutions:
|
| 415 |
-
-
|
| 416 |
-
-
|
| 417 |
-
-
|
| 418 |
-
- For
|
|
|
|
| 419 |
- Always define symbolic variables using Symbol() before using them
|
| 420 |
- Use Abs() for absolute value (not abs())
|
|
|
|
| 421 |
- Include print statements for ALL calculations and results
|
| 422 |
- Print intermediate steps and final answers
|
| 423 |
- Print variable values after they are computed
|
|
|
|
| 371 |
7. Maintain clear, precise formatting
|
| 372 |
8. At the end of the LaTeX solution output, print SymPy code that you would use to solve or verify the main equations in the question.
|
| 373 |
9. When writing SymPy code to verify solutions:
|
| 374 |
+
- Start with essential imports: from sympy import *
|
| 375 |
+
- Or use specific imports as needed: from sympy import Symbol, solve, limit, Abs, integrate, Function, diff, sin, cos
|
| 376 |
+
- DO NOT use NumPy, SciPy, or other libraries
|
| 377 |
+
- For numerical integration, use integrate() instead of scipy.integrate.quad()
|
| 378 |
+
- For any numerical computations, use native SymPy functions
|
| 379 |
- Always define symbolic variables using Symbol() before using them
|
| 380 |
- Use Abs() for absolute value (not abs())
|
| 381 |
+
- Define functions using Function() class when needed
|
| 382 |
- Include print statements for ALL calculations and results
|
| 383 |
- Print intermediate steps and final answers
|
| 384 |
- Print variable values after they are computed
|
|
|
|
| 414 |
- Print variable values after they are computed
|
| 415 |
- Format numerical results using evalf() for decimal
|
| 416 |
9. When writing SymPy code to verify solutions:
|
| 417 |
+
- Start with essential imports: from sympy import *
|
| 418 |
+
- Or use specific imports as needed: from sympy import Symbol, solve, limit, Abs, integrate, Function, diff, sin, cos
|
| 419 |
+
- DO NOT use NumPy, SciPy, or other libraries
|
| 420 |
+
- For numerical integration, use integrate() instead of scipy.integrate.quad()
|
| 421 |
+
- For any numerical computations, use native SymPy functions
|
| 422 |
- Always define symbolic variables using Symbol() before using them
|
| 423 |
- Use Abs() for absolute value (not abs())
|
| 424 |
+
- Define functions using Function() class when needed
|
| 425 |
- Include print statements for ALL calculations and results
|
| 426 |
- Print intermediate steps and final answers
|
| 427 |
- Print variable values after they are computed
|