Skip to content

Commit 8cc6918

Browse files
committed
Added equation as comment
1 parent 50aec25 commit 8cc6918

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

numpy/integration/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22

33
A simple method for evaluating integrals numerically is by the middle Riemann sum
44

5+
<!--- Equation
6+
S = \sum_{i=1}^n f(x'_i) \Delta x
7+
--->
8+
59
![img](http://quicklatex.com/cache3/e2/ql_30419670e67bc2b3d039e8a9d8653de2_l3.png)
610

711
with
812

13+
<!--- Equation
14+
x'_i = (x_i + x_{i-1}) / 2
15+
--->
16+
917
![img](http://quicklatex.com/cache3/09/ql_f124fd5c831e873c6abd41160fae2d09_l3.png)
1018

1119
Use the same interval as in the first exercise and investigate how much the Riemann sum of **sin** differs from 1.0. Avoid `for` loops. Investigate also how the results changes with the choice of Δx.

0 commit comments

Comments
 (0)