gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
colpnt.f
Go to the documentation of this file.
1  subroutine colpnt(k,rho)
2 
3 c*********************************************************************72
4 c
5 cc COLPNT supplies collocation points.
6 c
7 c from * a practical guide to splines * by c. de boor
8 c the k collocation points for the standard interval (-1,1) are sup-
9 c plied here as the zeros of the legendre polynomial of degree k ,
10 c provided k .le. 8 . otherwise, uniformly spaced points are given.
11 c
12  implicit none
13 
14  integer k, j
15  double precision rho(k), fkm1o2
16  if (k .gt. 8) go to 99
17  go to (10,20,30,40,50,60,70,80),k
18  10 rho(1) = 0.0d+00
19  return
20  20 rho(2) = .577350269189626d+00
21  rho(1) = - rho(2)
22  return
23  30 rho(3) = .774596669241483d+00
24  rho(1) = - rho(3)
25  rho(2) = 0.0d+00
26  return
27  40 rho(3) = .339981043584856d+00
28  rho(2) = - rho(3)
29  rho(4) = .861136311594053d+00
30  rho(1) = - rho(4)
31  return
32  50 rho(4) = .538469310105683d+00
33  rho(2) = - rho(4)
34  rho(5) = .906179845938664d+00
35  rho(1) = - rho(5)
36  rho(3) = 0.0d+00
37  return
38  60 rho(4) = .238619186083197d+00
39  rho(3) = - rho(4)
40  rho(5) = .66120 9386466265d+00
41  rho(2) = - rho(5)
42  rho(6) = .93246 9514203152d+00
43  rho(1) = - rho(6)
44  return
45  70 rho(5) = .405845151377397d+00
46  rho(3) = - rho(5)
47  rho(6) = .741531185599394d+00
48  rho(2) = - rho(6)
49  rho(7) = .949107912342759d+00
50  rho(1) = - rho(7)
51  rho(4) = 0.0d+00
52  return
53  80 rho(5) = .183434642495650d+00
54  rho(4) = - rho(5)
55  rho(6) = .525532409916329d+00
56  rho(3) = - rho(6)
57  rho(7) = .796666477413627d+00
58  rho(2) = - rho(7)
59  rho(8) = .960289856497536d+00
60  rho(1) = - rho(8)
61  return
62 c if k .gt. 8, use equispaced points, but print warning
63  99 print 699,k
64  699 format(11h **********/
65  & 49h equispaced collocation points are used since k =,i2,
66  & 19h is greater than 8.)
67  fkm1o2 = dble(k-1)/2.0d+00
68  do 100 j=1,k
69  100 rho(j) = dble(j-1)/fkm1o2 - 1.0d+00
70  return
71  end
subroutine colpnt(k, rho)
Definition: colpnt.f:2
gtkIOStream: /tmp/gtkiostream/src/deBoor/colpnt.f Source File
GTK+ IOStream  Beta