1

Computing for linearly-interpolated values using awk

view story
linux-howto

http://www.unix.com – Hi, I want to compute for linearly-interpolated values for my data using awk, any help is highly appreciated. How do I apply the linear interpolation formula to my data in awk given the equation below: Code: x  y 15  0 25  0.1633611 35  0.0741623 desired output: linear interpolation at 0.1 interval x        y_interpolated 15      0 15.1    0.001633611 15.2    0.003267222 15.3 ..  0.004900833 24.9    0.161727489 25      0.1633611 the interpolated values (yn) were calculated u (HowTos)