1 /* This function "t" tests the function "f" to see if computing at
2 two different scales has much effect on the accuracy.
3 test from f(x) to f(y) incrementing the index by d. f(i) is
4 computed at two scales, scale s and then scale t, where t>s.
5 the result from scale t is divided by 1 at scale s and the
6 results are compared. If they are different, the function is
7 said to have failed. It will then print out the value of i
8 (called index) and the two original values val1 (scale s) and
11 define t (x,y,d,s,t) {
12 auto u, v, w, i, b, c;
15 "Bad Scales. Try again.
19 for (i = x; i < y; i += d) {
45 Percent failed: "; scale = 2; c*100/b;