public double Function(double z) { if (sigma == 0 || z == 0) return 0; return (sigma / z) * System.Math.Sin(z / sigma); }