add numerical recipes library

This commit is contained in:
2025-09-12 18:55:25 +09:00
parent d4dff245bd
commit 2c75620ec9
1344 changed files with 63869 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
List of dates for testing routines in Chapter 1
16 entries
12 31 -1 End of millennium
01 01 1 One day later
10 04 1582 Day before Gregorian calendar
10 15 1582 Gregorian calendar adopted
01 17 1706 Benjamin Franklin born
04 14 1865 Abraham Lincoln shot
04 18 1906 San Francisco earthquake
05 07 1915 Sinking of the Lusitania
07 20 1923 Pancho Villa assassinated
05 23 1934 Bonnie and Clyde eliminated
07 22 1934 John Dillinger shot
04 03 1936 Bruno Hauptman electrocuted
05 06 1937 Hindenburg disaster
07 26 1956 Sinking of the Andrea Doria
06 05 1976 Teton dam collapse
05 23 1968 Julian Day 2440000

668
lib/nr/ansi/data/fncval.dat Normal file
View File

@@ -0,0 +1,668 @@
Values of Special Functions in format x,F(x) or x,y,F(x,y)
Dawson integral
4 Values
0.04 0.0399573606
0.16 0.1572970920
1.6 0.3999398943
10.0 0.0502538471
Ordinary Bessel Functions nu,x,jnu(x),ynu(x),jnup(x),ynup(x)
20 Values
2.0 1.0 1.149034849E-01 -1.650682607E+00 2.102436159E-01 2.520152392E+00
2.0 2.0 3.528340286E-01 -6.174081042E-01 2.238907791E-01 5.103756726E-01
2.0 5.0 4.656511628E-02 3.676628826E-01 -3.462051841E-01 7.979903490E-04
2.0 10.0 2.546303137E-01 -5.868082442E-03 -7.453316568E-03 2.501890407E-01
2.0 50.0 -5.971280079E-02 9.579316873E-02 -9.512331609E-02 -6.062739531E-02
5.0 1.0 2.497577302E-04 -2.604058666E+02 1.227850313E-03 1.268750910E+03
5.0 2.0 7.039629756E-03 -9.935989128E+00 1.639664542E-02 2.207402959E+01
5.0 5.0 2.611405461E-01 -4.536948225E-01 1.300918143E-01 2.615525351E-01
5.0 10.0 -2.340615282E-01 1.354030477E-01 -1.025719220E-01 -2.126510357E-01
5.0 50.0 -8.140024770E-02 -7.854841391E-02 7.898100205E-02 -8.020323269E-02
10.0 1.0 2.630615124E-10 -1.216180143E+08 2.618635056E-09 1.209399938E+09
10.0 2.0 2.515386283E-07 -1.291845422E+05 1.234650294E-06 6.313628817E+05
10.0 5.0 1.467802647E-03 -2.512911010E+01 2.584677845E-03 4.249433700E+01
10.0 10.0 2.074861066E-01 -3.598141522E-01 8.436957863E-02 1.605148864E-01
10.0 50.0 -1.138478491E-01 5.723897182E-03 -4.422891214E-03 -1.116145748E-01
20.0 1.0 3.873503009E-25 -4.113970315E+22 7.737778395E-24 8.217106466E+23
20.0 2.0 3.918972805E-19 -4.081651389E+16 3.900270468E-18 4.060105807E+17
20.0 5.0 2.770330052E-11 -5.933965297E+08 1.074693821E-10 2.294022549E+09
20.0 10.0 1.151336925E-05 -1.597483848E+03 2.011953903E-05 2.737803151E+03
20.0 50.0 -1.167043528E-01 1.644263395E-02 -1.368329398E-02 -1.071717186E-01
Modified Bessel Functions nu,x,inu(x),knu(x),inup(x),knup(x)
28 Values
2.0 0.2 5.016687514E-03 4.951242929E+01 5.033395889E-02 -4.999002654E+02
2.0 1.0 1.357476698E-01 1.624838899E+00 2.936637645E-01 -3.851585027E+00
2.0 2.0 6.889484477E-01 2.537597546E-01 9.016884069E-01 -3.936256364E-01
2.0 2.5 1.276466148E+00 1.214602063E-01 1.495543327E+00 -1.710589814E-01
2.0 3.0 2.245212441E+00 6.151045847E-02 2.456561923E+00 -8.116340344E-02
2.0 5.0 1.750561497E+01 5.308943712E-03 1.733339616E+01 -6.168190930E-03
2.0 10.0 2.281518968E+03 2.150981701E-05 2.214684510E+03 -2.295073686E-05
2.0 20.0 3.931278522E+07 6.329543612E-10 3.852369486E+07 -6.516012331E-10
3.0 1.0 2.216842492E-02 7.101262825E+00 6.924239499E-02 -2.292862737E+01
3.0 2.0 2.127399592E-01 6.473853909E-01 3.698385088E-01 -1.224837841E+00
3.0 5.0 1.033115017E+01 8.291768415E-03 1.130692487E+01 -1.028400476E-02
3.0 10.0 1.758380717E+03 2.725270026E-05 1.754004753E+03 -2.968562708E-05
3.0 50.0 2.677764139E+20 3.727936774E-23 2.655764792E+20 -3.771608045E-23
5.0 1.0 2.714631560E-04 3.609605896E+02 1.379804441E-03 -1.849035364E+03
5.0 2.0 9.825679323E-03 9.431049101E+00 2.616437167E-02 -2.577353868E+01
5.0 5.0 2.157974547E+00 3.270627371E-02 2.950260216E+00 -4.796533952E-02
5.0 10.0 7.771882864E+02 5.754184999E-05 8.378963946E+02 -6.663236215E-05
5.0 50.0 2.278548308E+20 4.367182254E-23 2.267244113E+20 -4.432002477E-23
10.0 1.0 2.752948040E-10 1.807132899E+08 2.765437823E-09 -1.817137940E+09
10.0 2.0 3.016963879E-07 1.624824040E+05 1.535703963E-06 -8.302224962E+05
10.0 5.0 4.580044419E-03 9.758562829E+00 1.015562998E-02 -2.202940355E+01
10.0 10.0 2.189170616E+01 1.614255300E-03 3.042758634E+01 -2.324264134E-03
10.0 50.0 1.071597159E+20 9.150988210E-23 1.082473779E+20 -9.419859989E-23
20.0 1.0 3.966835986E-25 6.294369360E+22 7.943111714E-24 -1.260529076E+24
20.0 2.0 4.310560576E-19 5.770856853E+16 4.331042808E-18 -5.801141519E+17
20.0 5.0 5.024239358E-11 4.827000521E+08 2.068719274E-10 -1.993195442E+09
20.0 10.0 1.250799736E-04 1.787442782E+02 2.784778118E-04 -4.015325804E+02
20.0 50.0 5.442008403E+18 1.706148380E-21 5.814242572E+18 -1.852264589E-21
Spherical Bessel Functions n,x,sjn(x),syn(x),sjnp(x),synp(x)
11 Values
0 0.1 9.9833417E-01 -9.9500417E+00 -3.3300012E-02 1.0049875E+02
0 1.0 8.4147098E-01 -5.4030231E-01 -3.0116868E-01 1.3817733E+00
0 5.0 -1.9178485E-01 -5.6732437E-02 9.5089408E-02 -1.8043837E-01
0 50.0 -5.2474971E-03 -1.9299321E-02 1.9404271E-02 -4.8615107E-03
1 0.1 3.3300012E-02 -1.0049875E+02 3.3233393E-01 2.0000250E+03
1 1.0 3.0116868E-01 -1.3817733E+00 2.3913363E-01 2.2232443E+00
1 5.0 -9.5089408E-02 1.8043837E-01 -1.5374909E-01 -1.2890778E-01
1 50.0 -1.9404271E-02 4.8615107E-03 -4.4713263E-03 -1.9493781E-02
20 1.0 7.5377957E-26 -3.2395922E+23 1.5058053E-24 6.7948312E+24
20 5.0 5.4277268E-12 -9.2679514E+08 2.1071414E-11 3.7715819E+09
20 50.0 -1.5785030E-02 1.3759531E-02 -1.2204181E-02 -1.4702296E-02
Airy Functions
8 Values
-3.5 -0.37553382 0.16893984 -0.34344343 -0.69311628
-2.0 0.22740743 -0.41230259 0.61825902 0.27879517
-1.0 0.53556088 0.10399739 -0.01016057 0.59237563
-0.01 0.35761619 0.61044364 -0.25880157 0.44831896
0.00 0.35502805 0.61492663 -0.25881940 0.44828836
0.01 0.35243992 0.61940962 -0.25880174 0.44831926
0.5 0.23169361 0.85427704 -0.22491053 0.54457256
1.00 0.13529242 1.20742359 -0.15914744 0.93243593
Elliptic Integral First Kind RF
3 Values
0.1 0.1 0.1 3.16227766
0.0 1.0 2.0 1.31102878
100.0 100.0 100.0 0.1
Elliptic Integral Second Kind RD
3 Values
0.1 0.1 0.1 31.6227766
0.0 2.0 1.0 1.79721036
100.0 100.0 100.0 0.001
Elliptic Integral Third Kind RJ
3 Values
0.1 0.1 0.1 0.1 31.6227766
2.0 3.0 4.0 5.0 0.142975797
100.0 100.0 100.0 100.0 0.001
Elliptic Integral Degenerate RC
5 Values
0.1 0.1 3.16227766
0.0 0.25 3.14159265
0.0625 0.125 3.14159265
2.25 2.0 0.69314718
100.0 100.0 0.1
Legendre Elliptic Integral First Kind
9 Values
5.0 2.0 0.08726660
5.0 30.0 0.08729413
5.0 88.0 0.08737730
30.0 2.0 0.52362636
30.0 30.0 0.52942863
30.0 88.0 0.54927042
90.0 2.0 1.57127495
90.0 30.0 1.68575035
90.0 88.0 4.74271727
Legendre Elliptic Integral Second Kind
9 Values
5.0 2.0 0.08726633
5.0 30.0 0.08723881
5.0 88.0 0.08715588
30.0 2.0 0.52357119
30.0 30.0 0.51788193
30.0 88.0 0.50003003
90.0 2.0 1.57031792
90.0 30.0 1.46746221
90.0 88.0 1.00258409
Legendre Elliptic Integral Third Kind
12 Values
15.0 0.4 30.0 0.264953
60.0 0.6 90.0 1.71951
90.0 0.0 30.0 1.68575
90.0 0.9 75.0 12.46407
15.0 1.0 15.0 0.268156
45.0 0.0625 30.0 0.813845
45.0 0.625 30.0 0.921130
45.0 1.25 30.0 1.132136
45.0 -0.25 30.0 0.769872
90.0 0.0625 30.0 1.743055
90.0 0.625 30.0 2.800989
90.0 -0.25 30.0 1.501762
Fresnel Integrals
6 Values
0.1 0.0005236 0.0999975
1.0 0.4382591 0.7798934
1.5 0.6975050 0.4452612
2.0 0.3434157 0.4882534
5.0 0.4991914 0.5636312
20.0 0.4840845 0.4999873
Exponential Integral En n,x,En(x)
13 Values
0 1.0 0.3678794
2 0.0 1.0000000
3 0.0 0.5000000
4 0.0 0.3333333
2 0.5 0.3266439
3 0.5 0.2216044
4 0.5 0.1652428
10 0.5 0.0634583
20 0.5 0.0310612
2 5.0 0.9964690E-03
20 5.0 0.2782746E-03
2 50.0 0.3711783E-23
20 50.0 0.2766423E-23
Cosine and Sine Integrals
17 Values
0.1 -1.727868E+00 9.994446E-02
0.2 -1.042206E+00 1.995561E-01
0.6 -2.227071E-02 5.881288E-01
0.7 1.005147E-01 6.812222E-01
1.8 4.568111E-01 1.505817E+00
1.9 4.419403E-01 1.557775E+00
2.0 4.229808E-01 1.605413E+00
2.1 4.005120E-01 1.648699E+00
2.2 3.750746E-01 1.687625E+00
3.3 2.467829E-02 1.848081E+00
6.3 -1.988822E-02 1.418174E+00
6.4 -4.181411E-03 1.419223E+00
6.5 1.110152E-02 1.421794E+00
6.6 2.582314E-02 1.425816E+00
10.0 -4.545644E-02 1.658348E+00
12.5 -1.140835E-02 1.492337E+00
15.0 4.627868E-02 1.618194E+00
Exponential Integral Ei
21 Values
0.1 -1.62281
0.2 -0.821761
0.3 -0.302669
0.4 0.104768
0.5 0.454220
0.6 0.769881
0.7 1.06491
0.8 1.34740
0.9 1.62281
2.2 5.73261
2.4 6.60067
3.5 13.9254
3.9 18.3157
5.0 40.1853
5.4 54.1935
12.5 23565.1
13.0 37197.7
13.5 58827.0
14.0 93193.0
14.5 147866.
15.0 234955.
Gamma Function
17 Values
1.0 1.000000
1.2 0.918169
1.4 0.887264
1.6 0.893515
1.8 0.931384
2.0 1.000000
0.2 4.590845
0.4 2.218160
0.6 1.489192
0.8 1.164230
-0.2 -5.821149
-0.4 -3.722981
-0.6 -3.696933
-0.8 -5.738555
10.0 3.6288000E05
20.0 1.2164510E17
30.0 8.8417620E30
N-factorial
18 Values
1 1
2 2
3 6
4 24
5 120
6 720
7 5040
8 40320
9 362880
10 3628800
11 39916800
12 479001600
13 6227020800
14 87178291200
15 1.3076755E12
20 2.4329042E18
25 1.5511222E25
30 2.6525281E32
Binomial Coefficients
20 Values
1 0 1
6 1 6
6 3 20
6 5 6
15 1 15
15 3 455
15 5 3003
15 7 6435
15 9 5005
15 11 1365
15 13 105
25 1 25
25 3 2300
25 5 53130
25 7 480700
25 9 2042975
25 11 4457400
25 13 5200300
25 15 3268760
25 17 1081575
Beta Function
15 Values
1.0 1.0 1.000000
0.2 1.0 5.000000
1.0 0.2 5.000000
0.4 1.0 2.500000
1.0 0.4 2.500000
0.6 1.0 1.666667
0.8 1.0 1.250000
6.0 6.0 3.607504E-04
6.0 5.0 7.936508E-04
6.0 4.0 1.984127E-03
6.0 3.0 5.952381E-03
6.0 2.0 0.238095E-01
7.0 7.0 8.325008E-05
5.0 5.0 1.587302E-03
4.0 4.0 7.142857E-03
3.0 3.0 0.333333E-01
2.0 2.0 1.666667E-01
Incomplete Gamma Function
20 Values
0.1 3.1622777E-02 0.7420263
0.1 3.1622777E-01 0.9119753
0.1 1.5811388 0.9898955
0.5 7.0710678E-02 0.2931279
0.5 7.0710678E-01 0.7656418
0.5 3.5355339 0.9921661
1.0 0.1000000 0.0951626
1.0 1.0000000 0.6321206
1.0 5.0000000 0.9932621
1.1 1.0488088E-01 0.0757471
1.1 1.0488088 0.6076457
1.1 5.2440442 0.9933425
2.0 1.4142136E-01 0.0091054
2.0 1.4142136 0.4130643
2.0 7.0710678 0.9931450
6.0 2.4494897 0.0387318
6.0 12.247449 0.9825937
11.0 16.583124 0.9404267
26.0 25.495098 0.4863866
41.0 44.821870 0.7359709
Error Function
20 Values
0.0 0.000000
0.1 0.1124629
0.2 0.2227026
0.3 0.3286268
0.4 0.4283924
0.5 0.5204999
0.6 0.6038561
0.7 0.6778012
0.8 0.7421010
0.9 0.7969082
1.0 0.8427008
1.1 0.8802051
1.2 0.9103140
1.3 0.9340079
1.4 0.9522851
1.5 0.9661051
1.6 0.9763484
1.7 0.9837905
1.8 0.9890905
1.9 0.9927904
Incomplete Beta Function
20 Values
0.5 0.5 0.01 0.0637686
0.5 0.5 0.10 0.2048328
0.5 0.5 1.00 1.0000000
1.0 0.5 0.01 0.0050126
1.0 0.5 0.10 0.0513167
1.0 0.5 1.00 1.0000000
1.0 1.0 0.5 0.5000000
5.0 5.0 0.5 0.5000000
10.0 0.5 0.9 0.1516409
10.0 5.0 0.5 0.0897827
10.0 5.0 1.0 1.0000000
10.0 10.0 0.5 0.5000000
20.0 5.0 0.8 0.4598773
20.0 10.0 0.6 0.2146816
20.0 10.0 0.8 0.9507365
20.0 20.0 0.5 0.5000000
20.0 20.0 0.6 0.8979414
30.0 10.0 0.7 0.2241297
30.0 10.0 0.8 0.7586405
40.0 20.0 0.7 0.7001783
Bessel Function J0
20 Values
-5.0 -0.1775968
-4.0 -0.3971498
-3.0 -0.2600520
-2.0 0.2238908
-1.0 0.7651976
0.0 1.0000000
1.0 0.7651977
2.0 0.2238908
3.0 -0.2600520
4.0 -0.3971498
5.0 -0.1775968
6.0 0.1506453
7.0 0.3000793
8.0 0.1716508
9.0 -0.0903336
10.0 -0.2459358
11.0 -0.1711903
12.0 0.0476893
13.0 0.2069261
14.0 0.1710735
15.0 -0.0142245
Bessel Function Y0
15 Values
0.1 -1.5342387
1.0 0.0882570
2.0 0.51037567
3.0 0.37685001
4.0 -0.0169407
5.0 -0.3085176
6.0 -0.2881947
7.0 -0.0259497
8.0 0.2235215
9.0 0.2499367
10.0 0.0556712
11.0 -0.1688473
12.0 -0.2252373
13.0 -0.0782079
14.0 0.1271926
15.0 0.2054743
Bessel Function J1
20 Values
-5.0 0.3275791
-4.0 0.0660433
-3.0 -0.3390590
-2.0 -0.5767248
-1.0 -0.4400506
0.0 0.0000000
1.0 0.4400506
2.0 0.5767248
3.0 0.3390590
4.0 -0.0660433
5.0 -0.3275791
6.0 -0.2766839
7.0 -0.0046828
8.0 0.2346364
9.0 0.2453118
10.0 0.0434728
11.0 -0.1767853
12.0 -0.2234471
13.0 -0.0703181
14.0 0.1333752
15.0 0.2051040
Bessel Function Y1
15 Values
0.1 -6.4589511
1.0 -0.7812128
2.0 -0.1070324
3.0 0.3246744
4.0 0.3979257
5.0 0.1478631
6.0 -0.1750103
7.0 -0.3026672
8.0 -0.1580605
9.0 0.1043146
10.0 0.2490154
11.0 0.1637055
12.0 -0.0570992
13.0 -0.2100814
14.0 -0.1666448
15.0 0.0210736
Bessel Function Jn, n>=2
20 Values
2 1.0 1.149034849E-01
2 2.0 3.528340286E-01
2 5.0 4.656511628E-02
2 10.0 2.546303137E-01
2 50.0 -5.971280079E-02
5 1.0 2.497577302E-04
5 2.0 7.039629756E-03
5 5.0 2.611405461E-01
5 10.0 -2.340615282E-01
5 50.0 -8.140024770E-02
10 1.0 2.630615124E-10
10 2.0 2.515386283E-07
10 5.0 1.467802647E-03
10 10.0 2.074861066E-01
10 50.0 -1.138478491E-01
20 1.0 3.873503009E-25
20 2.0 3.918972805E-19
20 5.0 2.770330052E-11
20 10.0 1.151336925E-05
20 50.0 -1.167043528E-01
Bessel Function Yn, n>=2
20 Values
2 1.0 -1.650682607
2 2.0 -6.174081042E-01
2 5.0 3.676628826E-01
2 10.0 -5.868082460E-03
2 50.0 9.579316873E-02
5 1.0 -2.604058666E02
5 2.0 -9.935989128
5 5.0 -4.536948225E-01
5 10.0 1.354030477E-01
5 50.0 -7.854841391E-02
10 1.0 -1.216180143E08
10 2.0 -1.291845422E05
10 5.0 -2.512911010E01
10 10.0 -3.598141522E-01
10 50.0 5.723897182E-03
20 1.0 -4.113970315E22
20 2.0 -4.081651389E16
20 5.0 -5.933965297E08
20 10.0 -1.597483848E03
20 50.0 1.644263395E-02
Modified Bessel Function I0
20 Values
0.0 1.0000000
0.2 1.0100250
0.4 1.0404018
0.6 1.0920453
0.8 1.1665149
1.0 1.2660658
1.2 1.3937256
1.4 1.5533951
1.6 1.7499807
1.8 1.9895593
2.0 2.2795852
2.5 3.2898391
3.0 4.8807925
3.5 7.3782035
4.0 11.301922
4.5 17.481172
5.0 27.239871
6.0 67.234406
8.0 427.56411
10.0 2815.7167
Modified Bessel Function K0
20 Values
0.1 2.4270690
0.2 1.7527038
0.4 1.1145291
0.6 0.77752208
0.8 0.56534710
1.0 0.42102445
1.2 0.31850821
1.4 0.24365506
1.6 0.18795475
1.8 0.14593140
2.0 0.11389387
2.5 6.2347553E-02
3.0 3.4739500E-02
3.5 1.9598897E-02
4.0 1.1159676E-02
4.5 6.3998572E-03
5.0 3.6910983E-03
6.0 1.2439943E-03
8.0 1.4647071E-04
10.0 1.7780062E-05
Modified Bessel Function I1
20 Values
0.0 0.00000000
0.2 0.10050083
0.4 0.20402675
0.6 0.31370403
0.8 0.43286480
1.0 0.56515912
1.2 0.71467794
1.4 0.88609197
1.6 1.0848107
1.8 1.3171674
2.0 1.5906369
2.5 2.5167163
3.0 3.9533700
3.5 6.2058350
4.0 9.7594652
4.5 15.389221
5.0 24.335643
6.0 61.341937
8.0 399.87313
10.0 2670.9883
Modified Bessel Function K1
20 Values
0.1 9.8538451
0.2 4.7759725
0.4 2.1843544
0.6 1.3028349
0.8 0.86178163
1.0 0.60190724
1.2 0.43459241
1.4 0.32083589
1.6 0.24063392
1.8 0.18262309
2.0 0.13986588
2.5 7.3890816E-02
3.0 4.0156431E-02
3.5 2.2239393E-02
4.0 1.2483499E-02
4.5 7.0780949E-03
5.0 4.0446134E-03
6.0 1.3439197E-03
8.0 1.5536921E-04
10.0 1.8648773E-05
Modified Bessel Function Kn, n>=2
28 Values
2 0.2 49.512430
2 1.0 1.6248389
2 2.0 2.5375975E-01
2 2.5 1.2146021E-01
2 3.0 6.1510459E-02
2 5.0 5.3089437E-03
2 10.0 2.1509817E-05
2 20.0 6.3295437E-10
3 1.0 7.101262825
3 2.0 6.473853909E-01
3 5.0 8.291768415E-03
3 10.0 2.725270026E-05
3 50.0 3.72793677E-23
5 1.0 3.609605896E02
5 2.0 9.431049101
5 5.0 3.270627371E-02
5 10.0 5.754184999E-05
5 50.0 4.36718224E-23
10 1.0 1.807132899E08
10 2.0 1.624824040E05
10 5.0 9.758562829
10 10.0 1.614255300E-03
10 50.0 9.15098819E-23
20 1.0 6.294369369E22
20 2.0 5.770856853E16
20 5.0 4.827000521E08
20 10.0 1.787442782E02
20 50.0 1.70614838E-21
Modified Bessel Function In, n>=2
28 Values
2 0.2 5.0166876E-03
2 1.0 1.3574767E-01
2 2.0 6.8894844E-01
2 2.5 1.2764661
2 3.0 2.2452125
2 5.0 17.505615
2 10.0 2281.5189
2 20.0 3.9312785E07
3 1.0 2.216842492E-02
3 2.0 2.127399592E-01
3 5.0 1.033115017E01
3 10.0 1.758380717E01
3 50.0 2.67776414E20
5 1.0 2.714631560E-04
5 2.0 9.825679323E-03
5 5.0 2.157974547
5 10.0 7.771882864E02
5 50.0 2.27854831E20
10 1.0 2.752948040E-10
10 2.0 3.016963879E-07
10 5.0 4.580044419E-03
10 10.0 2.189170616E01
10 50.0 1.07159716E20
20 1.0 3.966835986E-25
20 2.0 4.310560576E-19
20 5.0 5.024239358E-11
20 10.0 1.250799736E-04
20 50.0 5.44200840E18
Legendre Polynomials
19 Values
1 0 1.0 1.224745
10 0 1.0 3.240370
20 0 1.0 4.527693
1 0 0.7071067 0.866025
10 0 0.7071067 0.373006
20 0 0.7071067 -0.874140
1 0 0.0 0.000000
10 0 0.0 -0.797435
20 0 0.0 0.797766
2 2 0.7071067 0.484123
10 2 0.7071067 -0.204789
20 2 0.7071067 0.910208
2 2 0.0 0.968246
10 2 0.0 0.804785
20 2 0.0 -0.799672
10 10 0.7071067 0.042505
20 10 0.7071067 -0.707252
10 10 0.0 1.360172
20 10 0.0 -0.853705
Jacobian Elliptic Function
20 Values
0.0 0.1 0.099833
0.0 0.2 0.19867
0.0 0.5 0.47943
0.0 1.0 0.84147
0.0 2.0 0.90930
0.5 0.1 0.099751
0.5 0.2 0.19802
0.5 0.5 0.47075
0.5 1.0 0.80300
0.5 2.0 0.99466
1.0 0.1 0.099668
1.0 0.2 0.19738
1.0 0.5 0.46212
1.0 1.0 0.76159
1.0 2.0 0.96403
1.0 4.0 0.99933
1.0 -0.2 -0.19738
1.0 -0.5 -0.46212
1.0 -1.0 -0.76159
1.0 -2.0 -0.96403

