Skip to content
Prev 166850 / 398502 Next

interpolation to abscissa

approxfun returns a function; that is not an error message:
$x
 [1]  0.0000000  0.4081633  0.8163265  1.2244898  1.6326531  2.0408163
 2.4489796  2.8571429  3.2653061
[10]  3.6734694  4.0816327  4.4897959  4.8979592  5.3061224  5.7142857
 6.1224490  6.5306122  6.9387755
[19]  7.3469388  7.7551020  8.1632653  8.5714286  8.9795918  9.3877551
 9.7959184 10.2040816 10.6122449
[28] 11.0204082 11.4285714 11.8367347 12.2448980 12.6530612 13.0612245
13.4693878 13.8775510 14.2857143
[37] 14.6938776 15.1020408 15.5102041 15.9183673 16.3265306 16.7346939
17.1428571 17.5510204 17.9591837
[46] 18.3673469 18.7755102 19.1836735 19.5918367 20.0000000

$y
 [1]  16.00000  18.36735  20.73469  23.10204  25.46939  27.83673
30.20408  32.57143  34.93878  37.30612
[11]  39.67347  42.04082  44.40816  46.95918  49.57143  52.18367
54.79592  57.40816  60.02041  62.63265
[21]  65.24490  67.85714  70.46939  73.08163  75.69388  77.97959
79.93878  81.89796  83.85714  85.81633
[31]  87.77551  89.73469  91.69388  93.65306  95.61224  97.57143
99.53061 101.48980 103.44898 105.40816
[41] 107.36735 109.32653 111.28571 113.24490 115.20408 117.16327
119.12245 121.08163 123.04082 125.00000
[1] 16
[1] 86.6

        
On Tue, Jan 13, 2009 at 9:22 AM, e-letter <inpost at gmail.com> wrote: