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

Comparing ray/src/cal/cal/root.cal (file contents):
Revision 1.3 by greg, Tue Oct 11 15:40:54 2011 UTC vs.
Revision 1.4 by greg, Mon Jun 10 13:56:52 2019 UTC

# Line 17 | Line 17 | root2(f, x0, x1, i) = if(i,
17  
18   abs(x) = if(x, x, -x);
19   lim(x) = if(x, max(x,err), -max(-x,err));
20 max(a,b) = if(a-b, a, b);
20  
21   f1(f,x) = (f(x+FTINY)-f(x-FTINY))/(2*FTINY);    { numerical derivative }
22  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines