Implement `swish(x, beta=1.0)` returning a list of float activation values.
swish(x: list[float], beta: float = 1.0) -> list[float]