Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -383,7 +383,13 @@ STRICT REQUIREMENTS:
|
|
383 |
- Include print statements for ALL calculations and results
|
384 |
- Print intermediate steps and final answers
|
385 |
- Print variable values after they are computed
|
386 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
387 |
else:
|
388 |
system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
|
389 |
STRICT REQUIREMENTS:
|
@@ -427,7 +433,13 @@ STRICT REQUIREMENTS:
|
|
427 |
- Include print statements for ALL calculations and results
|
428 |
- Print intermediate steps and final answers
|
429 |
- Print variable values after they are computed
|
430 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
431 |
|
432 |
#Consider
|
433 |
#When writing SymPy code:
|
|
|
383 |
- Include print statements for ALL calculations and results
|
384 |
- Print intermediate steps and final answers
|
385 |
- Print variable values after they are computed
|
386 |
+
- For numeric calculations:
|
387 |
+
* Use Float() for decimal numbers
|
388 |
+
* Use float() for final printing of results
|
389 |
+
* Avoid evalf() as it may cause errors
|
390 |
+
- When working with series/sequences:
|
391 |
+
* Use Float() for sequence terms
|
392 |
+
* Convert sums to float() before printing"""
|
393 |
else:
|
394 |
system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
|
395 |
STRICT REQUIREMENTS:
|
|
|
433 |
- Include print statements for ALL calculations and results
|
434 |
- Print intermediate steps and final answers
|
435 |
- Print variable values after they are computed
|
436 |
+
- For numeric calculations:
|
437 |
+
* Use Float() for decimal numbers
|
438 |
+
* Use float() for final printing of results
|
439 |
+
* Avoid evalf() as it may cause errors
|
440 |
+
- When working with series/sequences:
|
441 |
+
* Use Float() for sequence terms
|
442 |
+
* Convert sums to float() before printing"""
|
443 |
|
444 |
#Consider
|
445 |
#When writing SymPy code:
|