McJe
Structural
- Apr 17, 2009
- 33
Hello,
I'm trying to understand how to interpolate values from table G (Do/t - L/Do to A-value)
I have the tabular version in an excel sheet,
and I'm trying to calculate value A from input Do - t - L
The code-part is not a problem, but the way to interpolate brings up questions. The excel sheet is fully functional, but the interpolation is not OK.
I tried several methods, but none give the exact value as I can get from programs like Compress. I think they use the same table to start from?
I tried linear interpolation:
y = y1 + (x - x1) * (y2 - y1) / (x2 - x1)
Next I tried logarithmic interpolation:
y = y1 + (log(x) - log(x1)) * (y2 - y1) / (log(x2) - log(x1))
But none of them give similar results to Compress.
Does anybody know what I'm doing wrog?
What formulas are used to get the good values?
Are the interpolation formulas used for table G, also the same I can use to interpolate the B-values?
I'm trying to understand how to interpolate values from table G (Do/t - L/Do to A-value)
I have the tabular version in an excel sheet,
and I'm trying to calculate value A from input Do - t - L
The code-part is not a problem, but the way to interpolate brings up questions. The excel sheet is fully functional, but the interpolation is not OK.
I tried several methods, but none give the exact value as I can get from programs like Compress. I think they use the same table to start from?
I tried linear interpolation:
y = y1 + (x - x1) * (y2 - y1) / (x2 - x1)
Next I tried logarithmic interpolation:
y = y1 + (log(x) - log(x1)) * (y2 - y1) / (log(x2) - log(x1))
But none of them give similar results to Compress.
Does anybody know what I'm doing wrog?
What formulas are used to get the good values?
Are the interpolation formulas used for table G, also the same I can use to interpolate the B-values?