I'm modifying an application that does PDF manipulation. The function written to interpret functiontype 2s seems to produce a negative value far too frequently. The equation found in the PDF spec is:
yj = C0j + x^N × (C1j − C0j), for 0 ≤ j < n.
Now, I'm getting negative values when I process a function with C0=1 and C1=0. I'm wondering if this is because I'm setting my own x value. What is the x value supposed to be?