View File

@@ -0,0 +1,44 @@
MATRICES FOR INPUT TO TEST ROUTINES
Size of matrix (NxN), Number of solutions:
3 2
Matrix A:
1.0 0.0 0.0
0.0 2.0 0.0
0.0 0.0 3.0
Solution vectors:
1.0 0.0 0.0
1.0 1.0 1.0
NEXT PROBLEM
Size of matrix (NxN), Number of solutions:
3 2
Matrix A:
1.0 2.0 3.0
2.0 2.0 3.0
3.0 3.0 3.0
Solution vectors:
1.0 1.0 1.0
1.0 2.0 3.0
NEXT PROBLEM:
Size of matrix (NxN), Number of solutions:
5 2
Matrix A:
1.0 2.0 3.0 4.0 5.0
2.0 3.0 4.0 5.0 1.0
3.0 4.0 5.0 1.0 2.0
4.0 5.0 1.0 2.0 3.0
5.0 1.0 2.0 3.0 4.0
Solution vectors:
1.0 1.0 1.0 1.0 1.0
1.0 2.0 3.0 4.0 5.0
NEXT PROBLEM:
Size of matrix (NxN), Number of solutions:
5 2
Matrix A:
1.4 2.1 2.1 7.4 9.6
1.6 1.5 1.1 0.7 5.0
3.8 8.0 9.6 5.4 8.8
4.6 8.2 8.4 0.4 8.0
2.6 2.9 0.1 9.6 7.7
Solution vectors:
1.1 1.6 4.7 9.1 0.1
4.0 9.3 8.4 0.4 4.1

