function BloodFunction(t)
implicit none
real*8 :: t, BloodFunction
BloodFunction=0
if(t < 0.24d0 .and. t >=0.d0 ) then
BloodFunction=240d0*exp(-7.557d0*t)*sin(13.09d0*t)
elseif(t < 0.2743d0 .and.t >=0.24d0 ) then
BloodFunction=-31.4d0*sin(13.09d0)*exp(-7.557d0*(t-0.24d0))*(t-0.24d0)
end if
end function BloodFunction