home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e032 / 3.ddi / FILES / PROGRAMM.PAK / COMPLEXT.M < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.1 KB  |  28 lines

  1.  
  2. (*********************************************************************
  3.  
  4.     Copyright 1991 by Roman E. Maeder
  5.     
  6.     Adapted from
  7.     Roman E. Maeder: Programming in Mathematica,
  8.     Second Edition, Addison-Wesley, 1991.
  9.  
  10.     Permission is hereby granted to make copies of this file for
  11.     any purpose other than direct profit, or as part of a
  12.     commercial product, provided this copyright notice is left
  13.     intact.  Sale, other than for the cost of media, is prohibited.
  14.     
  15.     Permission is hereby granted to reproduce part or all of
  16.     this file, provided that the source is acknowledged.
  17.  
  18.  *********************************************************************)
  19.  
  20.     (* Enclosed with Mathematica by permission *)
  21.  
  22.  
  23. f[z_] := Indeterminate /; Abs[z] < 10.^-3                 (* Indeterminate near 0      *)
  24. f[z_] := 10^100 /; Abs[z-2] < 10.^-3                      (* very large near 2         *)
  25. f[z_] := DirectedInfinity[-2-I] /; Abs[z-(-2+I)] < 10.^-3 (* infinite near -2+I        *)
  26. f[z_] := DirectedInfinity[] /; Abs[z-(2-2I)] < 10.^-3     (* ComplexInfinity near 2-2I *)
  27. f[z_] := z                                                (* identity elsewhere        *)
  28.