View File

@@ -0,0 +1,44 @@
FILE OF TRIDIAGONAL MATRICES FOR PROGRAM 'TRIDAG'
Dimension of matrix
3
Diagonal elements (N)
1.0 2.0 3.0
Super-diagonal elements (N-1)
2.0 3.0
Sub-diagonal elements (N-1)
2.0 3.0
Right-hand side vector (N)
1.0 2.0 3.0
NEXT PROBLEM:
Dimension of matrix
5
Diagonal elements (N)
1.0 1.0 1.0 1.0 1.0
Super-diagonal elements (N-1)
1.0 2.0 3.0 4.0
Sub-diagonal elements (N-1)
2.0 3.0 4.0 5.0
Right-hand side vector (N)
1.0 2.0 3.0 4.0 5.0
NEXT PROBLEM:
Dimension of matrix
5
Diagonal elements (N)
1.0 2.0 3.0 4.0 5.0
Super-diagonal elements (N-1)
2.0 3.0 4.0 5.0
Sub-diagonal elements (N-1)
2.0 3.0 4.0 5.0
Right-hand side vector (N)
1.0 1.0 1.0 1.0 1.0
NEXT PROBLEM:
Dimension of matrix
6
Diagonal elements (N)
9.7 9.5 5.2 3.5 5.1 6.0
Super-diagonal elements (N-1)
6.0 1.2 0.7 3.0 1.5
Sub-diagonal elements (N-1)
2.1 9.4 3.3 7.5 8.8
Right-hand side vector (N)
2.0 7.5 0.6 7.4 9.8 8.8

