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

Comparing ray/src/common/zeroes.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:08:54 1991 UTC vs.
Revision 2.4 by greg, Tue Feb 25 02:47:22 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1986 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  zeroes.c - compute roots for various equations.
6   *
7 < *     8/19/85
7 > *  External symbols declared in standard.h
8   */
9  
10 < #define  FTINY          1e-7
10 > #include "copyright.h"
11  
12  
13 + #include  <math.h>
14 +
15 + #include  "fvect.h"
16 +
17 +
18   int
19   quadratic(r, a, b, c)           /* find real roots of quadratic equation */
20   double  *r;                     /* roots in ascending order */
21   double  a, b, c;
22   {
21        double  fabs(), sqrt();
23          double  disc;
24          int  first;
25  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines