1
real*8 function fprati(p1,f1,p2,f2,p3,f3)
2
c given three points (p1,f1),(p2,f2) and (p3,f3), function fprati
3
c gives the value of p such that the rational interpolating function
4
c of the form r(p) = (u*p+v)/(p+w) equals zero at p.
7
real*8 p1,f1,p2,f2,p3,f3
12
c value of p in case p3 = infinity.
13
p = (p1*(f1-f3)*f2-p2*(f2-f3)*f1)/((f1-f2)*f3)
15
c value of p in case p3 ^= infinity.
19
p = -(p1*p2*h3+p2*p3*h1+p3*p1*h2)/(p1*h1+p2*h2+p3*h3)
20
c adjust the value of p1,f1,p3 and f3 such that f1 > 0 and f3 < 0.
21
20 if(f2.lt.0.) go to 30