View File

@@ -0,0 +1,28 @@
FILE OF MATRICES FOR SVDCMP:
Number of Rows, Columns
5 3
Matrix
1.0 2.0 3.0
2.0 3.0 4.0
3.0 4.0 5.0
4.0 5.0 6.0
5.0 6.0 7.0
NEXT PROBLEM:
Number of Rows, Columns
5 5
Matrix
1.0 2.0 3.0 4.0 5.0
2.0 2.0 3.0 4.0 5.0
3.0 3.0 3.0 4.0 5.0
4.0 4.0 4.0 4.0 5.0
5.0 5.0 5.0 5.0 5.0
NEXT PROBLEM:
Number of Rows, Columns
6 6
Matrix
3.0 5.3 5.6 3.5 6.8 5.7
0.4 8.2 6.7 1.9 2.2 5.3
7.8 8.3 7.7 3.3 1.9 4.8
5.5 8.8 3.0 1.0 5.1 6.4
5.1 5.1 3.6 5.8 5.7 4.9
3.5 2.7 5.7 8.2 9.6 2.9

300
lib/nr/ansi/data/spctrl.dat Normal file
View File

@@ -0,0 +1,300 @@
0.097911 0.367270 0.500363 0.425597
0.058794 -0.383898 -0.811678 -0.852240
-0.540416 0.077375 0.609527 0.949625
0.934536 0.547584 0.065175 -0.343537
-0.364521 -0.234990 -0.060539 0.070118
-0.053797 -0.195746 -0.378981 -0.302282
0.078039 0.496074 0.873213 0.920654
0.639311 0.016809 -0.545344 -0.847283
-0.757841 -0.419941 0.050494 0.412930
0.443676 0.355997 0.190416 0.004934
0.098812 0.334695 0.487672 0.390609
0.091482 -0.471872 -0.822832 -0.862922
-0.541732 0.037119 0.632220 0.969027
0.938331 0.524281 0.054555 -0.316386
-0.417168 -0.258567 -0.002089 0.081358
-0.010683 -0.250513 -0.395420 -0.292397
0.037531 0.541725 0.858324 0.979284
0.632282 0.052913 -0.513068 -0.861395
-0.844621 -0.381213 0.032628 0.441947
0.494978 0.353964 0.103450 0.050774
0.186340 0.348806 0.477618 0.439581
0.030414 -0.376526 -0.748378 -0.839505
-0.572722 0.070455 0.592158 0.997204
0.871991 0.573119 0.016951 -0.299401
-0.380699 -0.213378 -0.045667 0.014124
-0.083163 -0.211765 -0.394188 -0.329720
0.056738 0.487655 0.899056 0.923687
0.679856 0.053336 -0.580099 -0.898054
-0.777465 -0.449933 0.008536 0.397103
0.442733 0.382489 0.126694 0.008359
0.174158 0.298124 0.492837 0.387331
0.092230 -0.421991 -0.760395 -0.836616
-0.490595 0.002870 0.662405 0.970864
0.870277 0.485316 0.037991 -0.338729
-0.430330 -0.232343 -0.048044 0.032509
-0.019183 -0.230955 -0.379461 -0.286177
0.009042 0.568075 0.874133 0.912020
0.610105 0.098793 -0.487907 -0.815460
-0.839317 -0.455718 0.033628 0.359049
0.489247 0.299280 0.142992 0.076076
0.164557 0.331189 0.435143 0.371382
0.028573 -0.429901 -0.789573 -0.827289
-0.516383 0.019417 0.660162 0.998339
0.943339 0.553927 0.064096 -0.268127
-0.343639 -0.208262 -0.080817 0.014051
-0.091364 -0.251841 -0.332385 -0.253401
0.004142 0.562365 0.857352 0.980905
0.640451 0.070460 -0.560346 -0.860592
-0.800160 -0.411101 0.035681 0.419918
0.456588 0.380944 0.103726 0.061474
0.146002 0.335740 0.530424 0.424361
0.001236 -0.376993 -0.768314 -0.816661
-0.574880 0.001497 0.631647 0.908096
0.882109 0.558594 0.042774 -0.296324
-0.405426 -0.211205 -0.029234 0.085678
-0.036877 -0.276193 -0.370418 -0.333459
0.030051 0.509729 0.935126 0.962784
0.662392 0.072465 -0.579946 -0.894496
-0.846667 -0.445903 0.094651 0.436459
0.451768 0.372502 0.171457 0.074792
0.140627 0.311938 0.514634 0.414529
0.037810 -0.377700 -0.813998 -0.880491
-0.504330 0.016679 0.596882 0.918905
0.889236 0.478435 0.036437 -0.323710
-0.398283 -0.293001 -0.081568 0.036554
-0.019824 -0.221855 -0.387019 -0.334675
0.080294 0.491516 0.922518 0.963173
0.661262 0.013510 -0.562322 -0.893592
-0.764120 -0.466779 0.016865 0.438673
0.475335 0.347867 0.122441 0.095509
0.122242 0.374897 0.432223 0.394942
0.089702 -0.404219 -0.756637 -0.845088
-0.516642 0.039524 0.654199 0.984378
0.896149 0.525603 0.033058 -0.247243
-0.355035 -0.228370 0.007792 0.008678
-0.064855 -0.231288 -0.374441 -0.332992
0.005931 0.508226 0.942214 1.002574
0.586029 0.075539 -0.508032 -0.893993
-0.798908 -0.387166 0.083562 0.384966
0.487865 0.332096 0.181928 0.008358
0.135767 0.352306 0.478585 0.401968
0.054226 -0.399437 -0.819389 -0.826667
-0.533762 0.002544 0.677559 0.921943
0.884705 0.488659 0.032441 -0.260313
-0.387379 -0.218315 -0.088176 0.045573
-0.084575 -0.283227 -0.431495 -0.305018
0.020692 0.495659 0.903865 0.979479
0.641578 0.096499 -0.532013 -0.818501
-0.801651 -0.458958 0.051335 0.414244
0.489763 0.336589 0.117080 0.084142
0.125365 0.301872 0.512340 0.445291
0.073475 -0.448532 -0.801094 -0.842954
-0.528140 0.025966 0.603184 0.946022
0.882719 0.539963 0.098792 -0.289700
-0.387006 -0.195881 -0.081170 0.023650
-0.026617 -0.253341 -0.408916 -0.343958
0.066436 0.554518 0.915065 0.979764
0.615021 0.095966 -0.535727 -0.900540
-0.747872 -0.456808 0.018016 0.432158
0.453624 0.354854 0.139914 0.073312
0.107453 0.362039 0.483963 0.428043
0.095897 -0.416062 -0.752085 -0.881777
-0.506618 0.019157 0.634220 0.906013
0.942182 0.536385 0.055480 -0.316476
-0.351742 -0.213961 -0.053189 0.060703
0.001519 -0.246973 -0.384560 -0.331215
0.009580 0.493835 0.911937 0.951883
0.603137 0.054710 -0.524431 -0.897798
-0.780356 -0.408528 0.033938 0.424251
0.528502 0.376326 0.176091 0.045445
0.164536 0.375618 0.525160 0.426136
0.008985 -0.447627 -0.807413 -0.859091
-0.559236 0.011335 0.590186 0.936487
0.856904 0.530043 0.012522 -0.335937
-0.412646 -0.209519 -0.053693 0.051147
-0.053526 -0.222614 -0.410404 -0.279051
0.019434 0.520151 0.924055 0.905338
0.599860 0.072868 -0.495636 -0.852138
-0.842475 -0.410295 0.045931 0.374146
0.507044 0.304955 0.110229 0.014329
0.099445 0.313920 0.442175 0.440693
0.057408 -0.424944 -0.804769 -0.813377
-0.567945 0.061968 0.598933 0.986802
0.848188 0.515720 0.047513 -0.329140
-0.349152 -0.242236 -0.078811 0.079854
-0.024022 -0.265492 -0.355148 -0.309431
0.096588 0.575235 0.849259 0.941124
0.595528 0.055573 -0.503313 -0.883673
-0.816723 -0.439862 0.048003 0.440092
0.494922 0.379278 0.180705 0.057666
0.108089 0.332832 0.464212 0.374919
0.021429 -0.471234 -0.757271 -0.809901
-0.497724 0.082059 0.657500 0.948854
0.896929 0.511290 0.073270 -0.317564
-0.361846 -0.280574 -0.033892 0.037408
-0.073339 -0.285403 -0.429735 -0.246847
0.031412 0.567831 0.933083 0.974899
0.648928 0.090599 -0.513837 -0.874769
-0.778362 -0.450210 0.063260 0.403755
0.485675 0.325856 0.126301 0.056894
0.153595 0.366111 0.464019 0.377563
0.004612 -0.414628 -0.761011 -0.867799
-0.499577 0.091861 0.654241 0.997871
0.942204 0.483009 0.091923 -0.335708
-0.338226 -0.278998 -0.008505 0.053219
-0.058173 -0.219469 -0.352340 -0.302103
0.052941 0.528985 0.893284 0.981896
0.606492 0.065509 -0.534164 -0.857461
-0.802981 -0.388117 0.004868 0.442722
0.435563 0.314212 0.183261 0.077975
0.176073 0.295736 0.482821 0.374858
0.076716 -0.422508 -0.837674 -0.807773
-0.531693 0.074174 0.649856 0.953869
0.851023 0.573365 0.006548 -0.324274
-0.335403 -0.199929 0.004564 0.097017
-0.040870 -0.271010 -0.415173 -0.263773
0.018949 0.509171 0.912486 0.909274
0.663260 0.016081 -0.488704 -0.868258
-0.747901 -0.388979 0.024781 0.367971
0.522698 0.305092 0.186602 0.098019
0.166066 0.381537 0.442624 0.424076
0.025891 -0.452799 -0.814807 -0.810631
-0.572332 0.070288 0.605258 0.956582
0.903865 0.495041 0.050691 -0.276583
-0.421594 -0.278223 -0.006641 0.091677
-0.035410 -0.200884 -0.356414 -0.292225
0.088560 0.537159 0.860301 0.960125
0.597692 0.067915 -0.500009 -0.852144
-0.810110 -0.401515 0.002545 0.396196
0.437215 0.334308 0.113528 0.034839
0.154359 0.297152 0.512050 0.402023
0.053790 -0.411957 -0.776809 -0.804607
-0.545230 0.004483 0.606468 1.004181
0.877637 0.520703 0.014247 -0.327739
-0.427206 -0.228288 -0.067409 0.002191
-0.059131 -0.221008 -0.343540 -0.253384
0.047465 0.485443 0.899890 0.910847
0.663669 0.037764 -0.517929 -0.876655
-0.751527 -0.433621 0.018924 0.441145
0.523340 0.391304 0.156069 0.020190
0.184455 0.323097 0.455107 0.361767
0.089370 -0.385349 -0.794025 -0.903242
-0.532589 0.034371 0.668037 0.928333
0.929222 0.547698 0.097208 -0.311597
-0.367236 -0.232687 -0.051130 0.048259
-0.060719 -0.260017 -0.418074 -0.303872
0.072928 0.484907 0.855767 0.976362
0.610166 0.014785 -0.486794 -0.846244
-0.748778 -0.394212 0.009820 0.358356
0.526840 0.354162 0.190473 0.028436
0.176236 0.322849 0.462059 0.370479
0.064294 -0.384773 -0.792332 -0.806280
-0.523412 0.078413 0.661642 0.926860
0.922979 0.544351 0.025883 -0.340230
-0.354519 -0.247419 -0.003119 0.082101
-0.012022 -0.198200 -0.391275 -0.330999
0.072228 0.554047 0.940904 0.963250
0.607121 0.019336 -0.555746 -0.832664
-0.760450 -0.395728 0.061648 0.383536
0.522079 0.316498 0.134781 0.021790
0.168653 0.344387 0.485338 0.429979
0.091185 -0.386099 -0.803865 -0.847632
-0.547286 0.015153 0.586225 0.939693
0.849235 0.559308 0.012852 -0.294433
-0.399566 -0.258405 -0.066580 0.087800
-0.042150 -0.269474 -0.332681 -0.322917
0.056257 0.541328 0.884606 0.941629
0.630189 0.065754 -0.561263 -0.903853
-0.790730 -0.450923 0.096406 0.379047
0.518242 0.362239 0.096277 0.042876
0.161780 0.378011 0.458697 0.358680
0.082284 -0.444665 -0.803149 -0.815407
-0.489638 0.091010 0.635438 0.941832
0.856547 0.564492 0.099813 -0.318179
-0.419672 -0.290083 -0.013989 0.083569
-0.055919 -0.257622 -0.430436 -0.277385
0.006100 0.515979 0.908006 0.993760
0.618310 0.001543 -0.535351 -0.899117
-0.829096 -0.456206 0.000256 0.376039
0.480801 0.382116 0.150624 0.018162
0.166605 0.306360 0.447567 0.406553
0.077535 -0.439301 -0.842485 -0.819257
-0.544317 0.078440 0.623969 0.977282
0.903853 0.526331 0.094650 -0.329740
-0.350568 -0.286092 -0.062614 0.015146
-0.088102 -0.281699 -0.397238 -0.311890
0.036393 0.481938 0.889484 0.955059
0.662317 0.005069 -0.503866 -0.861251
-0.781591 -0.391141 0.042585 0.378318
0.520022 0.321098 0.110956 0.008048
0.139262 0.313787 0.474640 0.407562
0.058446 -0.454213 -0.845370 -0.813975
-0.480999 0.010004 0.665455 0.931345
0.931231 0.562228 0.023416 -0.256999
-0.333008 -0.200222 -0.044808 0.065249
-0.071637 -0.273911 -0.332033 -0.306899
0.020117 0.480633 0.907756 0.986501
0.596889 0.038615 -0.566205 -0.817764
-0.756176 -0.403098 0.035555 0.444095
0.510418 0.307940 0.179051 0.061500
0.098928 0.345776 0.464550 0.435004
0.060468 -0.383262 -0.788087 -0.831224
-0.523793 0.033440 0.633217 0.944808
0.920680 0.483308 0.058446 -0.254890
-0.402245 -0.206168 0.002455 0.098080
0.001098 -0.204013 -0.342597 -0.276006
0.076104 0.519721 0.848375 0.954724
0.595388 0.017591 -0.554098 -0.823085
-0.832739 -0.394980 0.031532 0.407808
0.506202 0.365729 0.112260 0.015105
0.156834 0.390595 0.502499 0.376821
0.022250 -0.468862 -0.828902 -0.865065
-0.521754 0.008702 0.582262 0.990812
0.858668 0.479814 0.004871 -0.339759
-0.382635 -0.254824 -0.058774 0.040762
-0.064244 -0.207980 -0.406088 -0.248284
0.065140 0.502790 0.909789 0.948749
0.594440 0.095172 -0.482355 -0.813955
-0.750694 -0.449014 0.038131 0.432970
0.460675 0.310682 0.140371 0.003175
0.148347 0.304243 0.480985 0.429534
0.059744 -0.451427 -0.761063 -0.903347
-0.542992 0.066439 0.606244 0.972373
0.849850 0.538147 0.037460 -0.270762
-0.385688 -0.243512 -0.051111 0.040176
-0.046009 -0.222313 -0.415061 -0.344722
0.065446 0.521380 0.896401 0.990178
0.672997 0.031288 -0.488687 -0.839813
-0.747661 -0.454405 0.003323 0.431151
0.498745 0.359902 0.147358 0.026276
0.119546 0.357631 0.468306 0.368227
0.007975 -0.405726 -0.835639 -0.826552
-0.498900 0.075505 0.610725 0.999256
0.849490 0.538016 0.030475 -0.274609
-0.394095 -0.244471 -0.007600 0.048182
-0.090882 -0.213751 -0.363397 -0.248384
0.085440 0.574230 0.947322 0.982645
0.653703 0.025142 -0.537558 -0.809595
-0.807243 -0.444492 0.099258 0.365283
0.499182 0.301096 0.155158 0.094121
0.180500 0.367823 0.453490 0.358748
0.090581 -0.409058 -0.779713 -0.805878
-0.572210 0.007475 0.614132 0.921802
0.927101 0.504223 0.068253 -0.268464
-0.380833 -0.238024 -0.012982 0.007172
-0.009599 -0.259873 -0.391673 -0.293916
0.070242 0.564174 0.881125 0.968656
0.648719 0.063631 -0.568027 -0.824792
-0.806184 -0.454851 0.026379 0.404643
0.448427 0.351062 0.126076 0.097715
0.138137 0.355728 0.525115 0.349266
0.055674 -0.447023 -0.779438 -0.871175
-0.572309 0.074596 0.583332 0.926666
0.866427 0.571239 0.061118 -0.282493
-0.340329 -0.231417 -0.031789 0.092093
-0.067833 -0.236263 -0.415730 -0.255997
0.061875 0.484668 0.912390 0.998998
0.608189 0.011819 -0.575031 -0.844429
-0.785034 -0.465118 0.005862 0.381676
0.500147 0.331682 0.186613 0.002278

