1
subroutine fppocu(idim,k,a,b,ib,db,nb,ie,de,ne,cp,np)
2
c subroutine fppocu finds a idim-dimensional polynomial curve p(u) =
3
c (p1(u),p2(u),...,pidim(u)) of degree k, satisfying certain derivative
4
c constraints at the end points a and b, i.e.
6
c if ib > 0 : pj (a) = db(idim*l+j), l=0,1,...,ib-1
8
c if ie > 0 : pj (b) = de(idim*l+j), l=0,1,...,ie-1
10
c the polynomial curve is returned in its b-spline representation
11
c ( coefficients cp(j), j=1,2,...,np )
13
c ..scalar arguments..
14
integer idim,k,ib,nb,ie,ne,np
17
real*8 db(nb),de(ne),cp(np)
20
integer i,id,j,jj,l,ll,k1,k2
43
work(j,i) = ab*work(j-1,i+1)/aki + work(j-1,i)
46
50 if(ie.eq.0) go to 90
61
work(j,i) = work(j+1,i) - ab*work(j,i+1)/aki