Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -317,9 +317,14 @@ 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 |
- Include print statements for ALL calculations and results
|
| 321 |
- Print intermediate steps and final answers
|
| 322 |
-
- Print variable values after they are computed
|
|
|
|
| 323 |
else:
|
| 324 |
system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
|
| 325 |
STRICT REQUIREMENTS:
|
|
@@ -342,9 +347,14 @@ STRICT REQUIREMENTS:
|
|
| 342 |
6. Maintain clear formatting
|
| 343 |
7. 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.
|
| 344 |
8. When writing SymPy code to verify solutions:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
- Include print statements for ALL calculations and results
|
| 346 |
- Print intermediate steps and final answers
|
| 347 |
-
- Print variable values after they are computed
|
|
|
|
| 348 |
|
| 349 |
#Consider
|
| 350 |
#When writing SymPy code:
|
|
|
|
| 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
|
| 327 |
+
- Format numerical results using evalf() for decimal"""
|
| 328 |
else:
|
| 329 |
system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
|
| 330 |
STRICT REQUIREMENTS:
|
|
|
|
| 347 |
6. Maintain clear formatting
|
| 348 |
7. 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.
|
| 349 |
8. When writing SymPy code to verify solutions:
|
| 350 |
+
- Use ONLY SymPy functions - do not use NumPy, SciPy, or other libraries
|
| 351 |
+
- For numerical integration, use SymPy's integrate() instead of scipy.integrate.quad()
|
| 352 |
+
- For any numerical computations, use SymPy's native functions
|
| 353 |
+
- Always define symbolic variables using Symbol() before using them
|
| 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
|
| 360 |
#When writing SymPy code:
|