117 const double eps=1.e-4;
119 for (
int i=result.first(); i<=result.last(); i++)
121 double t=double(i)*dt;
125 double hfac=std::sqrt(h*h-1.);
126 result(i)=std::exp(-omn*h*t)*
127 (std::exp(-omn*t*hfac)-std::exp(omn*t*hfac))/
129 }
else if (h<(1.-eps))
131 double hfac=std::sqrt(1.-h*h);
132 result(i)=std::sin(omn*t*hfac)*std::exp(-omn*h*t)/(omn*hfac);
135 result(i)=t*std::exp(-omn*t);
aff::Series< double > Tseries