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

Comparing ray/src/cal/tabfunc.c (file contents):
Revision 1.5 by schorsch, Sun Jul 27 22:12:01 2003 UTC vs.
Revision 1.7 by greg, Sun Aug 11 17:04:09 2019 UTC

# Line 20 | Line 20 | static const char      RCSid[] = "$Id$";
20  
21   #define  isdelim(c)     (isspace(c) || (c)==',')
22  
23 < #define  MAXTAB         1024            /* maximum number of data rows */
24 < #define  MAXLINE        4096            /* maximum line width (characters) */
23 > #define  MAXTAB         8192            /* maximum number of data rows */
24 > #define  MAXLINE        16384           /* maximum line width (characters) */
25   #define  OUTFMT         "%.7g"          /* output format conversion string */
26  
27   int     interpolate = 0;
# Line 151 | Line 151 | absc_exp(void)                 /* produce expression for abscissa */
151                                  strcpy(ourexp, "x");
152                          else
153                                  sprintf(ourexp, "x-%g", abscissa[0]-1);
154 <                } else
154 >                } else if (fabs(abscissa[0]) < eps)
155 >                        sprintf(ourexp, "x/%g+1", step);
156 >                else
157                          sprintf(ourexp, "(x-%g)/%g+1", abscissa[0], step);
158          } else {
159                  printf("X`%s(i):select(i,", locID);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines