Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 7.18.1 -- An enhanced Interactive Python.
Restarting kernel...
In [1]: runfile('G:/UBCO/2020-2021/Python/20201002/hit_and_miss.py', wdir='G:/UBCO/2020-2021/Python/20201002')
0.01803350859847741
-65536*x**9/243 + 32768*x**8/27 - 409600*x**7/189 + 155648*x**6/81 - 114688*x**5/135 + 4096*x**4/27
4096/8505
The exact integral of f(x) on 0 < x < 1 is 0.481599059376837
The Hit & Miss estimate of the integral of f(x) on 0 < x < 1 is 0.4773
The Hit & Miss estimate of the integral of f(x) on 0 < x < 1 is 0.4699
2020-10-02 16:41:16.522325
0%
10%
20%
30%
40%
50%
60%
70%
80%
90%
2020-10-02 16:42:39.793472
2020-10-02 16:42:39.835433
1 of 10
2 of 10
3 of 10
4 of 10
5 of 10
6 of 10
7 of 10
8 of 10
9 of 10
10 of 10
2020-10-02 17:09:58.093079
In [2]: