func complexMagnitude(c complex128) float64 {
	return cmplx.Abs(c)
}