View File

@@ -0,0 +1,13 @@
Contingency Table for CNTAB1 and CNTAB2
Accidental Deaths by Month and Type (1979)
Month: jan feb mar apr may jun jul aug sep oct nov dec
Motor Vehicle 3298 3304 4241 4291 4594 4710 4914 4942 4861 4914 4563 4892
Falls 1150 1034 1089 1126 1142 1100 1112 1099 1114 1079 999 1181
Drowning 180 190 370 530 800 1130 1320 990 580 320 250 212
Fires 874 768 630 516 385 324 277 272 271 381 533 760
Choking 299 264 258 247 273 269 251 269 271 279 297 266
Fire-arms 168 142 122 140 153 142 147 160 162 172 266 230
Poisons 298 277 346 263 253 239 268 228 240 260 252 241
Gas-poison 267 193 144 127 70 63 55 53 60 118 150 172
Other 1264 1234 1172 1220 1547 1339 1419 1453 1359 1308 1264 1246

View File

@@ -0,0 +1,24 @@
Table for use with chapter 13 routines
Average solar radiation (watts/sq.m.) for selected cities
Month: jul aug sep oct nov dec jan feb mar apr may jun ave lat
Atlanta, GA 257 246 201 166 30 102 106 140 184 236 258 271 192 34.0
Barrow, AK 208 123 56 20 0 0 0 18 87 184 248 256 100 71.0
Bismark, ND 296 251 185 132 78 60 76 121 170 217 267 284 178 47.0
Boise, ID 324 275 221 152 88 60 69 113 164 235 284 309 191 43.5
Boston, MA 240 206 165 115 70 58 67 96 142 176 228 242 150 42.5
Caribou, ME 246 218 161 102 53 51 66 111 178 194 229 232 153 47.0
Cleveland, OH 267 239 182 127 68 56 60 87 151 182 253 271 162 41.5
Dodge City, KS 311 287 239 184 138 113 123 153 202 256 275 315 216 38.0
El Paso, TX 324 309 278 224 178 151 160 209 266 317 346 353 260 32.0
Fresno, CA 323 293 243 182 117 77 90 143 212 264 308 337 216 37.0
Greensboro, NC 263 235 197 156 118 95 97 134 171 227 257 273 185 36.0
Honolulu, HI 305 293 271 245 208 176 175 200 234 262 300 297 247 21.0
Little Rock, AR 270 250 214 167 118 91 96 127 173 220 256 272 188 35.0
Miami, FL 260 246 216 188 171 154 166 201 238 263 267 257 219 26.0
New York, NY 251 238 175 127 77 62 71 102 151 183 220 255 159 41.0
Omaha, NE 275 252 192 142 96 80 99 134 172 224 248 272 182 21.0
Rapid City, SD 288 262 208 152 99 76 90 135 193 235 259 287 190 44.0
Seattle, WA 242 209 150 84 44 29 34 60 118 174 216 228 132 47.5
Tucson, AZ 304 286 281 216 172 144 151 195 264 322 358 343 253 41.0
Washington, DC 267 190 196 145 75 64 101 124 153 182 215 247 163 39.0

