joshuarauh commited on
Commit
a1f9110
·
verified ·
1 Parent(s): 406c0d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
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
- - Import specific functions like this: from sympy import Symbol, solve, limit, Abs, integrate
375
- - Use ONLY SymPy functions - do not use NumPy, SciPy, or other libraries
376
- - For numerical integration, use SymPy's integrate() instead of scipy.integrate.quad()
377
- - For any numerical computations, use SymPy's native functions
 
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
- - Import specific functions like this: from sympy import Symbol, solve, limit, Abs, integrate
416
- - Use ONLY SymPy functions - do not use NumPy, SciPy, or other libraries
417
- - For numerical integration, use SymPy's integrate() instead of scipy.integrate.quad()
418
- - For any numerical computations, use SymPy's native functions
 
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