Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -317,10 +317,12 @@ STRICT REQUIREMENTS:
|
|
317 |
7. Maintain clear, precise formatting
|
318 |
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.
|
319 |
9. When writing SymPy code to verify solutions:
|
|
|
320 |
- Use ONLY SymPy functions - do not use NumPy, SciPy, or other libraries
|
321 |
- For numerical integration, use SymPy's integrate() instead of scipy.integrate.quad()
|
322 |
- For any numerical computations, use SymPy's native functions
|
323 |
- Always define symbolic variables using Symbol() before using them
|
|
|
324 |
- Include print statements for ALL calculations and results
|
325 |
- Print intermediate steps and final answers
|
326 |
- Print variable values after they are computed
|
@@ -354,6 +356,17 @@ STRICT REQUIREMENTS:
|
|
354 |
- Include print statements for ALL calculations and results
|
355 |
- Print intermediate steps and final answers
|
356 |
- Print variable values after they are computed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
- Format numerical results using evalf() for decimal"""
|
358 |
|
359 |
#Consider
|
|
|
317 |
7. Maintain clear, precise formatting
|
318 |
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.
|
319 |
9. When writing SymPy code to verify solutions:
|
320 |
+
- Import specific functions like this: from sympy import Symbol, solve, limit, Abs, integrate
|
321 |
- Use ONLY SymPy functions - do not use NumPy, SciPy, or other libraries
|
322 |
- For numerical integration, use SymPy's integrate() instead of scipy.integrate.quad()
|
323 |
- For any numerical computations, use SymPy's native functions
|
324 |
- Always define symbolic variables using Symbol() before using them
|
325 |
+
- Use Abs() for absolute value (not abs())
|
326 |
- Include print statements for ALL calculations and results
|
327 |
- Print intermediate steps and final answers
|
328 |
- Print variable values after they are computed
|
|
|
356 |
- Include print statements for ALL calculations and results
|
357 |
- Print intermediate steps and final answers
|
358 |
- Print variable values after they are computed
|
359 |
+
- Format numerical results using evalf() for decimal
|
360 |
+
9. When writing SymPy code to verify solutions:
|
361 |
+
- Import specific functions like this: from sympy import Symbol, solve, limit, Abs, integrate
|
362 |
+
- Use ONLY SymPy functions - do not use NumPy, SciPy, or other libraries
|
363 |
+
- For numerical integration, use SymPy's integrate() instead of scipy.integrate.quad()
|
364 |
+
- For any numerical computations, use SymPy's native functions
|
365 |
+
- Always define symbolic variables using Symbol() before using them
|
366 |
+
- Use Abs() for absolute value (not abs())
|
367 |
+
- Include print statements for ALL calculations and results
|
368 |
+
- Print intermediate steps and final answers
|
369 |
+
- Print variable values after they are computed
|
370 |
- Format numerical results using evalf() for decimal"""
|
371 |
|
372 |
#Consider
|