ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/erf.c
(Generate patch)

Comparing ray/src/common/erf.c (file contents):
Revision 3.1 by greg, Sat Feb 22 02:07:22 2003 UTC vs.
Revision 3.2 by greg, Sat Aug 3 17:53:46 2013 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   static  char sccsid[] = "@(#)erf.c 1.1 87/12/21 SMI"; /* from UCB 4.1 12/25/82 */
6   #endif
7  
8 + #include "rtmath.h"
9 +
10   /*
11          C program for floating point error function
12  
# Line 71 | Line 73 | static double q2[]  = {
73   };
74  
75   double
76 < erf(arg) double arg;{
75 <        double erfc();
76 > erf(double arg) {
77          int sign;
78          double argsq;
79          double d, n;
# Line 97 | Line 98 | erf(arg) double arg;{
98   }
99  
100   double
101 < erfc(arg) double arg;{
101 <        double erf();
102 <        double exp();
101 > erfc(double arg) {
102          double n, d;
103          int i;
104  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines