Represents semi-circle with radius 2 >>> [function_to_integrate(x) for x in [-2.0, 0.0, 2.0]] [0.0, 2.0, 0.0]
(x: float)
| 106 | """ |
| 107 | |
| 108 | def function_to_integrate(x: float) -> float: |
| 109 | """ |
| 110 | Represents semi-circle with radius 2 |
| 111 | >>> [function_to_integrate(x) for x in [-2.0, 0.0, 2.0]] |
| 112 | [0.0, 2.0, 0.0] |
| 113 | """ |
| 114 | return sqrt(4.0 - x * x) |
| 115 | |
| 116 | estimated_value = area_under_curve_estimator( |
| 117 | iterations, function_to_integrate, 0.0, 2.0 |
no outgoing calls
no test coverage detected