
(*********************************************************************

	Copyright 1991 by Roman E. Maeder
	
	Adapted from
	Roman E. Maeder: Programming in Mathematica,
	Second Edition, Addison-Wesley, 1991.

	Permission is hereby granted to make copies of this file for
	any purpose other than direct profit, or as part of a
	commercial product, provided this copyright notice is left
	intact.  Sale, other than for the cost of media, is prohibited.
	
	Permission is hereby granted to reproduce part or all of
	this file, provided that the source is acknowledged.

 *********************************************************************)

	(* Enclosed with Mathematica by permission *)


f[z_] := Indeterminate /; Abs[z] < 10.^-3                 (* Indeterminate near 0      *)
f[z_] := 10^100 /; Abs[z-2] < 10.^-3                      (* very large near 2         *)
f[z_] := DirectedInfinity[-2-I] /; Abs[z-(-2+I)] < 10.^-3 (* infinite near -2+I        *)
f[z_] := DirectedInfinity[] /; Abs[z-(2-2I)] < 10.^-3     (* ComplexInfinity near 2-2I *)
f[z_] := z                                                (* identity elsewhere        *)
