```
import math

def ball_impact_speed(m, g, h):
    return (2 * g * h) ** 0.5
speed = ball_impact_speed(0.1, 1, 9.8)
print("The speed of the ball immediately after impact is", speed, "m/s")
```
```
import math

def ball_impact_speed(m, g, h):
    return (2 * g * h) ** 0.5
speed = ball_impact_speed(0.1, 1, 9.8)
print("The speed of the ball immediately after impact is", speed, "m/s")
```