/[escript]/trunk/escript/src/UnaryFuncs.h
ViewVC logotype

Diff of /trunk/escript/src/UnaryFuncs.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 22  inline Line 22  inline
22  double  double
23  fsign(double x)  fsign(double x)
24  {  {
25    return x/fabs(x);    if (x == 0) {
26        return 0;
27      } else {
28        return x/fabs(x);
29      }
30  }  }
31    
32  } // end of namespace  } // end of namespace

Legend:
Removed from v.102  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26