joshuarauh commited on
Commit
87819a1
·
verified ·
1 Parent(s): 4e9a407

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -185,7 +185,14 @@ NOTE: For eigenvalue problems, use 'lam = Symbol('lam')' instead of importing fr
185
  - **Important Note**: Always test limits symbolically first. If SymPy produces unexpected results, simplify the expression or expand it (e.g., using `series`) before re-evaluating the limit.
186
 
187
  8. If calculating integrals, write the SymPy code to compute the original integral directly with respect to the original variable of integration,
188
- not any integral that might have been rewritten with a variable substitution. In addition to seeking an analytic solution, also obtain a numerical solution.
 
 
 
 
 
 
 
189
 
190
  9. If using SymPy to evalute an infinite sum, attempt using the infinite sum, and in addition report what the sum of the first 100 terms is as a sanity check.
191
 
 
185
  - **Important Note**: Always test limits symbolically first. If SymPy produces unexpected results, simplify the expression or expand it (e.g., using `series`) before re-evaluating the limit.
186
 
187
  8. If calculating integrals, write the SymPy code to compute the original integral directly with respect to the original variable of integration,
188
+ not any integral that might have been rewritten with a variable substitution. In addition to seeking an analytic solution, also obtain a numerical solution using two methods
189
+ (i) SymPy's integrate function; and
190
+ (ii) using mpmath, example:
191
+ ```python
192
+ import mpmath
193
+ f = lambda x: x**2 / ((x**4+1)*mpmath.sqrt(x**2+1))
194
+ mpmath.quad(f, [0, mpmath.inf])
195
+ ```
196
 
197
  9. If using SymPy to evalute an infinite sum, attempt using the infinite sum, and in addition report what the sum of the first 100 terms is as a sanity check.
198