function is f(x) = x^3 - 2x - 5 >>> f(2) -1.0
(x: float)
| 42 | |
| 43 | |
| 44 | def f(x: float) -> float: |
| 45 | """ |
| 46 | function is f(x) = x^3 - 2x - 5 |
| 47 | >>> f(2) |
| 48 | -1.0 |
| 49 | """ |
| 50 | return math.pow(x, 3) - (2 * x) - 5 |
| 51 | |
| 52 | |
| 53 | if __name__ == "__main__": |
nothing calls this directly
no outgoing calls
no test coverage detected