View File

@@ -0,0 +1,11 @@
Test data for chapter 8:
29.82 71.51 3.30 87.44 53.42 63.16 89.10 25.75 93.16 27.72
71.58 48.34 53.11 18.34 27.13 60.31 83.34 22.81 66.84 52.91
53.42 15.22 8.01 53.39 76.12 79.09 67.61 38.39 24.81 73.21
13.42 52.10 34.86 99.83 38.46 81.59 61.75 79.62 93.39 3.21
99.34 92.22 94.29 7.03 6.67 89.35 83.14 9.01 12.68 62.22
2.95 85.02 95.82 73.96 49.29 77.72 36.65 3.48 48.98 71.83
1.41 9.48 32.37 89.95 28.39 79.36 54.05 46.08 11.67 37.78
77.17 74.33 10.13 4.62 49.95 68.40 19.40 34.06 4.11 98.40
42.44 64.14 89.41 52.99 71.79 3.94 19.73 44.91 71.44 59.10
27.54 15.67 67.95 55.61 26.05 25.01 82.09 89.67 57.08 38.27

525
lib/nr/ansi/data/text.dat Normal file
View File

@@ -0,0 +1,525 @@
This is a file of text, for use in testing programs.
Visible characters on the typewriter keyboard:
~!@#$%^&*()_+
`1234567890-=
QWERTYUIOP{}|
qwertyuiop[]\
ASDFGHJKL:"
asdfghjkl;'
ZXCVBNM<>?
zxcvbnm,./
Several blocks of text:
IT was nearly midnight on the eve of St. Thomas's, the
shortest day in the year. A desolating wind wandered
from the north over the hill whereon Oak had watched
the yellow waggon and its occupant in the sunshine of
a few days earlier.
Norcombe Hill -- not far from lonely Toller-Down
-- was one of the spots which suggest to a passer-by
that he is in the presence of a shape approaching the
indestructible as nearly as any to be found on earth.
It was a featureless convexity of chalk and soil -- an
ordinary specimen of those smoothly-outlined protuber+
ances of the globe which may remain undisturbed on
some great day of confusion, when far grander heights
and dizzy granite precipices topple down.
The hill was covered on its northern side by an
ancient and decaying plantation of beeches, whose
upper verge formed a line over the crest, fringing its
arched curve against the sky, like a mane. To-night
these trees sheltered the southern slope from the keenest
blasts, which smote the wood and floundered through
it with a sound as of grumbling, or gushed over its
crowning boughs in a weakened moan. The dry leaves
in the ditch simmered and boiled in the same breezes,
a tongue of air occasionally ferreting out a few, and
sending them spinning across the grass. A group or
two of the latest in date amongst the dead multitude
had remained till this very mid-winter time on the twigs
which bore them and in falling rattled against the trunks
with smart taps:
Betwenne this half-wooded, half naked hill, and the
vague still horizon that its summit indistinctly com+
manded, was a mysterious sheet of fathomless shade
-- the sounds from which suggested that what it con+
cealed bore some reduced resemblance to features here.
The thin grasses, more or less coating the hill, were
touched by the wind in breezes of differing powers, and
almost of differing natures -- one rubbing the blades
heavily, another raking them piercingly, another brushing
them like a soft broom. The instinctive act of human+
kind was to stand and listen, and learn how the trees
to each other in the regular antiphonies of a cathedral
choir; how hedges and other shapes to leeward them
caught the note, lowering it to the tenderest sob; and
how the hurrying gust then plunged into the south, to
be heard no more.
The sky was clear -- remarkably clear -- and the
twinkling of all the stars seemed to be but throbs of
one body, timed by a common pulse. The North Star
was directly in the wind's eye, and since evening the
Bear had swung round it outwardly to the east, till he
was now at a right angle with the meridian. A
difference of colour in the stars -- oftener read of than
seen in England-was really perceptible here. The
sovereign brilliancy of Sirius pierced the eye with a steely
glitter, the star called Capella was yellow, Aldebaran and
Betelgueux shone with a fiery red.
To persons standing alone on a hill during a clear
midnight such as this, the roll of the world eastward is
almost a palpable movement. The sensation may be
caused by the panoramic glide of the stars past earthly
objects, which is perceptible in a few minutes of still+
ness, or by the better outlook upon space that a hill
affords, or by the wind, or by the solitude ; but whatever
be its origin, the impression of riding along is vivid and
abiding. The poetry of motion is a phrase much in
use, and to enjoy the epic form of that gratification it
is necessary to stand on a hill at a small hour of the
night, and, having first expanded with a sense of differ+
ence from the mass of civilised mankind, who are
dreamwrapt and disregardful of all such proceedings at
this time, long and quietly watch your stately progress
through the stars. After such a nocturnal reconnoitre
it is hard to get back to earth, and to believe that the
consciousness of such majestic speeding is derived from
a tiny human frame.
Suddenly an unexpected series of sounds began to
be heard
in this place up against the sky. They had a
clearness which was to be found nowhere in the wind,
and a sequence which was to be found nowhere in
nature. They were the notes of Farmer Oak's flute.
The tune was not floating unhindered into the open
air : it seemed muffled in some way, and was altogether
too curtailed in power to spread high or wide. It came
from the direction of a small dark object under the
plantation hedge -- a shepherd's hut -- now presenting
an outline to which an uninitiated person might have
been puzzled to attach either meaning or use.
The image as a whole was that of a small Noah's
Ark on a small Ararat, allowing the traditionary outlines
and general form of the Ark which are followed by toy+
makers -- and by these means are established in men's
imaginations among their firmest, because earliest im+
pressions -- to pass as an approximate pattern. The
hut stood on little wheels, which raised its floor about a
foot from the ground. Such shepherds' huts are dragged
into the fields when the lambing season comes on, to
shelter the shepherd in his- enforced nightly attendance.
It was only latterly that people had begun to call
Gabriel !Farmer' Oak. During the twelvemonth pre+
ceding this time he had been enabled by sustained
efforts of industry and chronic good spirits to lease the
small shepp farm of which Norcombe Hill was a portion,
and stock it with two hundred sheep. Previously he
had been a bailiff for a short time, and earlier still a
shepherd only, having from his childhood assisted his
father in tending the floeks of large proprietors, till old
Gabriel sank to rest.
This venture, unaided and alone, into the paths of
farming as master and not as man, with an advance of
sheep not yet paid for, was a critical juncture with
Gabriel Oak, and he recognised his position clearly.
The first movement in his new progress was the lambing
of his ewes, and sheep having been his speciality from
his "youth, he wisely refrained from deputing -- the task
of tending them at this season to a hireling or a novice.
The wind continued to beat-about the corners of the
hut, but the flute-playing ceased. A rectangular space
of light
appeared in the side of the hut, and in the
opening the outline of Farmer Oak's figure. He carried
a lantern in his hand, and closing the door behind him,
came forward and busied himself about this nook of the
field for nearly twenty minutes, the lantern light appear+
ing and disappearing here and there, and brightening
him or darkening him as he stood before or behind it.
Oak's motions, though they had a quiet-energy, were
slow, and their deliberateness accorded well with his
occupation. Fitness being the basis of beauty, nobody
could-have denied that his steady swings and turns"
in and- about the flock had elements of grace, Yet,
although if occasion demanded he could do or think a
thing with as mercurial a dash as can the men of towns
who are more to the manner born, his special power,
morally, physically, and mentally, was static, owing
little or nothing to momentum as a rule.
A close examination of the ground hereabout, even
by the wan starlight only, revealed how a portion of
what would have been casually called a wild slope had
been appropriated by Farmer Oak for his great purpose
this winter. Detached hurdles thatched with straw
were stuck into the ground at various scattered points,
amid and under which the whitish forms of his meek
ewes moved and rustled. The ring of the sheep-bell,
which had been silent during his absence, recommenced,
in tones that had more mellowness than clearness, owing
to an increasing growth of surrounding wool. This
continued till Oak withdrew again from the flock. He
-- returned to the hut, bringing in his arms a new-born
lamb, consisting of four legs large enough for a full+
grown sheep, united by a seemingly inconsiderable mem+
brane about half the substance of the legs collectively,
which constituted the animal's entire body just at present.
The little speck of life he placed on a wisp of hay
before the small stove, where a can of milk was simmer+
ing. Oak extinguished the lantern by blowing into it
and then pinching the snuff, the cot being lighted
by a candle suspended by a twisted wire. A rather
hard couch, formed of a few corn sacks thrown carelessly
down, covered half the floor of this little
habitation, and
here the young man stretched himself along, loosened
his woollen cravat, and closed his eyes. In about the
time a person unaccustomed to bodily labour would have
decided upon which side to lie, Farmer Oak was asleep.
The inside of the hut, as it now presented itself, was
cosy and alluring, and the scarlet handful of fire in
addition to the candle, reflecting its own genial colour
upon whatever it could reach, flung associations of
enjoyment even over utensils and tools. In the corner
stood the sheep-crook, and along a shelf at one side
were ranged bottles and canisters of the simple prepara+
tions pertaining to ovine surgery and physic; spirits of
wine, turpentine, tar, magnesia, ginger, and castor-oil
being the chief. On a triangular shelf across the corner
stood bread, bacon, cheese, and a cup for ale or cider,
which was supplied from a flagon beneath. Beside the
provisions lay the flute whose notes had lately been
called forth by the lonely watcher to beguile a tedious
hour. The house was ventilated by two round holes,
like the lights of a ship's cabin, with wood slides+
The lamb, revived by the warmth' began to bleat'
instant meaning, as expected sounds will. Passing
from the profoundest sleep to the most alert wakefulness
with the same ease that had accompanied the reverse
operation, he looked at his watch, found that the hour+
hand had shifted again, put on his hat, took the lamb
in his arms, and carried it into the darkness. After
placing the little creature with its mother, he stood and
carefully examined the sky, to ascertain the time of
night from the altitudes of the stars.
The Dog-star and Aldebaran, pointing to the restless
Pleiades, were half-way up the Southern sky, and between
them hung Orion, which gorgeous constellation never
burnt more vividly than now, as it soared forth above
the rim of the landscape. Castor and Pollux will
the north-west; far away through the plantation Vega
and Cassiopeia's chair stood daintily poised on the
uppermost boughs.
"One o'clock,' said Gabriel.
Being a man not without a frequent consciousness
that there was some charm in this life he led, he stood
still after looking at the sky as a useful instrument, and
regarded it in an appreciative spirit, as a work of art
superlatively beautiful. For a moment he seemed
impressed with the speaking loneliness of the scene, or
rather with the complete abstraction from all its compass
of the sights and sounds of man. Human shapes,interferences,
troubles, and joys were all as if they were not, and there
seemed to be on the shaded hemisphere of the globe no sentient being
save himself; he could fancy them all gone round to the sunny side.
Occupied this, with eyes stretched afar, Oak gradually per+
ceived that what he had previously taken to be a star low
down behind the outskirts of the plantation was in reality no
such thing. It was an artificial light, almost close at hand.
To find themselves utterly alone at night where company
is desirable and expected makes some people fearful; but a
case more trying by far to the nerves is to discover some
mysterious companionship when intuition, sensation, memory,
analogy, testimony, probability, induction -- every kind of
evidence in the logician's list -- have united to persuade con+
sciousness that it is quite in isolation.
Farmer Oak went towards the plantation and pushed
through its lower boughs to the windy side. A dim mass under
the slope reminded him that a shed occupied a place here,
the site being a cutting into the slope of the hill, so that at
its back part the roof was almost level with the ground. In
front it was formed of board nailed to posts and covered with
tar as apreservative. Through crevices in the roof and side
spread streaks and spots of light, a combination of which made
the radiance that had attracted him. Oak stepped up behind,
where,leaning down upon the roof and putting his eye close
to a hole, he could see into the interior clearly.
The place contained two women and two cows. By the side
of the latter a steaming bran-mash stood in a bucket. One
of the women was past middle age. Her companion was ap+
parently young and graceful; he could form no decided opinion
upon her looks, her position being almost beneath his eye, so
that he saw her in a bird's-eye view, as Milton's Satan first saw
Paradise. She wore no bonnet or het, but had enveloped her+
self in a large cloak, which was carelessly flung over her head
as a covering.
"There, now we'll go home," said the elder of the two, resting
her knuckles upon her hips, and looking at their goings-on as
a whole. "I do hope Daisy will fetch round again now. I have
never been more frightened in my life, but I don't mind break+
ing my rest if she recovers."
The young woman, whose eyelids were apparently inclined
to fall together on the smallest provocation of silence,yawned
in sympathy.
"I wish we were rich enough to pay a man to do these
things," she said.
"As we are not, we must do them ourselves," said the other;
"for you must help me if you stay."
"Well, my hat is gone, however," continued the younger. "It
went over the hedge, I think. The idea of such a slight wind
catching it."
The cow standing erect was of the Devon breed, and was
encased in a tight warm hide of rich Indian red, as absolutely
uniform from eyes to tail as if the animal had been dipped in
a dye of that colour, her long back being mathematically level.
The other was spotted,grey and white. Beside her Oak now
noticed a little calf about a day old, looking idiotically at
the two women, which showed that it had not long been
accustomed to the phenomenon of eyesight, and often turn+
ing to the lantern, which it apparently mistook for the moon.
inherited instinct having as yet had little time for correction
by experience. Between the sheep and the cows Lucina had
been busy on Norcombe hill lately.
"I think we had better send for some oatmeal," said the
"Yes, aunt; and I'll ride over for it as soon as it is
light. '
" But there's no side-saddle.'
"I can ride on the other : trust me.'
Oak, upon hearing these remarks, became more
curious to observe her features, but this prospect being
denied him by the hooding efect of the cloak, and by his
aerial position, he felt himself drawing upon his fancy
for their details. In making even horizontal and clear
inspections we colour and mould according to the warts
within us whatever our eyes bring in. Had Gabriel
been able from the first to get a distinct view of her +
countenance, his estimate of it as very handsome or
slightly so would have been as his soul required a
divinity at the moment or was ready supplied with one.
Having for some time known the want of a satisfactory
form to fill an increasing void within him, his position
moreover affording the widest scope for his fancy, he
painted her a beauty.
By one of those whimsical coincidences in which
Nature, like a busy mother, seems to spare a moment
from her unremitting labours to turn and make her
children smile, the girl now dropped the cloak, and
forth tumbled ropes of black hair over a red jacket.
Oak knew her instantly as the heroine of the yellow
waggon, myrtles, and looking-glass : prosily, as the
woman who owed him twopence.
They placed the calf beside its mother again, took
up the lantern, and went out, the light sinking down
the hill till it was no more than a nebula. Gabriel
Oak returned to his flock.
A GIRL ON HORSEBACK -- CONVERSATION
THE sluggish day began to break. Even its position
terrestrially is one of the elements of a new interest,
and for no particular reason save that the incident of
the night had occurred there, Oak went again into
the plantation. Lingering and musing here, he heard
the steps of a horse at the foot of the hill, and soon
there appeared in view an auburn pony with a girl on
its back, ascending by the path leading past the cattle+
shed. She was the young woman of the night before.
Gabriel instantly thought of the hat she had mentioned
as having lost in the wind; possibly she had come to
look for it. He hastily scanned the ditch and after
walking about ten yards along it, found the hat among the
leaves. Gabriel took it in his hand and returned to his
hut. Here he ensconced himself, and peeped through
the loophole in the direction of the riders approach.
She came up and looked around -- then on the other
side of the hedge. Gabriel was about to advance and
restore the missing article when an unexpected per+
formance induced him to suspend the action for the
present. The path, after passing the cowshed, bisected
the plantation. It was not a bridle-path -- merely a
pedestrian's track, and the boughs spread horizontally
at a height not greater than seven feet above the ground,
which made it impossible to ride erect beneath them.
The girl, who wore no riding-habit, looked around for
a moment, as if to assure herself that all humanity was
out of view, then dexterously dropped backwards flat
upon the pony's back, her head over its tail, her feet
against its shoulders, and her eyes to the sky. The
rapidity of her glide into this position was that of a
kingfisher -- its noiselessness that of a hawk. Gabriel's
eyes had scarcely been able to follow her. The tall lank
pony seemed used to such doings, and ambled
along unconcerned. Thus she passed under the level boughs.
The performer seemed quite at home anywhere
between a horse's head and its tail, and the necessity
for this abnormal attitude having ceased with the
passage of the plantation, she began to adopt another,
even more obviously convenient than the first. She had
no side-saddle, and it was very apparent that a firm
seat upon the smooth leather beneath her was un+
attainable sideways. Springing to her accustomed
perpendicular like a bowed sapling, and satisfying her,
self that nobody was in sight, she seated herself in the
manner demanded by the saddle, though hardly expected
of the woman, and trotted off in the direction of Tewnell
Mill.
Oak was amused, perhaps a little astonished, and
hanging up the hat in his hut, went again among his
ewes. An hour passed, the girl returned, properly
seated now, with a bag of bran in front of her. On
nearing the cattle-shed she was met by a boy bringing
a milking-pail, who held the reins of the pony whilst
she slid off. The boy led away the horse, leaving the
pail with the young woman.
Soon soft spirts alternating with loud spirts came
in regular succession from within the shed, the obvious
sounds of a person milking a cow. Gabriel took the
lost hat in his hand, and waited beside the path she
would follow in leaving the hill.
She came, the pail in one hand, hanging against her
knee. The left arm was extended as a balance, enough
of it being shown bare to make Oak wish that the event
ha happened in the summer, when the whole would
have been revealed. There was a bright air and manner
about her now, by which she seemed to imply that the
desirability of her existence could not be questioned;
and this rather saucy assumption failed in being offensive,
because a beholder felt it to be, upon the whole, true.
Like exceptional emphasis in the tone of a genius, that
which would have made mediocrity ridiculous was an
addition to recognised power. It was with some
surprise that she saw Gabriel's face rising like the
moon behind the hedge.
The adjustment of the farmer's hazy conceptions of
her
charms to the portrait of herself she now presented
him with was less a diminuition than a difference. The
starting-point selected by the judgment was. her height
She seemed tall, but the pail was a small one, and the
hedge diminutive; hence, making allowance for error
by comparison with these, she could have been not
above the height to be chosen by women as best. All
features of consequence were severe and regular. It
may have been observed by persons who go about the
shires with eyes for beauty, that in Englishwoman a
classically-formed face is seldom found to be united
with a figure of the same pattern, the highly-finished
features being generally too large for the remainder of
the frame ; that a graceful and proportionate figure of
eight heads usually goes off into random facial curves.
Without throwing a Nymphean tissue over a milkmaid,
let it be said that here criticism checked itself as out
of place, and looked at her proportions with a long
consciousness of pleasure. From the contours of her
figure in its upper part, she must have had a beautiful
neek and shoulders ; but since her infancy nobody had
ever seen them. Had she been put into a low dress
she would have run and thrust her head into a bush.
Yet she was not a shy girl by any means; it was merely
her instinct to draw the line dividing the seen from the
unseen higher than they do it in towns.
That the girl's thoughts hovered about her face
and form as soon as she caught Oak's eyes conning the
same page was natural, and almost certain. The self+
consciousness shown would have been vanity if a little
more pronounced, dignity if a little less. Rays of male
vision seem to have a tickling effect upon virgin faces
in rural districts ; she brushed hers with her hand, as if
Gabriel had been irritating its pink surface by actual
touch, and the free air of her previous movements was
reduced at the same time to a chastened phase of
itself. Yet it was the man who blushed, the maid not
at all.
" I found a hat,' said Oak.
" It is mine,' said she, and, from a sense of proportion,
kept down to a small smile an inclination to laugh dis+
tinctly : "it flew away last night.'
" One o'clock this morning ? '
" Well -- it was.' She was surprised. " How did you
know ? ' she said.
" I was here.'
" You are Farmer Oak, are you not ? '
" That or thereabouts. I'm lately come to this place.'
" A large farm ? ' she inquired, casting her eyes round,
and swinging back her hair, which was black in the
shaded hollows of its mass; but it being now an hour
past sunrise, the rays touched its prominent curves with
a colour of their own.
" No ; not large. About a hundred.' (In speaking
of farms the word "acres ' is omitted by the natives, by
analogy to such old expressions as "a stag of ten.')
' "I wanted my hat this morning,' she went on.
had to ride to Tewnell Mill.'
"Yes you had.'
"How do you know?'
"I saw you!
"Where?' she inquired, a misgiving bringing every
muscle of her lineaments and frame to a standstill.
"Here-going through the plantation, and all down
the hill,' said Farmer Oak, with an aspect excessively
knowing with regard to some matter in his mind, as he
gazed at a remote point in the direction named, and then
turned back to meet his colloquist's eyes.
A perception caused him to withdraw his own eyes
from hers as suddenly as if he had been caught in a
theft. Recollection of the strange antics she had
indulged in when passing through the trees, was suc+
ceeded in the girl by a nettled palpitation, and that' by
a hot face. It was a time to see a woman redden who
was not given to reddening s a rule; not a point in
the milkmaid but was of the deepest rose-colour. From
the Maiden's Blush, through all varieties of the Provence
down to the Crimson Tuscany, the countenance of Oak's
acquaintance quickly graduated ; whereupon he, in con+
siderateness, turned away his head.
The sympathetic man still looked the other way, and
wondered when she would recover coolness sufficient to
justify him in facing her again. He heard what seemed
to be the flitting of a
dead leaf upon the breeze, and
looked. She had gone away.
With an air between that of Tragedy and Comedy !
Gabriel returned to his work.
Five mornings and evenings passed. The young
woman came regularly to milk the healthy cow or to
attend to the sick one, but never allowed her vision to
stray in the direction of Oak's person. His want of
tact had deeply offended her -- not by seeing what he
could not help, but by letting her know that he had
seen it. For, as without law there is no sin, without
eyes there is no indecorum; and she appeared to feel
that Gabriel's espial had made her an indecorous woman
without her own connivance. It was food for great regret
with him; it was also a contretemps which touched into
life a latent heat he had experienced in that direction.
The acquaintanceship might, however, have ended in
a slow forgetting, but for an incident which occurred at
the end of the same week. One afternoon it began to
freeze, and the frost increased with evening, which drew
on like a stealthy tightening of bonds. It was a time
when in cottages the breath of the sleepers freezes to
the sheets; when round the drawing-room fire of a
thick-walled mansion the sitters' backs are cold, even
whilst their faces are all aglow. Many a small bird went
to bed supperless that night among the bare boughs.
As the milking-hour drew near, Oak kept his usual
watch upon the cowshed. At last he felt cold, and
shaking an extra quantity of bedding round the yeaning
ewes he entered the hut and heaped more fuel upon
the stove. The wind came in at the bottom of the door,
and to prevent it Oak laid a sack there and wheeled the
cot round a little more to the south. Then the wind
spouted in at a ventilating hole -- of which there was one
on each side of the hut.
Gabriel had always known that when the fire was
lighted and the door closed one of these must be kept
open -- that chosen being always on the side away from
the wind. Closing the slide to windward, he turned to
open the other; on second -- -thoughts the farmer con+
sidered that he would first sit down leaving both
closed for a minute or two, till the temperature of the
hut was a little raised. He sat down.
His head began to ache in an unwonted manner, and,
fancying himself weary by reason of the broken rests of
the preceding nights, Oak decided to get up, open the
slide, and then allow himself to fall asleep. He fell
asleep, however, without having performed the necessary
preliminary.