easier to understand (and maybe failsafe against empty coef)
This commit is contained in:
parent
c619bed975
commit
836ddb4ba5
|
@ -105,8 +105,8 @@ pure function eval(self,x) result(y)
|
|||
integer :: o
|
||||
|
||||
|
||||
y = self%coef(ubound(self%coef,1))
|
||||
do o = ubound(self%coef,1)-1, 0, -1
|
||||
y = 0.0_pREAL
|
||||
do o = ubound(self%coef,1), 0, -1
|
||||
y = y*(x-self%x_ref) + self%coef(o)
|
||||
end do
|
||||
|
||||
|
|
Loading…
Reference in New Issue